Operating System - HP-UX
1830581 Members
2915 Online
110015 Solutions
New Discussion

make_recovery -r interactive

 
SOLVED
Go to solution
Stephane Caron
Occasional Advisor

make_recovery -r interactive

Can I force make_recovery -r to occur without interacting with the user (me) ?

I would like to use make_recovery in cron to create a recovery tape on a daily basis.

I use the -p option to generate the arch.include file, then massage the file, and use make_recovery -r to finish the job. I may also add the commands automatically to config.recovery to automate the re-mirror of the OS drives.
3 REPLIES 3
Cheryl Griffin
Honored Contributor
Solution

Re: make_recovery -r interactive

Use a file to feed the make_recovery a "yes" to continue.

# cat > /var/opt/ignite/recovery/yes.file
y
ctrl-d

So your cron entry would read something like:
#min hour monthday month weekday command
10 14 15 * 2 /opt/ignite/bin/make_recovery -r < /var/opt/ignite/recovery/yes.file > /var/opt/ignite/recovery/recovery.out 2> /var/opt/ignite/recovery/recovery.err
"Downtime is a Crime."
Thomas J. Harrold
Trusted Contributor

Re: make_recovery -r interactive

Hi.

Within a script, I was able to simply:

echo "y" | make_recovery -r

I'll attach a script that I wrote (long ago!) to create a make_recovery and preserve mirror information.

Best of luck,

-tjh
I learn something new everyday. (usually because I break something new everyday)
Stephane Caron
Occasional Advisor

Re: make_recovery -r interactive

Replying to my own message:

echo "y" | make_recovery -r

was the first thing I thought of. Our system has quite a few disks, and is running in a ServiceGuard cluster, so the list_expander runs for a very long time. So the system appears to be doing nothing for a very long time (approx. 7 minutes). Giving me the impression that the re-direction of stdin did not work. Although I can use public domain software ("expect") to handle such behavious, I am always reluctant to do so.

But I have decided to become more patient, and, low and behold, it works fine.

It would be nice if make_recovery was a little more verbose about what it is doing...

Thanks all for your replies !!!