Operating System - HP-UX
1826404 Members
4114 Online
109692 Solutions
New Discussion

Changing the name of a tape device.

 
JHL_1
Frequent Advisor

Changing the name of a tape device.

I used to have a tape device /dev/rmt/om. I'd moved it from one target ID to another and it is now /dev/rmt/6m. Why and how the name changed I understand. However, I know that 0m is still available and would like to move it back (scripts are configured for this old device). I've tried removing the special files and recreating them (mksf) but it fails. Any ideas on how to move the device name back from 6m to 0m?
2 REPLIES 2
Craig Rants
Honored Contributor

Re: Changing the name of a tape device.

Here's a thread that should help.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
A. Clay Stephenson
Acclaimed Contributor

Re: Changing the name of a tape device.

Hi John,

This is actually very simple. Just use mknod to create the device node manually.

1) cd /dev/rmt
2) ls -l 6m
Note it's major and minor device numbers
e.g 205 & 0x052000
3) rm 6m
4) mknod 0m c 205 0x052000

You should repeat the steps for all the other 'short' 6m device nodes. Remember, the box only cares about the major and minor device number pairs, the names 0m, c5t2d0BEST, etc. are only for the benfit of us dumb humans.

Back in the good old days of unix, we didn't have insf and all device nodes had to be created manually.

If it ain't broke, I can fix that.