Operating System - HP-UX
1833655 Members
3940 Online
110062 Solutions
New Discussion

DAT Drive on Different path.

 
Sp4admin
Trusted Contributor

DAT Drive on Different path.

Hi Folks,

I notice that my DAT drive is on device /dev/rmt/17m. On all my 50 other servers the default path is /dev/rmt/0m. My question is can change the path from /dev/rmt/17m to /dev/rmt/0m. I would like to stay consistent. And what are the commands to achive this.

Itanium rp7620
11.23

Thanks in advance,
sp,
5 REPLIES 5
siva0123
Trusted Contributor

Re: DAT Drive on Different path.

Hi ,

Please read the following link .

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1024354&admit=-682735245+1163616974668+28353475.

Seems that you can simply rename the device file

Thanks,
Siva
siva0123
Trusted Contributor

Re: DAT Drive on Different path.

Sp,

This thread has a better idea and step by step procedure.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=943125

Thanks,
Siva
Pete Randall
Outstanding Contributor

Re: DAT Drive on Different path.

This has been asked so often that I finally saved my standard response:

First, let me echo Bill Hassell in saying you can simply rename the existing devic
e 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 undesir
ed 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 s
ystem. Major and minor numbers should match between corresponding entries (205 0x0
61000 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 wit
h the correct tape drive:

ioscan -kfnCtape



I was using 12m in the example but you can use anything you want.



Pete

Pete
Sp4admin
Trusted Contributor

Re: DAT Drive on Different path.


Thanks, I think I can figure it out with this information you guy;s provide.

Thank you,
Sp
Sp4admin
Trusted Contributor

Re: DAT Drive on Different path.

Thanks for the help!