Useful commands/hints in extending an LVM partition to add disk space to an existing
virtual machine. This is especially useful if you do not wish to add an extra drive
or have software/data that is being written to an existing partition that is not easily
re-configurable.
Useful Commands
Some useful commands related to this type of task:
Process
Note: The following process assumes the following:
Newly added volume size is 12GB (found using “fdisk -l”)
Newly-added volume is mounted as “/dev/sdb” (found using “fdisk -l”)
Volume group is “centos” (found using “vgdisplay”)
Logical volume to extend is “/dev/centos/root” (found using lvdisplay)
The following are steps that are useful to follow if the above are true: