Operating System - HP-UX
1752720 Members
5719 Online
108789 Solutions
New Discussion юеВ

/dev/rmt/0m 1m 2m tape drive woes

 
SOLVED
Go to solution
Chris Fadrowski
Super Advisor

/dev/rmt/0m 1m 2m tape drive woes

my scenerio;

i use a DDS 3 drive between 3 different servers. Sometimes the tape device comes up as /dev/rmt/2m instead of /dev/rmt/0m. this causes me problems because "tar" will always default to 0m even if you tell it 2m. i am also doing my make_recovery's to /dev/rmt/1mn. will this be a problem there?
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: /dev/rmt/0m 1m 2m tape drive woes

Chris,

You can simply rename the device file to be whatever you want.

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


Pete

Pete
James R. Ferguson
Acclaimed Contributor
Solution

Re: /dev/rmt/0m 1m 2m tape drive woes

Hi Chris:

While '/dev/rmt/0m' is the default device for 'tar' you can specify '-f ' to use an alternate device.

Similarly, with 'make_tape_recovery' use the '-a' switch and the appropriate argument, for example:

# make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/2mn

Regards!

...JRF...
OldSchool
Honored Contributor

Re: /dev/rmt/0m 1m 2m tape drive woes

"tar" should go where you tell it! as in "tar -cvf /dev/rmt/2m...."

I've not had issues w/ ignite, and I use 0mn, 1mn, and 2mn routinely, depending upon server.

So why are the drive device files changing? Device phyically disconnected? Reboot? Are you physically moving the drive or cabling between servers?
sachit patil
Regular Advisor

Re: /dev/rmt/0m 1m 2m tape drive woes

hello
pls install drivers for tape drive
#insf -e
or don't change the cable id when u attching that drive to server .
see that installed driver using
#ioscan -fnc tape
It will show the device files for that tape.
regards
Chris Fadrowski
Super Advisor

Re: /dev/rmt/0m 1m 2m tape drive woes

i wasn't throwing it the f option and kept defaulting to 0m

so this won't affect my make_recovery's and i shouldn't really worry what device 0mn 1mn or 2mn shows up right?
James R. Ferguson
Acclaimed Contributor

Re: /dev/rmt/0m 1m 2m tape drive woes

Hi (again) Chris:

You wrote, "so this won't affect my make_recovery's and i shouldn't really worry what device 0mn 1mn or 2mn shows up right?"

That is correct. Use the '-a /dev/rmt/2mn' (or whatever) to specify the proper tape device for your 'make_tape_recovery'.

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: /dev/rmt/0m 1m 2m tape drive woes

Any command that I can think of has an option to specify the device, be it make_tape_recovery or tar or fbackup or whatever, so no you shouldn't have to worry about. Also, as I said, you can simply rename the device files or even re-create them with any name you choose.


Pete

Pete