HP vPars and Integrity Virtual Machines V6.1 Administrator Guide

1. Based on the all vPar/VM storage considerations, choose a storage device to add.
2. Based on the device type, set up and configure the VSP to form a valid resource statement.
This includes accounting VSP resources to avoid future storage conflicts.
3. Use the valid resource statement with the hpvmmodify command to add or attach the vPar/VM
storage device.
The resource statement for adding an vPar/VM storage device does not require virtual hardware
addressing. If the PCI bus, slot and target numbers are not specified, vPars and Integrity VM
automatically chooses the first position available for the device. For example:
# hpvmmodify -P myvmm -a disk:avio_stor::disk:/dev/rdisk/disk7
# hpvmstatus -P myvmm
..
[Storage Interface Details]
...
disk avio_stor 0 1 0 0 0 disk /dev/rdisk/disk5
disk avio_stor 0 1 0 1 0 disk /dev/rdisk/disk7
To add an AVIO storage device with whole disk as the backing store, specify the following:
host# hpvmmodify -P guest1 -a disk:avio_stor:0,5,0:disk:/dev/rdisk/disk11
NOTE: You can achieve higher guests performance for HP-UX 11i v3 guests by configuring as
many AVIO storage adapters as the number of virtual CPUs in the guest. The pcibus, pcislot,
and aviotgt portions need to be explicitly specified for each device. For example, a resource
statement for a 4–vCPU guest takes the following form:
-a disk:avio_stor:1,0,0:disk:/dev/rdisk/disk1
-a disk:avio_stor:1,1,0:disk:/dev/rdisk/disk2
-a disk:avio_stor:1,2,0:disk:/dev/rdisk/disk3
-a disk:avio_stor:1,4,0:disk:/dev/rdisk/disk4
9.3.2.2 Deleting storage devices
A VSP administrator deletes or detaches vPar/VM storage using the hpvmstatus and hpvmmodify
commands. vPar/VM storage devices can be deleted or detached while the virtual machine is
powered on or off. An Integrity VM storage adapter can only be removed when the virtual machine
is off. The vPar/VM storage adapter is automatically removed when the last vPar/VM storage
device connected to the adapter is removed.
The process to delete or detach a virtual storage device from a vPar/VM is as follows:
1. Use the hpvmstatus command to locate the resource to verify whether the vPar/VM is
powered on. If the vPar/VM is on, consult with the guest administrator to obtain permission
to remove the resource before proceeding.
2. Use the hpvmmodify command to delete or detach the resource.
3. Verify that the VSP resource is no longer being used by the vPar/VM.
The resource statement for deleting an vPar/VM storage device does not require virtual hardware
addressing. For example:
# hpvmstatus -P myvmm
...
[Storage Interface Details]
...
disk avio_stor 0 1 0 0 0 disk /dev/rdisk/disk5
disk avio_stor 0 1 0 1 0 disk /dev/rdisk/disk7
disk avio_stor 0 1 0 2 0 disk /dev/rdisk/disk9
disk avio_stor 0 5 0 0 0 disk /dev/rdisk/disk11
# hpvmmodify -P myvmm -d disk:avio_stor::disk:/dev/rdisk/disk7
# hpvmstatus -P myvmm
...
[Storage Interface Details]
9.3 Using vPars and Integrity VM storage 137