A few command usages from the RHEV administration utility, vxrhevadm
, to configure storage for virtual machines.
# ./vxrhevadm -p admin list hosts
Lists details of the virtual machines present on the host.
Host Address HostID ============================================================================== linux veritas.com e20b2608-1472-4f20-b54f-ae13af4907d4 # ./vxrhevadm -p admin list vms VM State Host VMID =============================================================================== VM1 down - 2d7f3d3d-adf2-4c70-a138-c646c7e6d771 VM2 down - 813e5b85-8544-4fb9-a238-6c650cd73e49 VM3 down - af3d99e6-d007-4499-8d22-fc21e6f9f3d4 VM4 down - af62977b-8ba7-46b0-bca9-3828ca5354b9 VM5 down - 308a4812-812d-44f5-9171-949025f38ef2 VM6 down - 565ed6cd-d780-484b-84a6-1a5267a4eb72 VM7 down - e0141c6e-03d9-4eb0-8252-97dee1ba0a85 VM8 down - d3349764-49d6-4d2a-b8af-eb4068d61379 # ./vxrhevadm -p admin -n VM4 start The virtual machine VM4 is started successfully. # ./vxrhevadm -p admin -n VM4 start The virtual machine VM4 is started successfully. # ./vxrhevadm -p admin -n VM4 -d /dev/vx/dmp/xiv0_8275 attach Power off the virtual machine before you attach the device. # ./vxrhevadm -p admin -n VM4 stop The virtual machine VM4 is stopped successfully. # ./vxrhevadm -p admin -n VM4 -d /dev/vx/dmp/xiv0_8274 attach The device /dev/vx/dmp/xiv0_8274 is successfully attached to the virtual machine VM4. # ./vxrhevadm -p admin -n VM4 -d /dev/vx/dmp/xiv0_8274 detach The device /dev/vx/dmp/xiv0_8274 is successfully detached from the virtual machine VM4. # ./vxrhevadm -p admin -n VM5 -v /dev/vx/dsk/group/vol3 detach The device /dev/vx/dsk/group/vol3 is successfully detached from the virtual machine VM5. # ./vxrhevadm -p admin -n VM5 -f /mnt/disk.img:raw attach The device /mnt/disk.img:raw is successfully attached to the virtual machine VM5. # ./vxrhevadm -p admin -h linux configure The permissions of all attached devices present on host Linux are successfully configured.