Operating System - HP-UX
1834650 Members
2226 Online
110069 Solutions
New Discussion

Attaching a Tape device to a HPVM guest

 
SOLVED
Go to solution
KAUSTAV BOSE
Occasional Advisor

Attaching a Tape device to a HPVM guest

I am trying to assign a tape device to a HPVM guest and get errors. I am using the correct format for the HPVM resource.

#root@iclhpvmh01 /root:hpvmmodify -P metagen1 -a tape:scsi:0,2,0:attach:/dev/rscsi/c5t7d0
hpvmmodify: ERROR (metagen1): Incorrect backing device type.
hpvmmodify: Unable to create device tape:scsi:0,2,0:attach:/dev/rscsi/c5t7d0.
hpvmmodify: Unable to modify the guest.

Here is my ioscan output showing the SCSI initiator and tape device:

#root@iclhpvmh01 /root:ioscan -fnCtape -H 0/0/10
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
tape 3 0/0/10/1/0/4/1.2.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/3m /dev/rmt/3mn /dev/rmt/c5t2d0BEST /dev/rmt/c5t2d0BESTn
/dev/rmt/3mb /dev/rmt/3mnb /dev/rmt/c5t2d0BESTb /dev/rmt/c5t2d0BESTnb

#root@iclhpvmh01 /root:ioscan -fnCctl -H 0/0/10
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
ctl 1 0/0/10/1/0/4/0.7.0 sctl CLAIMED DEVICE Initiator
/dev/rscsi/c4t7d0
ctl 3 0/0/10/1/0/4/1.7.0 sctl CLAIMED DEVICE Initiator
/dev/rscsi/c5t7d0


Any ideas ?
3 REPLIES 3
melvyn burnard
Honored Contributor
Solution

Re: Attaching a Tape device to a HPVM guest

You are trying to attach the Initiator *scsi controller) as a tape, and not the tape itself
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
melvyn burnard
Honored Contributor

Re: Attaching a Tape device to a HPVM guest

You need to create the rscsi devices for the tapes.
As you do not state which version you are using, I quote from the Installing and Managing Integrity Virtual Machines 3.5 manual. section 7.2.2.3.7 Attachable Devices:
The resource statements for attached devices take the following forms depending upon device
type:
For magnetic tape, use:
tape:scsi::attach:/dev/rscsi/cXtYdZ
For media changers, use:
changer:scsi::attach:/dev/rscsi/cXtYdZ
For CD/DVD burners, use:
burner:scsi::attach:/dev/rscsi/cXtYdZ
Where /dev/rscsi/cXtYdZ is an HP-UX sctl device file to the device type specified.
To create an HP-UX sctl device file, follow these steps:
1. Run ioscan to pick up any new devices that may have just been connected:
# ioscan
2. Locate the device designated for attachment.
2a. Install any device special files for these new devices:
# insf -e
2b. Check to see if the new devices were claimed by VM Host:
# ioscan -fun
The following is an example of a claimed tape device:
tape 1 0/2/1/0.5.0 stape CLAIMED DEVICE HP C7438A
/dev/rmt/1m /dev/rmt/c6t5d0BESTn
/dev/rmt/1mb /dev/rmt/c6t5d0BESTnb
/dev/rmt/1mn /dev/rmt/c6t5d0DDS
/dev/rmt/1mnb /dev/rmt/c6t5d0DDSb
/dev/rmt/c6t5d0BEST /dev/rmt/c6t5d0DDSn
/dev/rmt/c6t5d0BESTb /dev/rmt/c6t5d0DDSnb
If the device is not seen in ioscan -fun, proceed to step 2c. Otherwise, go to step 3.

....
3. Install sctl device files under the /dev/rscsi/ directory using the hpvmdevmgmt
command. For example:
# hpvmdevmgmt -I
4. Locate a /dev/rscsi sctl device file that corresponds to the device slated for attachment.
4a. If the device was claimed, the /dev/rscsi file ends with the same cXtYdZ numbers.
The following is an example of a tape device:
Claimed = /dev/rmt/c6t5d0BEST
SCTL = /dev/rscsi/c6t5d0
The following is an example of media changer device:
Claimed = /dev/rac/c6t0d0
SCTL = /dev/rscsi/c6t0d0
The following is an example of CD/DVD burner device:
Claimed = /dev/rdsk/c4t3d2
SCTL = /dev/rscsi/c4t3d2
Once the /dev/rscsi file has been located, proceed to step 5.
.......
The following shows how the hardware address is broken down into controller, target and
device numbers:
c is the instance of 0/2/1/0
ext_bus is 6
t is 5
d is 0
The sctl file to create is /dev/rscsi/c6t5d0
To create the sctl device file, see scsi_ctl(1M).
Use the mknod command, substituting the values in the minor number as noted:
# /usr/sbin/mknod /dev/rscsi/devname c 203 0xCCTL02
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
KAUSTAV BOSE
Occasional Advisor

Re: Attaching a Tape device to a HPVM guest

thanks for the info. as you pointed out i wasn't using the sctl device for the tape but the scsi initiator.

also i noticed that the device file for the tape was stale as the tape device had been moved. it would not have worked anyway.

i used a different tape device and the procedure worked.