1753807 Members
8186 Online
108805 Solutions
New Discussion юеВ

Device numbering

 
Larry Basford
Regular Advisor

Device numbering

How can I set the tape drive back to 0 for my 4mm and 1 for my DLT?
I am moving a Lawson system from a D380 to a K370. ( yea I know ) I booted the D's recovery tape to setup the K.
Now my DLT is /dev/rmt/2m and 4mm is /dev/rmt/3m
Also predictive setup /dev/cul2p7
not /dev/cul0p7 like on my other K's
Desaster recovery? Right !
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: Device numbering

Hi Larry,

It's really very easy.
cd /dev/rmt
Do an ls -l (I would probably do an ls -l | lp to have on hand).
Now suppose we want to change 3m to 1m
the entries should look something like this:
crw-rw-rw 2 bin bin 205 0x051000 1m
crw-rw-rw 2 bin bin 205 0x033000 3m

the 0x051000 & 0x033000 (minor device numbers are what we are going to swap)

1) rm 1m 3m
2) mknod 1m c 205 0x033000
mknod 3m c 205 0x051000
3) chmod 666 1m 3m
4) chown bin:bin 1m 3m

You should also do the same operations to the 1mn, 1mnb device nodes as well to avoid future confusion.

Clay


If it ain't broke, I can fix that.
Carlos Fernandez Riera
Honored Contributor

Re: Device numbering

For tapes:

rmsf /dev/rmt/*

Now install again in your prefered order:

insf -H ...... # 4mm
insf -H .......# DLT

Even if this dont work, see that 0m and 0mn are hard links to cxtxdxBEST and cxtxdxBESTn

rm 0m 0mn
ln cytydy 0m ....


unsupported