1833793 Members
2420 Online
110063 Solutions
New Discussion

make_recovery

 
Dan Walker
Occasional Advisor

make_recovery

Is their a option in make_recovery for a verify, I have checked the man pages but no success. currently running
make_recovery -A -v -d /dev/rmt/3mn
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: make_recovery

#!/usr/bin/sh
/opt/ignite/bin/make_tape_recovery -Av -x inc_entire=vg00


This is a more current form.

make_recovery is obsolete and will soon not be supported.

NAME
make_tape_recovery - tape based system recovery archive creation

SYNOPSIS
/opt/ignite/bin/make_tape_recovery [ -s Ignite-UX_server ] [-a
tape_drive] [-A] [-b] [-B boot_destination_file] [-d description]
[-f content_file] [-i|-ib] [-I] [-l lanic_id] [-n num_cfg_dirs]
[-p] [-P s|w|e] [-r] [-t tape_title_string] [-v] [-x content-
options] [XToolkit_Options]



Steve
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
Patrick Wallek
Honored Contributor

Re: make_recovery

Nope, there's no option to verify the tape.

The only real way to verify that the tape is good is to:

1) Boot from the tape, but do not install the OS.

2) Do:

# mt -f /dev/rmt/3mn rew
# mt -f /dev/rmt/3mn fsf 1
# tar -tvf /dev/rmt/3mn

This will verify the contents of the tar archive on the tape.

Also, since you are still using make_recovery, I would recommend that you download and install the latest version of Ignite/UX and utilize the newer, and more robust, make_tape_recovery command. The following make_tape_recovery command will do the same thing as your make_recovery command:

# /opt/ignite/bin/make_tape_recovery -a /dev/rmt/3mn -I -v -x inc_entire=vg00

You can download the latest ignite from:

http://software.hp.com/products/IUX/download.html
Sridhar Bhaskarla
Honored Contributor

Re: make_recovery

Hi,

You can redirect the output to a file so that you can view it later. This is what I normally do.

nohup /opt/ignite/bin/make_recovery -A -v -d /dev/rmt/3mn > /tmp/ignite.out 2>&1 &

Once it is done, look at ignite.out and you should see successfully completed.

If you didn't do it, then go to /var/opt/ignite/logs and look at makrec.log1 file. It should say "Completed". Unsuccessful attempts would be logged as "Ended Unsuccessfully".

It's time for you to go to a later version of ignite that will provide you make_tape_recovery which is much better than make_recovery.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Brian M Rawlings
Honored Contributor

Re: make_recovery

Dan: I don't believe that there is a verify option, but there are some steps you could take to verify that the tape is readable (no hard errors).

A make_recovery tape is in two seperate formats. The first is basically a binary dump, readable via the 'dd' command (you can make the output file /dev/null, if you're just checking the tape for errors).

The second part is in standard 'tar' format, and you can read it (and recover files from it) using 'tar', after positioning the tape to the 2nd record with the 'mt' command.

Other options would include the 'copy_boot_tape' command, which (with the right options selected) will read the whole recovery tape into a disk file (thereby checking the tape's readability).

There is an excellent explanation of several options for doing this at:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xec7b50011d20d6118ff40090279cd0f9,00.html

I found this doing a forum search with the keywords:

make_recovery dd mt tar

Best Regards, --bmr
We must indeed all hang together, or, most assuredly, we shall all hang separately. (Benjamin Franklin)
Wilfred Chau_1
Respected Contributor

Re: make_recovery

Also check /var/opt/ignite/logs/makrec.log1 and /var/opt/ignite/logs/makrec.log2 files for error messages.

Other than that, you will have to use tar -tvf /dev/rmt/3mn to verify the content of the tape.
pap
Respected Contributor

Re: make_recovery

Hi ,
You can execute the command check_recovery to see when the latest tape created.
Otherwise you can check the log file /var/opt/ignite/latest/recovery.log.
Make sure that the last line of this log file says tape created successfully.....

Thanks,

-pap
"Winners don't do different things , they do things differently"
Patrick Wallek
Honored Contributor

Re: make_recovery

Please be aware that the check_recovery command will ONLY WORK if you use the '-C' option to make_recovery, which is not recommended since it adds a significant amount of time to your make_recovery process. I also think that check_recovery does NOT display the date of that the last tape was created, it may but I don't think so, it just checks to see if the system has changed between the time the last make_recovery tape was created and now.

Also be aware that make_recovery and check_recovery will be obsoleted at some future date in favor of the newer more robust make_tape_recovery. check_recovery is NOT supported with make_tape_recovery as make_tape_recovery does not have, and probably will never have, the '-C' option or an equivalent to it.