LVM
LVM stands for Logical Volume Manager. It provides a way for extending filesystems by adding new partitions to the "logical volume".
Creating the initial logical volume
- Create the partition(s) on the device
# fdisk <device>
- Create the Physical Volume entry
# pvcreate <Partition Device>
- Create the Volume Group
# vgcreate <GroupName> <PhysicalVolume>
- Verify the Volume Group was created. Take note of the "Total PE" field
# vgdisplay
- Create the Logical Volume
# lvcreate --extents <Total PE> <VolumeGroup>
- Verify the Logical Volume was created
# lvdisplay
Format the Logical Volume
# mke2fs /dev/<VolumeGroup>/<LogicalVolume>
Extending a filesystem running on LVM (untested and incomplete)
Create partition of new device
# fdisk <device>
Create the new Physical Volume
# pvcreate <Partition>
Add the Physical Volume to the Volume Group
# vgextend ...
Extend the Logical Volume
# lvextend ...
Resize the filesystem
# ext2online/resize2fs ...
