====== Examples of using LVM ====== ===== Resizing volumes ==== Here we show how to increase vg-srv reducing vg-var inside one logical volume group. vgchange -a y ; lvs umount /dev/mapper/vg-var # umount e2fsck -f /dev/mapper/vg-var # check resize2fs /dev/mapper/vg-var 2670G # reduce size to 2670G lvreduce -L 2676G /dev/mapper/vg-var # reduce logical volume size to 2676G resize2fs /dev/mapper/vg-var # fit the LVM volume lvresize --size +1600M /dev/mapper/vg-srv # increase volume size e2fsck -f /dev/mapper/vg-srv # check resize2fs /dev/mapper/vg-srv # grow up fs size e2fsck -f /dev/mapper/vg-srv # check ==== Links ==== - [[http://askubuntu.com/questions/196125/how-can-i-resize-an-lvm-partition-i-e-physical-volume|How can I resize an LVM partition? (i.e: physical volume)]] - [[http://www.microhowto.info/howto/increase_the_size_of_an_lvm_logical_volume.html|Increase the size of an LVM logical volume]] - [[http://www.linuxuser.co.uk/features/resize-your-disks-on-the-fly-with-lvm|Resize your disks on the fly with LVM ]]