Attaching and Connecting Volumes

Before you can access a newly created volume from a cloud VM, you must first attach the volume to that VM. Attaching a volume to a cloud VM creates the associations and permissions that enable the VM to connect to the volume. Detaching a volume removes these associations and permissions.

After you attach the volume to the cloud VM, you must connect the volume to the cloud VM before you can access the volume.

To attach and connect a newly created volume to your cloud VM:

  1. Click the volume in the Cloud Volumes window.

  2. Scroll down to the Cloud VMs List and click Add Cloud VM. The Add Cloud VM window appears.

  3. From the Cloud VM drop-down menu, select a cloud VM and optionally check the Auto-connect volume to Cloud VM check box. If you check the auto-connection option, HPE CV attempts to attach and connect your volume to your cloud VM in one operation.

  4. (Optional) If you have already attached a volume to a cloud VM and you want to attach your volume to a different cloud provider, click Attach to different cloud account or network and provide all mandatory cloud settings. (See Connecting to Multiple Cloud Services for more information.)

  5. Click Attach. A message appears indicating that the volume was successfully attached.

    If you checked the auto-connect option, a message appears indicating whether the volume was successfully connected to the cloud VM.

Important: To use the auto-connect feature with a new Windows VM, you must complete the following steps:

  1. Start the iSCSI service in the Windows VM and make sure the service starts automatically.
  2. Attach and auto-connect the Cloud Volume to the Windows VM.
  3. Reboot the Windows VM after connecting to ensure the Windows Disk Management GUI displays the correct number of of disks.

If you did not check the auto-connect option (or if the auto-connect operation was unsuccessful) after you attach the volume to the Cloud VM, you can connect the volume to the cloud VM manually by following the on-line instructions that are presented in the wizard.

You can also connect an attached volume to a Cloud VM from the Cloud Volumes window:

  1. Click the volume in the Cloud Volumes window.
  2. Scroll down to the Cloud VMs list and click the Host IP entry.
  3. Click the Connect to VM button.

Alternatively, you can elect to manually connect a volume to a Cloud VM using the CLI utility.

Note that when a volume has an attached cloud VM, the volume appears in the Volumes list with a green border:

Attaching and Connecting Multiple VMs

You can attach and connect multiple VMs to the same volume; however, HPE CV cannot guarantee data consistency when multiple VMs access the data. Therefore, if you connect multiple VMs to the same volume, make sure you use clustering software to ensure data consistency.

When attaching and connecting a second VM to the same volume, you must enable concurrent access to the volume to allow it access. To enable concurrent access to the volume:

  1. Click the volume in the Cloud Volumes window.
  2. Click Actions > Enable concurrent access to volume

Note: The Auto-connect volume to Cloud VM check box will not be enabled for the second VM unless concurrent access is enabled.

Detaching and Disconnecting Volumes

To detach and disconnect a volume from your cloud VM that is connected to the cloud VM:

  1. Click the volume in the Cloud Volumes window.
  2. Scroll down to the Cloud VMs list.
  3. Click the Host IP entry. The Manage Cloud VM Attachment window appears.
  4. Click the check box to automatically disconnect from the cloud VM.
  5. Click the Detach button.
  6. If the auto-disconnect operation is unsuccessful, click the instructions to manually disconnect from the VM and follow the on-screen instructions.

To detach a volume from your cloud VM that is not currently connected to a cloud VM:

  1. Click the volume in the Cloud Volumes window.
  2. Scroll down to the Cloud VMs list.
  3. Click the Host IP entry in the Cloud VMs list.
  4. Click Detach. The volume is detached and the cloud VM entry is removed from the Cloud VM List.