Increase the lh_data logical volume
-
Add the new disk to the LH VM (platform dependent, see above).
-
Log into the shell on Lighthouse. you should see the new "unused" disk listed in the welcome message. This is the case for any non-system disks aren't currently being used by the LVM system.
-
Create a partition on the new disk:
fdisk /dev/sdb (or /dev/xvdb, or /dev/(sd|xvd)X
NOTE: Be sure specify the correct disk, it might be/dev/xvdb
on AWS. -
Type 'n' and ENTER to create a new partition.
-
Type 'p' and ENTER to create a primary partition.
-
Continue hitting ENTER to accept the defaults to use the whole disk.
-
Type 'w' and ENTER to write the changes and exit
fdisk
. -
Add the new partition as a physical volume (assuming you are now using
/dev/sdb
1, note that/dev/xvdb1
will now be mapped to /dev/sdb1 so make sure you use sdb1).pvcreate /dev/sdb1
-
Extend the volume group with the new physical volume.
vgextend lhvg /dev/sdb1
-
Assuming the new disk gives you at least 2GB of extra space, expand the
lh_data
logical volume.lvextend -L +2G /dev/mapper/lhvg-lh_data
-
Update the file system of the lh_data disk to use the extra space.
resize2fs /dev/mapper/lhvg-lh_data
-
When you log into the shell, the disk should no longer be listed as "unused".