HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Attaching a Tape device to a HPVM guest
Operating System - HP-UX
1834650
Members
2226
Online
110069
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2009 08:32 AM
09-25-2009 08:32 AM
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 ?
#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 ?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2009 09:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2009 09:24 AM
09-25-2009 09:24 AM
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
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2009 11:52 AM
10-02-2009 11:52 AM
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.
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.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP