1752687 Members
5609 Online
108789 Solutions
New Discussion юеВ

Ignite backup failed

 
susee
Advisor

Ignite backup failed

Hi all

i am facing some problems when i take ignite backup on my hp server
when i execute my script
# /usr/local/bin/weekly_ignite_bu > /dev/null 2>&1
----------------------------------------
and weekly_ignite_bu script contains
cat /usr/local/bin/weekly_ignite_bu |more
# Intent is to run mksysb every week via crontab.

DIR=/root/etc/
HOSTN=`hostname | cut -c1-13`

rm $DIR/bkup.log 2>/dev/null
touch $DIR/bkup.log


echo "====================================" >> $DIR/bkup.log
echo " MAKE_TAPE_RECOVERY for $HOSTN " >> $DIR/bkup.log
echo " "; date >> $DIR/bkup.log
echo "====================================" >> $DIR/bkup.log

/opt/ignite/bin/make_tape_recovery -v -I -x inc_entire=vg00 -a /dev/rmt/0mn >> $DIR/bkup.log
if [ $? -eq 0 ]
then
mt -f /dev/rmt/0m rew >> $DIR/bkup.log
tar -xvpf /dev/rmt/0m etc/motd >> $DIR/bkup.log
mt -f /dev/rmt/0m offl >> $DIR/bkup.log
echo "MAKE_TAPE_RECOVERY has completed successfully on $HOSTN" | mailx -s "Ignite/MKSYSB complete $HOSTN" root
fi

exit 0
---------------------------------------
and finally it ends with a error message completed unsucessfully after checking the ignite ux filesets , i have attached the log for reference ,

pls suggest me to trace me where does the problem lies

Regards
susee


6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: Ignite backup failed

Hi Susee:

You should also redirect STDERR to your log.

# /opt/ignite ... -a /dev/rmt/0mn > ${DIR}/bkup.log 2>&1

Regards!

...JRF...
susee
Advisor

Re: Ignite backup failed

Hi james

Thanks for that info

i found there was 2 lines extra after redirecting them

-----------------------------------------
* 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.
--------------------------------------------

and after that when i checked the tape
using ioscan i can see the tape in that list ( i have attached the out put ) ,

Regards
Susee
Patrick Wallek
Honored Contributor

Re: Ignite backup failed

Can you use tar or some other utility to write to the tape? Is there a tape in the drive? Is the tape write protected?

What does:

# mt -f /dev/rmt/0mn stat

show?
Devender Khatana
Honored Contributor

Re: Ignite backup failed

Hi,

The error reported clearly indicates it to be a tape drive error. This can be due to different device file or the faulty hardware. You can check tape with other commands like dd,tar,cpio,fbackup and can be sure that hardware is all right.

HTH,
Devender
Impossible itself mentions "I m possible"

Re: Ignite backup failed

Hi Susee,

just an idea, something I experienced recently. Tape drive was ok, used a new tape but had an error again and again like you with ignite!
I removed the tape devices on the machine:
--> ioscan -fnCtape
--> rmsf /dev/rmt/0*
--> rmsf /dev/rmt/c1*
Install the special files again:
--> insf -e

To my sursprise, it works from now on!
Don't know the reason but I'm glad!

regards
Juergen
Raj D.
Honored Contributor

Re: Ignite backup failed

Hi Susee ,


What happens if you re-run the backup.


You can do the following:

1.Make sure tape is on the drive.
2. Check with # mt -f /dev/rmt/0mn status
It should show ONLINE.

3. Just re-run the backup.
# /usr/local/bin/weekly_ignite_bu

4. Monitor the log file.
# tail -f /var/opt/ignite/recovery/latest/recovery.log


hth ,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "