DEV Community

loading...

Discussion on: Extending LVM partition in Linux?

Collapse
zoliton profile image
zoliton

The lvextend is not applicable as the volume group first has to be resized.

1) Resize the partition /dev/sda2 in fdisk to the maximum cylinders/sectors available.
2) Then resize /dev/sda5 accordingly.
3) Then this command should do the trick: pvresize /dev/sda5
Check with command "vgs" the status of the volume group afterwards.

Alternatively create /dev/sda6 in fdisk to take up the rest of the device, also of type "Linux LVM". Then add the new physical volume: pvcreate /dev/sda6
Again: Check with "vgs" the status of the volume group afterwards.