Live Resizing LVM on Linux

Robert Andresen Tutorials Leave a Comment

Expanding disk on Linux can always be a pain. Most guides I found requires a restart, which is not always that popular on an production server. This guide was written as we had to expand a disk on our internal webserver at work, running Ubuntu server 16.04.

A special thanks to SirLagz for his guide on this topic:

Expand disk in VMware vCenter and run scsi rescan for the system to catch the disk-changes.

Find devices:

Init scan:

Check changes:

Expand partition
In the example above you’ll see that the LVM partition is inside an extended partition. Both of these must be expanded in this case. Expand the Extended partition first:

Expand Physical Volume (PV)

Expand Logical Volume (LV)

Expand filesystem