Sometimes you need to extend the existing volume group to be able to add free space to the logical volumes in there.
Look at this situation:
[root@localhost ~]# vgs data VG #PV #LV #SN Attr VSize VFree data 1 1 0 wz--n- 39.99g 0
Sometimes you need to extend the existing volume group to be able to add free space to the logical volumes in there.
Look at this situation:
[root@localhost ~]# vgs data VG #PV #LV #SN Attr VSize VFree data 1 1 0 wz--n- 39.99g 0
To extend a logical volume (LV) named ´logs` to the whole space of the volume group (VG) named ´data` execute the following command:
# lvextend -l 100%VG /dev/data/logs