Using LVM
From HostThyself
LVM (Logical Volume Manager) creates "virtual" disk partitions out of one or more physical hard drives. With LVM disk space can grow, shrink, or partitions can be moved from drive to drive as needed. It allows partitions larger than a single drive to be create.
LVM provides disks virtualization and when could be used with Xen for server virtualization.
LVM can also be used for creating RAID.
Contents |
[edit] Terminology
Physical Volume: The physical harddisk partition (volume) or the RAID volume
Volume Group: A virtual volume created out of all the physical volume combined
Logical Volume: A volume or partition created from space craved out from the volume group
[edit] Useful Commands
- pvdisplay
- vgdisplay
- lvdisplay
- lvextend
[edit] Resizing a logical volume
The main advantage of using LVM is the ability to resize logical volume (disk space). So how do we do it?
Procedure to resize an LVM2 logical volume