Please verify that the image used to create your VM supports disk expansion.
To expand the hard drive in your CacheDrive VM, power down the VM using the Morro Cloud Manager, then follow the directions below according to your virtualization platform.
- After the CacheDrive is shutdown, ESXi will show the VM as powered off.
- Right-click on the VM and select Edit Settings.
- Set the data disk size to the desired new size and click Save.
- Disk size may only be increased. If you try to shrink the disk, you will see the following error message.
- Power on the VM.
- Once the CacheDrive is done booting, verify in MCM that the cache size has now been increased.
- After the CacheDrive is shutdown, Hyper-V Manager will show the VM with a state of "off".
- Select the VM, then click Settings in the right side menu.
- Under SCSI controller, select the data drive. Note the filename for the virtual hard disk.
- Click Cancel.
- Click Edit Disk in the right side menu.
- Click Next until you reach Locate Disk.
- Click Browse and select the virtual hard disk file from the Settings menu. Then Click Next.
- Select Expand, then click Next.
- Enter the desired new hard drive size and click Next. You will see an "Out of Bounds" error popup if you try to shrink the drive.
- Verify that the settings are correct, then click Finish.
- Click Start in the right side menu. If you see a popup asking about reverting to a previous checkpoint, click Continue to use the last machine state.
- Once the device has finished booting, verify that the cache size has increased in MCM.
Note: When the VM restarts, you may see an error message stating that provisioning failed. Check the serial console to verify that the VM has started properly. The expected serial console output is:
- After the CacheDrive is shutdown, the Azure Portal will show the VM status as "Stopped". In this state, the disk cannot be resized.
- Completely stop the VM from the Azure Portal by clicking the "Stop" button.
- Once the VM is completely stopped, the Azure Portal will show the VM state as "Stopped (deallocated)".
- Select the data disk attached to the VM and confirm the Disk state is "Reserved". If the disk is still attached, Disk state will be shown as "Attached" and cannot be resized.
- From Settings/Configuration, enter the desired disk size. The disk size can only be increased and may not be decreased. Azure will charge according to the next available pre-defined size. Please consult with Microsoft for disk size selection.
- Restart the VM and verify that the cache size has increased in MCM.