- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tape device changed from /dev/rmt/0m to /dev/rmt/2...
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
03-09-2006 02:14 AM
03-09-2006 02:14 AM
After this the device named changed.
How can I get the new tape drive to be /dev/rmt/0m?
Any solutions?
Best regards
Hans Ove
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 02:19 AM
03-09-2006 02:19 AM
Re: Tape device changed from /dev/rmt/0m to /dev/rmt/2m
The easiest way around this problem is to create a symbolic link for the device files in question.
Otherwise, the Technical Knowledge Base (document #KBRC00010752 for example) describes how to reassign the instance number you want. A reboot is required, however.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 02:27 AM
03-09-2006 02:27 AM
Re: Tape device changed from /dev/rmt/0m to /dev/rmt/2m
Here is my step by step procedure for dealing with this:
===============================================
First, let me echo Bill Hassell in saying you can simply rename the existing dev
ice file. There is no significance other than historical to the device names as
we know them.
Second, if you're still nervous about it, you can use a link - linking the undes
ired name to the preferred name.
Third, if you really want to re-create the device names properly, here is a guid
e:
1. Use "ioscan" to find out what the current device files look like and what th
e instance number is:
ioscan -kfnCtape
2. Use "mksf" to create each of the four types of device files:
/sbin/mksf -d stape -I 12 -a -b BEST rmt/12m
/sbin/mksf -d stape -I 12 -u -b BEST rmt/12mb
/sbin/mksf -d stape -I 12 -a -n -b BEST rmt/12mn
/sbin/mksf -d stape -I 12 -u -n -b BEST rmt/12mnb
3. Use "ll" to compare your newly created device files with those created by the
system. Major and minor numbers should match between corresponding entries (205
0x061000 for both 12m and the equivalent c6t1d0BEST):
ll /dev/rmt |more
crw-rw-rw 1 bin bin 205 0x061000 Mar 17 08:40 12m
.
.
.
crw-rw-rw 1 bin bin 205 0x061000 Mar 17 08:40 c6t1d0BEST
.
.
.
4. repeat the ioscan to double check that your new device files are associated w
ith the correct tape drive:
ioscan -kfnCtape
I was using 12m in the example but you can use anything you want.
===============================================
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 02:44 AM
03-09-2006 02:44 AM
Re: Tape device changed from /dev/rmt/0m to /dev/rmt/2m
I got a error on the mksf command:
/dev/rmt # ll |more
total 0
crw-rw-rw- 2 bin bin 205 0x053000 Mar 9 13:50 2m
crw-rw-rw- 2 bin bin 205 0x053080 Mar 8 17:42 2mb
crw-rw-rw- 2 bin bin 205 0x053040 Mar 8 17:42 2mn
crw-rw-rw- 2 bin bin 205 0x0530c0 Mar 8 17:42 2mnb
/ # ioscan -kfnCtape
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
tape 2 10/1/1/0.3.0 stape CLAIMED DEVICE HP C5683A
/dev/rmt/2m /dev/rmt/c5t3d0BESTn
/dev/rmt/2mb /dev/rmt/c5t3d0BESTnb
/dev/rmt/2mn /dev/rmt/c5t3d0DDS
/dev/rmt/2mnb /dev/rmt/c5t3d0DDSb
/dev/rmt/c5t3d0BEST /dev/rmt/c5t3d0DDSn
/dev/rmt/c5t3d0BESTb /dev/rmt/c5t3d0DDSnb
/ # /sbin/mksf -d stape -I 12 -a -b BEST rmt/12m
mksf: Couldn't find driver matching arguments
-Hans Ove
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 02:48 AM
03-09-2006 02:48 AM
Re: Tape device changed from /dev/rmt/0m to /dev/rmt/2m
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 02:53 AM
03-09-2006 02:53 AM
SolutionBy removing the device file with rnsf and using mksf to create, you would have effectvely only renamed it. My suggestion would be to just rename it.
ex:
mv /dev/rmt/2m /dev/rmt/0m
do the same to the rest of the device files.
The other method would be to use a infile and rearrange the instance number with a reboot, which I think is not crucial as far as TAPE drives are concerned to follow. Easier method is just renaming ot linking.
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 03:14 AM
03-09-2006 03:14 AM
Re: Tape device changed from /dev/rmt/0m to /dev/rmt/2m
Thanks a lot to all of you!
I simply moved the 2m files to 0m.
Best regards
Hans Ove
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2006 03:56 AM
03-09-2006 03:56 AM
Re: Tape device changed from /dev/rmt/0m to /dev/rmt/2m
Logged in as root, give the commands:
mv /dev/rmt/2m /dev/rmt/0m
mv /dev/rmt/2mb /dev/rmt/0mb
mv /dev/rmt/2mn /dev/rmt/0mn
mv /dev/rmt/2mnb /dev/rmt/0mnb
No reboot was needed for my system.
HP B2600 running HPUX-11.11
Thanks again!
Hans Ove
Kongsberg, Norway