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

Add
# hpvmmodify -P guest1 -a tape:avio_stor:0,5,0:attach_path:0/1/1/0.0x50060b0000332254.0x0
# hpvmmodify -P guest1 -a changer:avio_stor:0,5,1:attach_path:0/1/1/0.0x50060b0000332253.0x0
# hpvmmodify -P guest1 -a burner:avio_stor:0,5,2:attach_path:0/1/1/0.0x50060b0000332252.0x0
Delete
# hpvmmodify -P guest1 -d tape:avio_stor:0,5,0:attach_path:0/1/1/0.0x50060b0000332254.0x0
# hpvmmodify -P guest1 -d changer:avio_stor:0,5,1:attach_path:0/1/1/0.0x50060b0000332253.0x0
# hpvmmodify -P guest1 -d burner:avio_stor:0,5,2:attach_path:0/1/1/0.0x50060b0000332252.0x0
Modify
# hpvmmodify -P guest1 -m tape:avio_stor:0,5,0:attach_path:0/1/1/0.0x50060b0000332254.0x0
# hpvmmodify -P guest1 -m changer:avio_stor:0,5,1:attach_path:0/1/1/0.0x50060b0000332253.0x0
# hpvmmodify -P guest1 -m burner:avio_stor:0,5,2:attach_path:0/1/1/0.0x50060b0000332252.0x0
NOTE: When a guest application uses an attached device, the other guest's (or VM Host) access
to the attached device path is denied.
To know which lunpath is being used by a guest when the scsi (VIO) adapter is used, use the
scsimgr command with the get_info option specifying the tape device special file. Look for
the line “LUN path used when policy is path_lockdown” to see the chosen lunpath hardware
path.
7.1.3.2 Finding the lunpath Hardware Path
To obtain the lunpath hardware path for an attached device, use the ioscan command with the
-m lun option. For example, in this case of a tape having two paths. the ioscan output looks
like this:
# ioscan -m lun /dev/rtape/tape1_BEST
Class I Lun H/W Path Driver S/W State H/W Type Health Description
======================================================================
tape 1 64000/0xfa00/0x0 estape CLAIMED DEVICE online STK T9940B
0/1/1/1.0x500104f00048b29d.0x0
0/7/1/1.0x500104f00048b29e.0x0
/dev/rtape/tape1_BEST /dev/rtape/tape1_BESTn
/dev/rtape/tape1_BESTb /dev/rtape/tape1_BESTnb
You can use the ioscan command to find the device special file corresponding to a lunpath
hardware path. For example, in the previous case, to find the device special file for lunpath
hardware path 0/7/1/1.0x500104f00048b29e.0x0, invoke the following ioscan command line:
# ioscan -kfnNH 0/7/1/1.0x500104f00048b29e.0x0
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
lunpath 21 0/7/1/1.0x500104f00048b29e.0x0 eslpt CLAIMED LUN_PATH LUN path for tape1
The DSF for tape1 is /dev/rtape/tape1_BEST*. The DSF for attached devices with the scsi adapter
is /dev/pt/pt_tape1.
7.1.3.3 Sharing an Attached Device
Attached devices can be shared among multiple guests in a VM Host using a single physical
HBA port (initiator) or multiple physical HBA ports (initiators) in the VM Host. This section
describes how to share attached devices. To share a tape device, do the following:
1. Identify the tape device(s):
# ioscan -funNC tape
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
tape 5 64000/0xfa00/0x1 estape CLAIMED DEVICE HP Ultrium 3-SCSI
/dev/rtape/tape5_BEST /dev/rtape/tape5_BESTn
/dev/rtape/tape5_BESTb /dev/rtape/tape5_BESTnb
tape 6 64000/0xfa00/0x3 estape CLAIMED DEVICE STK T9840B
/dev/rtape/tape6_BEST /dev/rtape/tape6_BESTn
/dev/rtape/tape6_BESTb /dev/rtape/tape6_BESTnb
2. This system has two tape drives. Identify the lunpaths:
# ioscan -m lun /dev/rtape/tape5_BEST
Class I Lun H/W Path Driver S/W State H/W Type Health Description
======================================================================
tape 5 64000/0xfa00/0x1 estape CLAIMED DEVICE online HP Ultrium 3-SCSI
96 Creating Virtual Storage Devices