Operating System - HP-UX
1849376 Members
6855 Online
104044 Solutions
New Discussion

Re: Ignite backup failure !!!!

 
SOLVED
Go to solution
kpatel786
Frequent Advisor

Ignite backup failure !!!!

We have standard script maintained for taking ignite backup. The same is failing after we replaced a tape drive which was 0mn. The same is now 2 mn.

(hqj) [SU] # ioscan -funC tape
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
tape 2 8/16/5.3.0 stape CLAIMED DEVICE HP C1533A
/dev/rmt/2m /dev/rmt/2mnb /dev/rmt/c3t3d0BESTn /dev/rmt/c3t3d0DDSb
/dev/rmt/2mb /dev/rmt/c3t3d0BEST /dev/rmt/c3t3d0BESTnb /dev/rmt/c3t3d0DDSn
/dev/rmt/2mn /dev/rmt/c3t3d0BESTb /dev/rmt/c3t3d0DDS /dev/rmt/c3t3d0DDSnb
tape 1 8/20/5/1.4.0 stape CLAIMED DEVICE HP 7980S
/dev/rmt/1m /dev/rmt/1mn /dev/rmt/c5t4d0BEST /dev/rmt/c5t4d0BESTn
/dev/rmt/1mb /dev/rmt/1mnb /dev/rmt/c5t4d0BESTb /dev/rmt/c5t4d0BESTnb


I have checked the entire script I do not see any parameter that take the tape drive no.

The error is as below:
System Recovery Archive

* Checking Versions of Ignite-UX filesets
ERROR: Failed to open tape device /dev/rmt/0mn:No such device or address
(errno = 6).
ERROR: Check tape device failed.


======= 12/28/09 17:00:25 GMT make_tape_recovery completed unsuccessfully

recovery.log: END
525: if echo "${TAPE_IGNITE}" | grep -e '[0-9]mn$' ; then
593: if echo "${TAPE_IGNITE}" | grep -e '[0-9]mn$' ; then
(hqj) [SU] #



System Recovery Archive

* Checking Versions of Ignite-UX filesets
ERROR: Failed to open tape device /dev/rmt/0mn:

I have also attached the script for you reference. Kindly assist in pointing the problem, Thanking u all in advance.
5 REPLIES 5
Sunny123_1
Esteemed Contributor

Re: Ignite backup failure !!!!

hi


Check the hardware path of the tape its not the dev/rmt/0mn it is /dev/rmt/2mn

Regards
Sunny
Pete Randall
Outstanding Contributor
Solution

Re: Ignite backup failure !!!!

You were probably allowing the make_tape_recovery command to default to /dev/rmt/0mn. You will need to change the make_tape_recovery command in your script to specify "-a /dev/rmt/2mn".

You could also change the device name from 2mn to 0mn just in case you have any other scripts that are going to break:


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
Johnson Punniyalingam
Honored Contributor

Re: Ignite backup failure !!!!

You can if the tape has been loaded using the mt command

mt -f /dev/rmt/2mn status

if the tapes loaded it would show ONLINE

than you can try firing the ignite backup

make_tape_recovery -AvI -x inc_entire=vg00 -a /dev/rmt/2mn

if above all works fine, you need check your script
Problems are common to all, but attitude makes the difference
kpatel786
Frequent Advisor

Re: Ignite backup failure !!!!

Thanks Pete,

Currently I have created the link as suggested by you. I have taken a test backup and the same is working fine.
kpatel786
Frequent Advisor

Re: Ignite backup failure !!!!

Thanks for all for you response.