Attaching or detaching Storage Foundation components in guest virtual machines

Aattach or detach DMP device, volume device, or Veritas File System (VxFS) file as the storage backend for the specified virtual machine through the SF administration utility from the RHEV-M machine. These attached devices should be a shared entity across RHEV-M cluster in a high availability configuration and as a replicated entity in disaster recovery configurations. Note that you need to power off virtual machines before attaching or detaching storage.

To attach storage to virtual machines:

  1. Power off the virtual machine.
  2. Log in to the RHEV-M machine.
  3. Run # /opt/VRTSrhevm/bin/vxrhevadm -p RHEV Admin Password -n [VM] [dmpnodepath] attach

    Attaches the DMP node as a disk to the specified virtual machine, where dmpnodepath is the path of DMP device on the host.

  4. Run # /opt/VRTSrhevm/bin/vxrhevadm -p <password> -n [VM] [volume] attach

    Attaches volume as a block device to the specified virtual machine.

  5. Run # /opt/VRTSrhevm/bin/vxrhevadm -p <password> -n [VM] \

    <file-path:raw> | <file-path:qcow2> attach

    Attaches file system as a file device to the specified virtual machine.

  6. Power on the virtual machine either through the vxrhevadm utility or the RHEV-M web interface.

To detach storage to a virtual machine:

  1. Power off the virtual machine.
  2. Log in to the RHEV-M machine.
  3. Run # /opt/VRTSrhevm/bin/vxrhevadm -p <password> -n [VM] [dmpnodepath] detach

    Detaches the DMP node as a disk to the specified virtual machine, where dmpnodepath is the path of DMP device on the host.

  4. Run # /opt/VRTSrhevm/bin/vxrhevadm -p <password> -n [VM] [volume] detach

    Detaches the volume as a block device to the specified virtual machine.

  5. Run # /opt/VRTSrhevm/bin/vxrhevadm -p <password> -n [VM] \

    <file-path:raw> | <file-path:qcow2> detach

    Detaches the filesystem as a file device to the specified virtual machine.

  6. Power on the virtual machine either through the vxrhevadm utility or the RHEV-M web interface.