Provisioning Veritas Volume Manager volumes as data disks for VM guests

The following procedure uses Veritas Volume Manager (VxVM) volumes as data disks (virtual disks) for VM guests. The example host is sys1 and the VM guest is guest1. The prompts in each step show in which domain to run the command.

To provision Veritas Volume Manager volumes as data disks

  1. Create a VxVM disk group (mydatadg in this example) with some disks allocated to it:
    sys1# vxdg init mydatadg TagmaStore-USP0_29 TagmaStore-USP0_30
  2. Create a VxVM volume of the desired layout (in this example, creating a simple volume):
    sys1# vxassist -g mydatadg make datavol1 500m
  3. KVM: Map the volume datavol1 to the VM guest:
    sys1# virsh attach-disk guest1 /dev/vx/dsk/mydatadg/datavol1 vdb

    RHEV: Map the volume datavol1 to the VM guest:

    #  /opt/VRTSrhevm/bin/vxrhevadm -p  RHEV Admin Password -n <VM> -v <volume> attach
  4. To make the mapping persistent, redefine the VM guest.

    KVM:

    sys1# virsh dumpxml guest1 > /tmp/guest1.xml
    sys1# virsh define /tmp/guest1.xml