7Jul/090
Logical Volume Expansion with Linux
- Add additional storage to the system. Physically or virtually.
- fdisk /dev/newdev - create new partition, set as type 8e (LVM), write partition table
- Create a new physical volume on the newly partitioned disk
- Extend an existing volume group
- Extend the logical volume by the desired amount
- Extend the filesystem on the logical volume
1 | pvcreate /dev/newDevPart |
1 | vgextend tank /dev/newDevPart |
1 | lvextend -L +5G /dev/tank/var |
1 | xfs_growfs /var |