1833796 Members
2412 Online
110063 Solutions
New Discussion

Device Files

 
SOLVED
Go to solution
Danny Baldono
Frequent Advisor

Device Files

I am migrating from N-Class (11i) to RP7420 (11i). My backup scripts on my N-Class using
specific device files (/dev/rmt/9m). On my new
RP7420 for sure will create new device files
(not /dev/rmt/9m). How can I run my scripts
on my new machine. I don't know about scripting.
Don't fix a good machine or you will end up fixing it.
6 REPLIES 6
Mahesh Kumar Malik
Honored Contributor

Re: Device Files

Hi Danny

From ioscan find out device file for tape drive in rp7420 and then edit the script to reflect new device file.

Regards
Mahesh
Sudeesh
Respected Contributor

Re: Device Files

Hmm .. it will be quite easy if you prefer to vi and modify your script to handle the newe device files. Though I understand from your post that you dont want to disturb the existing scripts.

Other option you can use is to create a link to new device file from /dev/rmt/9m.

ln -s /dev/rmt/0m /dev/rmt/9m

Hope this helps

Sudeesh
The most predictable thing in life is its unpredictability
Leif Halvarsson_2
Honored Contributor
Solution

Re: Device Files

Hi,

Or, create a new devicefile with the old name, if you know the new devicefile it is easy.

ll /dev/rmt/0m
crw-rw-rw- 2 bin bin 205 0x051000 Mar 18 15:51 /dev/rmt/0m

mknod /dev/rmt/9m c 205 0x051000

ll /dev/rmt/9m

crw-rw-rw- 2 bin bin 205 0x051000 Mar 18 15:51 /dev/rmt/9m
Danny Baldono
Frequent Advisor

Re: Device Files

I created two additional device files 9m and c10t13d1BEST (the actual device file on my backup script). I've notice that there are three 0x30000 (see attached) entries.
Those are 0m, 9m, c10t13d1BEST. I tried to
read and write on these three using these device file and all are OK. Since these three have identical 0x30000 is this normal,
or will create problem?
Don't fix a good machine or you will end up fixing it.
Leif Halvarsson_2
Honored Contributor

Re: Device Files

Hi,
Yes, it is normal to have more then one devicefile pointing at the same adress. It is not any problem if you don't thy to use two files concurrently.
Cheryl Griffin
Honored Contributor

Re: Device Files

Danny,
The difference between the m and the BEST devices are explained on the mt(7) man page
http://docs.hp.com/en/B2355-90697/mt.7.html

If the hardware can handle has the ability, and a BEST device were used, it could change the compression (density, format).

If the hardware can't handle it, using 9m would be the same as using the BEST device.
"Downtime is a Crime."