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

Table 36 (page 250) lists the options that can be used with the hpvmdevmgmt command.
Table 36 Options to the hpvmdevmgmt command
DescriptionOption
Lists an entry. To list all entries, enter the following
command:
# hpvmdevmgmt -l all
-l
{server|rdev|gdev}:entry_name:attr:attr_name=attr_value
Displays the version number of the hpvmdevmgmt
output format. The version number is followed by
the display specified by other options.
-v
Increases the amount of information displayed
(verbose mode).
-V
Creates a file for use as a virtual device. The size
argument must end in either M for megabyte or G
for gigabyte.
-S size filename
Creates passthrough device files (for example,
/dev/rscsi). Passthrough devices are used by
attached devices, such as tape devices, media
changers, and CD or DVD burners.
-I
Modifies an existing attribute or adds the attribute
if it does not already exist.
-m
{server|rdev|gdev}:entry_name[:attr:attr_name=attr_value]
Adds an entry.-a
{server|rdev|gdev}:entry_name[:attr:attr_name=attr_value]
Deletes an entry.-d {server|rdev|gdev}:entry_name[:param:arg]
Deletes one alias if a device has multiple aliases
defined.
-d gdev_alias:/dev/rdisk/disknn
Replaces a device.-n
gdev:oldentry_name:newentry_name0[,newentry_name1]
Generates a report script that can be used after
inspection to fix various device database problems.
-r
For example, to view a list of the restricted devices, enter the following command:
# hpvmdevmgmt -l rdev
/dev/rdisk/disk4:CONFIG=rdev,EXIST=YES,DEVTYPE=DISK,
SHARE=NO::6005-08b4-0001-15d0-0001-2000-003a-0000
To make a device shareable among guests, enter the following command:
# hpvmdevmgmt -m gdev:/data/file.iso:attr:SHARE=YES
NOTE: Whenever you add a device that is going to be used in guest configurations to an Integrity
VSP, run the hpvmdevmgmt -I command after adding the device to the host.
13.19.2.1 Sharing devices
With Integrity VM, you can allow devices to be specified as either shared or not shared. By default,
vswitches are configured to be shared, and storage devices are configured to not be shared. As
administrator, you can configure a storage device to be shared by multiple guests.
The SHARE attribute is checked only when booting a guest. If one guest is running with a nonshared
device and another guest attempts to boot using that same device, the latter guest is blocked. If
multiple guests must share devices, then the SHARE attribute for those devices must be changed to
SHARE=YES using the modify option (-m) with the hpvmdevmgmt command.
For example, to make the HP-UX iso.* images shareable so that two VMs (host1 and host2)
can use them to install at the same time, enter the following commands:
250 Managing vPars and VMs using CLI