HP-UX vPars and Integrity VM V6.3 Administrator Guide

To create empty files for virtual disks, use the hpvmdevmgmt command (see Section 13.19
(page 248)).
To create ISO files from physical CD or DVD media for use in virtual DVDs, use the mkisofs or the
dd utility.
NPIV brings in ease of storage provisioning because storage presentation does not have to be a
two-step process (first, presenting the LUNs to the VSP and then assigning each one to the vPar
and VM guest). With NPIV HBAs, storage provisioning for a vPar or VM guest is the same as for
a standalone system. This differentiates it from legacy AVIO storage.
6.4.1.10 Sample script for adding multiple devices at once
To add 256 AVIO storage devices to a vPar or VM guest, HP recommends that you use the
hpvmcreate and hpvmmodify commands to add multiple devices at a time using multiple -a
options. Adding multiple devices at a time takes less time than adding them one at a time, with
one device per call to hpvmcreate command and then one device per call in subsequent calls
to hpvmmodify command.
You can add any number of devices at a time up to the supported limit. However, you might find
that adding multiple devices at a time per call to hpvmmodify command not only takes less time
than adding all of them at once, but also using one particular number of devices at a time provides
better hpvmmodify command performance than others. For example, if you are adding a total
of 256 disks, adding 64 at a time might provide better performance than adding 8 at a time and
better performance than adding 128 at a time. The best number to use might vary depending on
many factors including how many total devices you are adding.
For more information about the sample script for adding multiple devices, see Appendix C
(page 281).
6.4.2 Setting up virtual storage
When you add or modify a virtual device, you must enter a resource statement (rsrc). The resource
statement can specify either virtual network devices (as described in Chapter 8 (page 111) and
hpvmresources(5)), or virtual storage devices.
The resource statement specifies the virtual storage device that will be seen by the vPar and VM
guest and how it maps to the physical storage device on the VSP.
The following is an outline of a complete resource statement for specifying a virtual storage device:
VM-vpar-storage-specification:VM-Host-storage-specification
where:
VM-vpar-storage-specification defines where and what storage is seen in the vPar and VM
guest (see Section 6.4.2.1 (page 75)).
VM-Host-storage-specification defines where and how the vPar and VM guest storage is
supplied on the VSP (see Section 6.4.2.2 (page 76)).
For examples of how to construct resource statements, see Section 6.4.2.3 (page 77).
6.4.2.1 Storage specification
All virtual storage is addressed from virtual PCI buses. The vPar and VM guest virtual platform
contains 8 PCI buses. Each PCI bus has 8 slots into which virtual PCI adapters can be placed. An
AVIO storage adapter supports up to 128 devices and provides high performance and guest
storage manageability.
A VSP administrator specifies this virtual adapter using the following:
device:avio_stor:pcibus,pcislot,target
where:
6.4 Configuring vPar and VM guest storage 75