- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to make tape drive the default tape drive?
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
01-29-2004 06:27 AM
01-29-2004 06:27 AM
I'm a newbie so don't mind the simple question. I just replaced my tape drive and I did a tar tv command but the system is telling me 'cannot open /dev/rmt/0m'. I went into the /dev/rmt directory and I found a new set of device files that goes like 1m, 1mn etc. I did a tar tvf /dev/rmt/1m and I'm able to read the contents of the tape.
My question is how do make it such that the 0m, 0mn series of device files are associated with my tape? That is, make my tape drive the default tape drive? Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2004 06:34 AM
01-29-2004 06:34 AM
SolutionYou need to make the new tape /dev/rmt/0m is all. Use rmsf to get rid of the existing /dev/rmt/0m device files (all of them). Then follow these instructions to create the new ones:
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.
When you're done, again use rmsf to get rid of the /dev/rmt/1m files.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2004 06:35 AM
01-29-2004 06:35 AM
Re: How to make tape drive the default tape drive?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2004 06:36 AM
01-29-2004 06:36 AM
Re: How to make tape drive the default tape drive?
Im pretty sure if you go into Sam--Peripherals--Tape drives...
You should remove both tape devices and then run insf -e again... it should recreate it with 0mn as you prefer.
If you had removed 0mn before you rebooted it would have reassigned that to the new drive, but since it was already defined, you got a new tape device number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2004 06:45 AM
01-29-2004 06:45 AM
Re: How to make tape drive the default tape drive?
For some reason your system stopped recognized /dev/rmt/0m or it was removed, or the system thought the id changed.
Its difficult to get it to recognize again, but here is the procedure:
I had an old itrc software case with a complete solution.
As I remember
mv /etc/ioconfig /root # whereever
boot the box at the console
ioinit -c when it comes up to a prompt saying has no i/o
I will post the document link once itrc decides to cough it up.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2004 06:46 AM
01-29-2004 06:46 AM
Re: How to make tape drive the default tape drive?
it also probably needs an insf -e
I like Petes better, though it wasn't available when i started the first post.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2004 07:02 AM
01-29-2004 07:02 AM