HP Integrity Virtual Machines 4.2: Installation, Configuration, and Administration

machine is powered on or off. A new virtual storage adapter can be added only when the virtual
machine is off. The virtual storage adapter can have up to 30 VIO storage devices or up to 128
AVIO devices total (the number of virtual and attached devices.)
The process to add or attach a virtual storage device to a guest is as follows:
1. Based on the all Integrity VM storage considerations, choose a storage device to add.
2. Based on the device type, set up and configure the VM Host to form a valid resource
statement. This includes accounting VM Host resources to avoid future storage conflicts.
3. Use the valid resource statement with the hpvmmodify command to add or attach the
Integrity VM storage device.
The resource statement for adding an Integrity VM storage device does not require virtual
hardware addressing. If the PCI bus, slot and SCSI target numbers are not specified, Integrity
VM automatically chooses the first position available for the device. For example:
# hpvmmodify -P myvmm -a disk:scsi::disk:/dev/rdisk/disk7
# hpvmstatus -P myvmm
..
[Storage Interface Details]
...
disk scsi 0 1 0 0 0 disk /dev/rdisk/disk5
disk scsi 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 scistgt 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
7.3.2.2 Deleting VM Storage Devices
A VM Host administrator deletes or detaches Integrity VM storage using the hpvmstatus and
hpvmmodify commands. Integrity 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 Integrity VM storage adapter is automatically removed
when the last Integrity VM storage device connected to the adapter is removed.
The process to delete or detach a virtual storage device from a virtual machine is as follows:
1. Use the hpvmstatus command to locate the resource to verify whether the virtual machine
is powered on. If the virtual machine 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 VM Host resource is no longer being used by the virtual machine.
The resource statement for deleting an Integrity VM storage device does not require virtual
hardware addressing. For example:
# hpvmstatus -P myvmm
...
[Storage Interface Details]
...
disk scsi 0 1 0 0 0 disk /dev/rdisk/disk5
disk scsi 0 1 0 1 0 disk /dev/rdisk/disk7
disk scsi 0 1 0 2 0 disk /dev/rdisk/disk9
7.3 Using Integrity VM Storage 121