1851718 Members
2064 Online
104062 Solutions
New Discussion

make_recovery

 
SOLVED
Go to solution
Richard Woolley
Frequent Advisor

make_recovery

Im about to put latest patches on my K class 10.20 machines, however in case it goes wrong i have cron'd a make_recovery.
1) will the following cron work?
00 20 * * 3 /opt/ignite/bin/make_recovery -A -v -C 2> /{dir}/recover.log
2) how can i check it worked and would be safe to come back on and use?

cheers,

mark.
4 REPLIES 4
Sanjay_6
Honored Contributor

Re: make_recovery

Hi Mark,

why don't you direct the standard output to the same file where you are directing the standard error,

00 20 * * 3 /opt/ignite/bin/make_recovery -A -v -C > /path_to_recover.log 2>/path_to_recover.log

hope this helps.

Regds
Eileen Millen
Trusted Contributor
Solution

Re: make_recovery

You can check the tape by rewinding it and then forward skipping one file set past the LIF area and then running a pax command that will give an index

mt -t /dev/rmt/0m rew
mt -t /dev/rmt/0mn fsf
pax -vf /dev/rmt/0mn

You can also check make_recovery tapes by doing the 1st 2 mt commands
and then using tar to list or recover files
tar -tvf /dev/rmt/0mn
or
tar -xvf /dev/rmt/0mn path_filename

Eileen


Sanjay_6
Honored Contributor

Re: make_recovery

Hi Mark,

Here is a way to verify a good make_recovery tape,

http://us-support2.external.hp.com/cki/bin/doc.pl/sid=55f163c108d1cac28b/screen=ckiDisplayDocument?docId=200000055269953

Hope this helps.

Regds
Uday_S_Ankolekar
Honored Contributor

Re: make_recovery

Hi,

Instead why don't you create script and execute the same with cron job and then mail the log to you at the end of script

Check this one:

DATE=`/usr/bin/date '+%m%d%y'`

HOSTNAME=`/usr/bin/hostname`

LOG_DIR=/var/adm/logs/sysrecover

LOG_FILE=${LOG_DIR}/${HOSTNAME}.${DATE}

LVMCONF_DIR=/etc/lvmconf

TAPE=/dev/rmt/0m

NTAPE=${TAPE}n

/usr/bin/mt -f ${TAPE} rewind

/usr/bin/date > ${LOG_FILE}
/usr/bin/echo "" >> ${LOG_FILE}

/opt/ignite/bin/make_recovery -A -C -v -d ${NTAPE} 1>> ${LOG_FILE} 2>> ${LOG_FILE}
/usr/bin/mt -f ${TAPE} offl

/usr/bin/echo "" >> ${LOG_FILE}
/usr/bin/date >>${LOG_FILE${LOG_FILE}
mailx -s "$(uname -n) System Recovery Tape Status" yourname@yordomain<

Good Luck..