Managing Independent Disks

Independent disks are standalone virtual disks that you will create in your oVDC. After creating the disk in a VDC, the disk owner or an administrator can attach it to the VMs of the oVDC using the vCloud API.

Creating a Disk

From the data center view, select Independent Disks.

  • Select the “New” button to create your disk.
  • Fill in the fields according to your needs, then click on the SAVE button.
  • A task will confirm the creation of the disk.

Be sure to select the same bus type used in the target VMs for attachment.

Modifying a Disk

  • Select the “Edit” button to modify the characteristics of your disk, then click on SAVE.
  • A task confirms the modification of the disk.

You cannot decrease the size of a disk. If ever you choose to do so you will receive the following error:

Deleting a Disk

Select the “Delete” button, then hit OK.

Confirmation is requested before deletion, of course, as follows:

Attaching and Detaching a Disk

To attach/detach a disk, you must use the vCloud API. A disk cannot be attached to multiple VMs at the same time, as previously stated.

Import the Module CIDisk.psm1:

  • Import-Module .\CIDisk.psm1

Retrieve the Href object of the VM:

  • Get-CIVM -Name <nom _VM> | Select-Object Href

Retrieve the Href object of the Disk:

  • Get-CIDisk -DiskName <nom _du_disk> | Select-Object Href

Here is a typical example:

Attaching the Disk to the VM

  • Mount-CIDisk -VMHref <HRef_VM> -DiskHref <HRef_Disk>

Here is an example:

The disk is now attached to the VM (VM Property).
Now you need to discover the disk based on its OS.

Detaching the Disk from the VM

  • Dismount-CIDisk -VMHref <HRef_VM> -DiskHref <HRef_Disk>

Pleas find this typical example below:

The disk is now detached from the VM but still available in the ‘Independent Disks’ rubric.
It is not deleted and can be reattached to the same VM or another if needed.