Adding Disk Space to Lighthouse

Additional physical volumes can be added to the volume group as required, and the logical volumes extended using lvextend and resize2fs to take advantage of the additional space.

Before you add disk space:

  • Ensure you take a backup of Lighthouse

  • In the case of a multiple instance Lighthouse installation, consider upgrading all instances, not merely the primary instance.

Adding a New Disk to AWS

Launch a Lighthouse instance as per our guidelines or your own deployment processes and note the instance ID.

To add a volume to an AWS Lighthouse without having to shut down the Lighthouse:

  1. In the AWS web console, go to Volumes and create a new 50GB volume in the same availability zone as your LH instance.

  2. Once the volume is created, select it and click the Actions button and select Attach Volume.

  3. Enter the LH instance ID for the instance field and /dev/xvdb (or /dev/xvdd, /dev/xvde and so on) as the device and click Attach.

When you SSH into the LH you should be able to see the new volume as /dev/xvdb (or whatever device name you gave it).

Adding a New Disk - qemu specific instructions

Launch a qemu Lighthouse instance as per our guidelines or your own deployment. To add a volume to the instance:

  1. Shutdown the instance with the following command:
    shutdown -h now

  2. Create a new disk for the LH. You can use a different number for “count” which is in MiB.
    dd if=/dev/zero of=/tmp/new_lh_disk.lh_hdd bs=1024k count=256
    qemu-img convert -p -f raw -O qcow2 /tmp/new_lh_disk.lh /tmp/new_lh_disk.qcow2

  3. Restart your qemu instance but make sure to add the new qcow2 disk to the command.
    Here is an example of what you should add to your qemu command when launching the instance:
    -drive if=scsi,file=/tmp/new_lh_disk.qcow2

Note:This is just an example. You should specify the disk in a similar way to how you specified the primary Lighthouse disk. and you should make sure that the new disk is specified last, otherwise your disk will appear out of order when you boot the Lighthouse.

  1. Once the LH boots you should have a new /dev/sdX device and the 'unused_disks' command should report that disk when you log in.

Adding a New Disk - Azure

Launch the LVM Lighthouse instance as per our guidelines or your own deployment.

To add a volume to the instance, use the following link to attach a new disk to your Lighthouse VM. Stop before you reach the section, "Connect to the Linux VM to mount the new disk."

https://docs.microsoft.com/en-us/azure/virtual-machines/linux/attach-disk-portal

Adding a New Disk - Hyper-V

  1. Launch the LVM Lighthouse instance as per our guidelines or your own deployment. To add a volume to the instance:

  2. Shutdown your Hyper-V Lighthouse instance.

  3. Open your Hyper-V manager.

  4. Navigate to the VM list and locate your Lighthouse VM.

  5. Right click on the instance and click Settings.

  6. Click on the SCSI controller.

  7. Select Hard drive on the right and click Add.

  8. Select Virtual hard disk and click New.

  9. Follow the prompts and select the options that best suit your needs and environment.

  10. Once you've created the disk, click Apply in the VM settings window.

  11. Restart the Lighthouse.

Adding a New Disk - VirtualBox

Launch the LVM Lighthouse instance as per our guidelines from the .ova file or your own deployment. To add a volume to the instance:

  1. Shutdown the Lighthouse instance.

  2. In the VirtualBox UI, locate your Lighthouse instance and right-click it.

  3. Select Settings.

  4. Select Storage on the left.

  5. Click the Controller: SCSI in the disk list.

  6. You will see two small icons, both with a green '+' symbol. Hover your mouse over the one that says Adds a hard disk and click it.

  7. Click the Create icon.

  8. Follow the prompts to create a new disk image.

  9. Select the new disk image and click the Choose button.

  10. Click Ok to exit the VM settings window.

  11. Restart Lighthouse.