Operating System - HP-UX
1826457 Members
3536 Online
109692 Solutions
New Discussion

make defalt for tape drive /dev/rmt/3mn

 
SOLVED
Go to solution
Ratzie
Super Advisor

make defalt for tape drive /dev/rmt/3mn

By default when I run make_tape_recovery it tried to load the /dev/rmt/0mn then errors out.

Since I only have one tape drive that will not change, what file do I need to modify that will make any tape access always point to /dev/rmt/3mn
4 REPLIES 4
Jim Mallett
Honored Contributor
Solution

Re: make defalt for tape drive /dev/rmt/3mn

If you want this to happen automatically you can try creating a file:
/var/opt/ignite/recovery/defaults
It would need the following entry:
RECOVERY_LOCATION=hostname:/dev/rmt/3mn

I have never tried this so I can't vouch for it but it is mentioned in the documentation.

If you are running the make_tape_recovery from a command line or script you could simply alter it to include the drive:
make_tape_recovery -a /dev/rmt/3mn

Lastly, if you wanted to change your device from 3mn to 0mn you could follow Pete's advice in this reply:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=406386

Hope this helps....
Jim
Hindsight is 20/20
steven Burgess_2
Honored Contributor

Re: make defalt for tape drive /dev/rmt/3mn

Hi

Just use the switch

-a /dev/rmt/3mn

In your make_tape_recovery command

man make_tape_recovery

for more info

HTH

Steve
take your time and think things through
Steven E. Protter
Exalted Contributor

Re: make defalt for tape drive /dev/rmt/3mn

If you Don't follow Jim Mallet's advice to follow Pete's advice its likely some day you'll find your tape device driver shifts on you without warning. Scripts will fail and you will be wondering what changed.

By far the best advice above is to fix the issue and make the tape drive into /dev/rmt/0m .Its not the easy answer, its the right answer.

I've had the same issue and found life was much easier fixing things now. A subsequent Veritas Netbackup installation/upgrade proved the wisdom of Jim's advice to me.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: make defalt for tape drive /dev/rmt/3mn

Since your tape is connected to 3m, at some time in the past, there were other tape drives attached, perhaps at different SCSI addresses. Since these tape devices do not exist, you can try deleting all the tape device files. Use rmsf -H to remove the hardware definitions for each hardware path. Once all the paths have been removed, you may need to manually remove the device files in /dev/rmt...it should be empty.

Now recreate the device files with:

insf -e

and you should have your tape drive at 0m. Note that assuming defaults for device files is not the best practice for sysadmins. For a backup process, it is never wise to type the command. Instead, you write a script, add tests in the script to see if the tape drive is ready not not write-protected and then add all the options. make_tape_recovery without any options will *NOT* backup your system!! According to the man pages, it will save a set of 'essential' files, predefined by make_tape_recovery. To make a recovery tape with everything in vg00 (the boot disk volume), you must use options. Recommended options are:

-v
-I
-a /dev/rmt/whatever
-x inc_entire=vg00

-v shows the progress of the backup
-I goes direct to interactive restore when the tape boots
-a (always use even if it is the default tape)
-x inc_entire=vg00 to save all of VG00


Bill Hassell, sysadmin