Increase the lh_data logical volume

  1. Add the new disk to the LH VM (platform dependent, see above).

  2. 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.

  3. 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.

  4. Type 'n' and ENTER to create a new partition.

  5. Type 'p' and ENTER to create a primary partition.

  6. Continue hitting ENTER to accept the defaults to use the whole disk.

  7. Type 'w' and ENTER to write the changes and exit fdisk.

  8. Add the new partition as a physical volume (assuming you are now using /dev/sdb1, note that
    /dev/xvdb1 will now be mapped to /dev/sdb1 so make sure you use sdb1).
    pvcreate /dev/sdb1

  9. Extend the volume group with the new physical volume.
    vgextend lhvg /dev/sdb1

  10. 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

  11. Update the file system of the lh_data disk to use the extra space.
    resize2fs /dev/mapper/lhvg-lh_data

  12. When you log into the shell, the disk should no longer be listed as "unused".