You can extend LVM by adding a new disk, then expanding the LV group across it.
Here are my notes from the last time I had to do it:
Extending LVM:
In VMWare create a new virtual hard disk device to add to the volume group.
In LVM, there are several layers, each builds on top of the other:
PV[s] (Physical Volumes) -> VG[s] (Volume Groups) -> LV[s] (Logical Volumes) -> Filesystems.
Gives you required information regarding the Logical Volume Group.
Gives you information regarding the Physical Volume Group.
1. example #1: you've added to VMWare a new virtual hard disk called /dev/sdb
Code:
pvcreate /dev/sdb
vgextend turnkey /dev/sdb
After you've extended the Volume Group, you are free to extend the underlying Logical Volume:
Code:
lvextend -L+100G /dev/turnkey/root
Finally, you'll have to resize the filesystem within /dev/turnkey/root so it can see that the underlying block device just got 10G bigger:
Code:
resize2fs /dev/turnkey/root
resize2fs 1.41.11 (14-Mar-2010) Filesystem at /dev/turnkey/root is mounted on /; on-line resizing required old desc_blocks = 2, new_desc_blocks = 2 Performing an on-line resize of /dev/turnkey/root to 7077888 (4k) blocks. The filesystem on /dev/turnkey/root is now 7077888 blocks long.
The following section won't apply to you, I renamed the host (and LVM's) whilst I was at it. if you are also changing the Hostname of an LVM enabled machine, the following will apply:
PERFORM THE FOLLOWING BEFORE REBOOTING!
Code:
sudo vgrename /dev/zabsgccsc001 /dev/zabbixserver01
sudo nano /etc/hostname
sudo nano /etc/hosts
sudo nano /etc/fstab
sudo update-grub
Please remember to check and amend any hostnames or names - lvdisplay and pvdisplay are your friends, make sure what you are entering matches you current setup - if in doubt, post here in response.