- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- renaming tape device files
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
07-26-2005 09:48 PM
07-26-2005 09:48 PM
I renamed those device files residing under /dev/rmt/ to 0m, 0mn.. etc.
crw-rw-rw- 2 bin bin 205 0x050000 Jul 27 09:41 0m
crw-rw-rw- 2 bin bin 205 0x050080 Jul 27 09:41 0mb
crw-rw-rw- 2 bin bin 205 0x050040 Jul 27 09:41 0mn
crw-rw-rw- 2 bin bin 205 0x0500c0 Jul 27 09:41 0mnb
crw-rw-rw- 2 bin bin 205 0x050000 Jul 27 09:41 c5t0d0BEST
crw-rw-rw- 2 bin bin 205 0x050080 Jul 27 09:41 c5t0d0BESTb
crw-rw-rw- 2 bin bin 205 0x050040 Jul 27 09:41 c5t0d0BESTn
crw-rw-rw- 2 bin bin 205 0x0500c0 Jul 27 09:41 c5t0d0BESTnb
Do i have to do any additional things apart from renaming the device files?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2005 10:11 PM
07-26-2005 10:11 PM
SolutionFirst, let me echo Bill Hassell in saying you can simply rename the existing device 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 undesired name to the preferred name.
Third, if you really want to re-create the device names properly, here is a guide:
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.
Hope this helps!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2005 10:15 PM
07-26-2005 10:15 PM
Re: renaming tape device files
If you execute ioscan -fnCtape on your server, you will notice for your drive you will have instance number 1 (under the I column). This means that when the system next creates system files (insf -e for example) it will recreate the 1m* files. You may also risk overwriting the 0m* files if new tape drives are subsequently added.
To make sure everything remains okay you need to change your tape drive (assuming it is the only one you have and is currently instance 1) to be instance 0.
Create a file /tmp/tapemove to contain
16/5.0.0 tape 0
(substitute the hardware path with the path of your tape drive)
then run ioinit -f /tmp/tapemove -r
(this will reboot the server so make sure you can).
After reboot you can empty /dev/rmt and run ioinit to create all the files correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2005 10:28 PM
07-26-2005 10:28 PM
Re: renaming tape device files
you can do the following steps.
1. make sure all the renamed files and created files are having the same major number and minor number..
2. how did u created the device files ? using mknod....if it is not u can create using mknod also but you have to do it manually for all devices such as 1mn,1mnb,BEST...etc....
hope this helps you...
regds
Venkatesan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2005 10:52 PM
07-26-2005 10:52 PM
Re: renaming tape device files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2005 10:53 PM
07-26-2005 10:53 PM