Operating System - HP-UX
1835014 Members
2406 Online
110073 Solutions
New Discussion

Tape device changed from /dev/rmt/0m to /dev/rmt/2m

 
SOLVED
Go to solution
Hans_Ove
New Member

Tape device changed from /dev/rmt/0m to /dev/rmt/2m

Hi, I have change from a hp StorageWorks DAT24 og a DAT40. The pci SCSI interface card is also changed to a "Rmkt PCI Ultra2 Low volt (A4999AR)".

After this the device named changed.

How can I get the new tape drive to be /dev/rmt/0m?

Any solutions?

Best regards
Hans Ove
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: Tape device changed from /dev/rmt/0m to /dev/rmt/2m

Hi:

The easiest way around this problem is to create a symbolic link for the device files in question.

Otherwise, the Technical Knowledge Base (document #KBRC00010752 for example) describes how to reassign the instance number you want. A reboot is required, however.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: Tape device changed from /dev/rmt/0m to /dev/rmt/2m

Hans,

Here is my step by step procedure for dealing with this:

===============================================

First, let me echo Bill Hassell in saying you can simply rename the existing dev
ice 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 undes
ired name to the preferred name.

Third, if you really want to re-create the device names properly, here is a guid
e:

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.

===============================================


Pete

Pete
Hans_Ove
New Member

Re: Tape device changed from /dev/rmt/0m to /dev/rmt/2m

Hi, thanks for the feedbacks :-)

I got a error on the mksf command:

/dev/rmt # ll |more
total 0
crw-rw-rw- 2 bin bin 205 0x053000 Mar 9 13:50 2m
crw-rw-rw- 2 bin bin 205 0x053080 Mar 8 17:42 2mb
crw-rw-rw- 2 bin bin 205 0x053040 Mar 8 17:42 2mn
crw-rw-rw- 2 bin bin 205 0x0530c0 Mar 8 17:42 2mnb


/ # ioscan -kfnCtape
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
tape 2 10/1/1/0.3.0 stape CLAIMED DEVICE HP C5683A
/dev/rmt/2m /dev/rmt/c5t3d0BESTn
/dev/rmt/2mb /dev/rmt/c5t3d0BESTnb
/dev/rmt/2mn /dev/rmt/c5t3d0DDS
/dev/rmt/2mnb /dev/rmt/c5t3d0DDSb
/dev/rmt/c5t3d0BEST /dev/rmt/c5t3d0DDSn
/dev/rmt/c5t3d0BESTb /dev/rmt/c5t3d0DDSnb


/ # /sbin/mksf -d stape -I 12 -a -b BEST rmt/12m
mksf: Couldn't find driver matching arguments


-Hans Ove
Pete Randall
Outstanding Contributor

Re: Tape device changed from /dev/rmt/0m to /dev/rmt/2m

Your instance number would appear to be 2, not 12.


Pete

Pete
Senthil Kumar .A_1
Honored Contributor
Solution

Re: Tape device changed from /dev/rmt/0m to /dev/rmt/2m

Hi Hans,

By removing the device file with rnsf and using mksf to create, you would have effectvely only renamed it. My suggestion would be to just rename it.

ex:

mv /dev/rmt/2m /dev/rmt/0m

do the same to the rest of the device files.

The other method would be to use a infile and rearrange the instance number with a reboot, which I think is not crucial as far as TAPE drives are concerned to follow. Easier method is just renaming ot linking.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Hans_Ove
New Member

Re: Tape device changed from /dev/rmt/0m to /dev/rmt/2m

- - - Problem solved - - -

Thanks a lot to all of you!
I simply moved the 2m files to 0m.


Best regards
Hans Ove
Hans_Ove
New Member

Re: Tape device changed from /dev/rmt/0m to /dev/rmt/2m

The solution:

Logged in as root, give the commands:

mv /dev/rmt/2m /dev/rmt/0m
mv /dev/rmt/2mb /dev/rmt/0mb
mv /dev/rmt/2mn /dev/rmt/0mn
mv /dev/rmt/2mnb /dev/rmt/0mnb

No reboot was needed for my system.
HP B2600 running HPUX-11.11


Thanks again!
Hans Ove
Kongsberg, Norway