Ignite-UX

Script that writes a script to create LVM mirrors after Ignite-UX recovery

 
espl Information
New Member

Script that writes a script to create LVM mirrors after Ignite-UX recovery

Does anyone have a script that they are willing to share that interrogates the LVM config on a system to generate a script that will recreate the mirrors after an Ignite-UX recovery?
8 REPLIES 8
Paula J Frazer-Campbell
Honored Contributor

Re: Script that writes a script to create LVM mirrors after Ignite-UX recovery

Hi
What version HP-UX are you on as I have three scripts ver 9 , ver 10 and 11.

Paula
If you can spell SysAdmin then you is one - anon
espl Information
New Member

Re: Script that writes a script to create LVM mirrors after Ignite-UX recovery

I am using HP-UX 11.0
Paula J Frazer-Campbell
Honored Contributor

Re: Script that writes a script to create LVM mirrors after Ignite-UX recovery

Hi
This script will interogate the lvm.
I am sure with modification it should do what you require.

Paula
If you can spell SysAdmin then you is one - anon
Paula J Frazer-Campbell
Honored Contributor

Re: Script that writes a script to create LVM mirrors after Ignite-UX recovery

I have just ran the script on my system and it should give you all the info you require to rebuild after a recovery, it is probably worthwhile storing its output in an dir that make_recovery backs up so that after a recovery you can refer to it. You could even cron it to run once a week.

Paula
If you can spell SysAdmin then you is one - anon
Cheryl Griffin
Honored Contributor

Re: Script that writes a script to create LVM mirrors after Ignite-UX recovery

This same question was posted here in the Forums last week and a script was attached. It was based off of the mirroring white paper in /opt/ignite/share/doc. Look for the .pdf file there.

To search forum messages:
Use the search link to the left, enter the keywords ignite and mirror or make_recovery and mirror, and select the forums community.
"Downtime is a Crime."
espl Information
New Member

Re: Script that writes a script to create LVM mirrors after Ignite-UX recovery

Thanks everyone but I was after a script that was not specific to a particular system. One that would run before make_recovery and create a file of commands that would be run after the system recovery to recreate the mirrors. Because lvol config and mirroring can change over time, I wanted to make sure that the "recover the mirrors" script was always accurate. I am attaching something that I just started (and it is by no means finished) so show what I meant.
Andreas Voss
Honored Contributor

Re: Script that writes a script to create LVM mirrors after Ignite-UX recovery

Hi,

i have written a script that does mirroring the vg00. It asks the new disk device for mirroring. See attachment.

Regards
Seth Gustafsson
Occasional Advisor

Re: Script that writes a script to create LVM mirrors after Ignite-UX recovery

I would like to get a copy of this script, could you please email it to me. I can't seem to get it off the site.

Thanks, Seth