First you need to run parted
and use its resizepart
command to expand the partition to use the whole disk, then run pvresize
to tell LVM about the new space, then run lvresize
to grow the logical volume, and finally resize2fs
on the logical volume to grow the filesystem to use the new space. This can be done without a reboot.
↧
Answer by psusi for How to allow partitions to dynamically extend?
↧