- On the SDI topology, click on your machine
- Make sure it is powered down.
- Click on "Edit Component"
- Click on the "Drives" Tab
- Click on the disk image that you would like to expand
- Click on "New Master" and choose a name for your disk image.
- Go to Storage->Disk Images
- You should now see the disk image but the gear should be spinning to indicate that it is currently working on creating the disk image. When it is done, you should see a check mark.
- Once it has been successfully created, click on the disk image and press on Edit under "Disk Image Actions"
- In the "Disk Size (GB)" field, type in a number that you deem is sufficient. It is recommended to not put in a value over 50.
- When you are done typing in the number, click on "Save". If a warning pops up, simply click on "Yes".
- Now, go back to your SDI topology.
- Repeat Steps 1-5.
- Click on the dropdown next to "Image" and select your new master disk image.
- Click on "Save"
- Find your operating system below and follow its instructions
- Login to the system via the VNC web viewer
- Become root
- Type in "cfdisk"
- Using the arrow keys, scroll down to "Free Space"
- Select "[New]" and press the "enter" key
- Press the "enter" key again to create a partition size consisting of the entire "Free Space"
- Using the arrow keys, select "[Write]"
- A prompt will ask you if you are sure that you want to proceed, simply type in "yes"
- Using the arrow keys, select "[Quit]"
- Reboot the system and repeat steps 1 and 2
- Run "fdisk -l /dev/sda" and locate your partition (you may use the size of the disk to identify it and the "Type" should simply be "Linux")
- Run "pvcreate /dev/sdaX" where X is the device number that you identified in the previous step. Now the partition is being managed by the LVM.
- Run "vgdisplay" and identify your volume group name. It is located next to "VG Name" (e.g. "ubuntu-vg")
- Run "vgextend /dev/sdaX" where "VG Name" is replaced by the volume group name and "X" is replaced by the device number.
- Run "lvextend -l+100%FREE /dev//root" to extend the logical volume to include the new physical volume as well.
- Run "resize2fs /dev/mapper/-root" to extend the filesystem. You may need two hyphens (--) between "ubuntu" and "vg"
- Voila!