HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tape devices
Operating System - HP-UX
1834018
Members
2306
Online
110063
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
12-19-2002 05:50 AM
12-19-2002 05:50 AM
Hi,
I have re-installed HP-UX 10.20 on one of our servers. I have found that the previous tape device /dev/rmt/0m is unavailable and to access this we now have to use /dev/rmt/01, previous /dev/rmt/01 is now /dev/rmt/02 etc...
Is there a simple way to re-align these tape devices?
Thanks in advance,
Trystan.
I have re-installed HP-UX 10.20 on one of our servers. I have found that the previous tape device /dev/rmt/0m is unavailable and to access this we now have to use /dev/rmt/01, previous /dev/rmt/01 is now /dev/rmt/02 etc...
Is there a simple way to re-align these tape devices?
Thanks in advance,
Trystan.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 06:01 AM
12-19-2002 06:01 AM
Solution
Trystan,
You can make the device files:
1. Use "ioscan" to find out what the current device files look like and what the 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 with the correct tape drive:
ioscan -kfnCtape
I was using 12m in the example but you can use anything you want.
Pete
Pete
You can make the device files:
1. Use "ioscan" to find out what the current device files look like and what the 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 with 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
12-19-2002 06:22 AM
12-19-2002 06:22 AM
Re: tape devices
Hi,
By default, number after rmt is simply the instance number that you get in ioscan. So deleting and recreating devices will not work if instances keep the same.
So you can try to rename the 1m, 1mn, 1mb and 1mnb files to 0m, ... (don't need to change the cxtydzzz files), on remap your instances, use rmsf in /dev/rmt and finally insf -e.
Remapping tape instances is quite simple but you need a reboot :
0 - use man ioinit ...
1 - run ioscan -kfnCtape
2 - from previous output create a file containing lines like :
hw_path tape 0
hw_path tape 1
hw_path tape 2
...
these lines should reflect the numbers you want
3 - run ioinit -f file (check error messages !)
4 - reboot ...
5 - rmsf /dev/rmt/*
6 - insf -e
Regards
By default, number after rmt is simply the instance number that you get in ioscan. So deleting and recreating devices will not work if instances keep the same.
So you can try to rename the 1m, 1mn, 1mb and 1mnb files to 0m, ... (don't need to change the cxtydzzz files), on remap your instances, use rmsf in /dev/rmt and finally insf -e.
Remapping tape instances is quite simple but you need a reboot :
0 - use man ioinit ...
1 - run ioscan -kfnCtape
2 - from previous output create a file containing lines like :
hw_path tape 0
hw_path tape 1
hw_path tape 2
...
these lines should reflect the numbers you want
3 - run ioinit -f file (check error messages !)
4 - reboot ...
5 - rmsf /dev/rmt/*
6 - insf -e
Regards
It works for me (© Bill McNAMARA ...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 06:35 AM
12-19-2002 06:35 AM
Re: tape devices
Hi,
try this:
# rmsf -H
# insf -H
# ioscan -fnCtape
Regards,
Armin
try this:
# rmsf -H
# insf -H
# ioscan -fnCtape
Regards,
Armin
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