1836801 Members
2600 Online
110110 Solutions
New Discussion

Re: Verify make recovery

 
SOLVED
Go to solution
Macho_2
Frequent Advisor

Verify make recovery

How to verify make recovery tape
13 REPLIES 13
Naveej.K.A
Honored Contributor

Re: Verify make recovery

Hi,

Insert the Ignite tape

#mt -t /dev/rmt/0mn fsf 1

# tar -tvf /dev/rmt/0m filename > /tmp/a.out

Will list the contents into a.out file.

You can also check the log file to verify that the backup was complete

/var/opt/ignite/logs/

you can also use the copy_boot_tape to creat another tape and if its successful, it means that your backup is fine.

REgards,
Naveej
practice makes a man perfect!!!
Joseph Loo
Honored Contributor

Re: Verify make recovery

hi,

check /var/opt/ignite/logs/makrec.log1 and scroll to the end of the log to verify if the last make recovery was completed or "Ended Unsuccessfully".

however, u should really be using make_tape_recovery.

regards.
what you do not see does not mean you should not believe
renarios
Trusted Contributor

Re: Verify make recovery

Try to automate above by:

if (( $(tail -1 ${LOGFILE} |egrep -c 'successfully') != 1 ))
then

# Send an email
/usr/bin/mailx -m -s "${SUBJECT}" < $(ux2dos ${LOGFILE} | uuencode $(basename ${LOGFILE}))
Hi,

< Your error message >

This email message was created automatically by UNIX

EOF

fi

This will send you an email of something went wrong

Cheers,

Renarios
Nothing is more successfull as failure
Macho_2
Frequent Advisor

Re: Verify make recovery

Hi ;
From syslog I can find the successfull message but how to verify the content of the tape ?

Can tar -tvf view the content of the make recovery tape ?
Naveej.K.A
Honored Contributor

Re: Verify make recovery

Yes,

Before that you have to point the tape ahead of the LIF/BOOT area.

#mt -t /dev/rmt/0mn fsf 1
skips the header

# tar -tvf

Regards,
Naveej
practice makes a man perfect!!!
Joseph Loo
Honored Contributor

Re: Verify make recovery

hi,

try this to verify:

# mt -t /dev/rmt/0mn rew
# mt -t /dev/rmt/0mn fsf 1
# tar tvf /dev/rmt/0mn


regards.
what you do not see does not mean you should not believe
Vipulinux
Respected Contributor

Re: Verify make recovery

Hi
To verify a recovery tape you must first ensure that you have craeted the recovery tape with -C option
ie. make_recovery -C

If you have used this you can use
check_recovery

Hope this helps
Regards
Macho_2
Frequent Advisor

Re: Verify make recovery

After I run the make recovery,it was successful and the log files look fine but when I do the tar -tvf /dev/rmt/0mb,I received the following error :-
$mt -t /dev/rmt/0m rew
$mt -t /dev/rmt/0m fsf 1
$tar -tvf /dev/rmt/0mb
Tar: blocksize = 4
directory checksum error

$ mt -t /dev/rmt/0m status
Drive: HP C1537A
Format: DDS-1 format
Status: [41111300] BOT online compression immediate-report-mode
File: 0
Block: 0
Robert-Jan Goossens
Honored Contributor
Solution

Re: Verify make recovery

try to use the no rewind device file.

# mt -t /dev/rmt/0mn rew
# mt -t /dev/rmt/0mn fsf 1
# tar tvf /dev/rmt/0mn

Robert-Jan
Thayanidhi
Honored Contributor

Re: Verify make recovery

Hi,

I noticed you are using /dev/rmt/0m
which is rewinding device try to use non-rewindoing device /dev/rmt/0mn

# mt -t /dev/rmt/0mn fsf 1
# tar tvf /dev/rmt/0mn

Regds
TT
Attitude (not aptitude) determines altitude.
Joseph Loo
Honored Contributor

Re: Verify make recovery

hi,

hmm, i think u did not follow the commands i gave exactly and forgot 0mn as the device file.

regards.
what you do not see does not mean you should not believe
Naveej.K.A
Honored Contributor

Re: Verify make recovery

Hi,

Try /dev/rmt/0mn instead of /dev/rmt/0mb after rewinding and forwarding space count.

tar tvf /dev/rmt/0mn

Regards,
Naveej
practice makes a man perfect!!!
Macho_2
Frequent Advisor

Re: Verify make recovery

Thank You for all your help.I managed to view the tape content.