HP vPars and Integrity Virtual Machines V6.1 Administrator Guide
To find the lunpath hardware path of a device, see Section 6.1.3.2. Once the lunpath hardware
path is obtained, use the hpvmmodify command to add the tape to a guest. For example, use
the following command to assign the second lunpath to guest1:
# hpvmmodify -P guest1 -a tape:avio_stor::attach_path:0/7/1/1.0x500104f00048b29e.0x0
The following examples add, delete, and modify attached devices:
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 VSP) access to
the attached device path is denied.
9.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*.
9.1.3.3 Sharing an attached device
Attached devices can be shared among multiple vPars/VMs in a VSP using a single physical HBA
port (initiator) or multiple physical HBA ports (initiators) in the VSP. 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
110 Creating virtual storage devices