Operating System - HP-UX
1824971 Members
3219 Online
109678 Solutions
New Discussion юеВ

make_tape_recovery question

 
Philip J. Priest_1
Frequent Advisor

make_tape_recovery question

When doing a make_tape_recovery should that create all the map files for every vg i have on the system?

because its not saving all of them.

im worried in case of a failure that it wouldnt bring those vg's back in.

thanks!
Phil
11 REPLIES 11
Patrick Wallek
Honored Contributor

Re: make_tape_recovery question

When creating the make_tape_recovery it does not necessarily create the map files for you. It does have all of the current configuration information for the VGs though. If you have to do a restore, and IF your disk device files stay the same, then everything should come back the same as when the tape was made.

If the disk device files change for some reason, then you may to reimport some of the VGs yourself.

I would manually create map files for the VGs and put them somewhere in VG00 so that they get backed up when the make_tape_recovery is run.

Sundar_7
Honored Contributor

Re: make_tape_recovery question

Hi Phil,

As far as I know make_recovery creates map files under /etc/lvmconf/.mapfile.

So you dont have to manually create mapfile

-- Sundar.

Learn What to do ,How to do and more importantly When to do ?
Philip J. Priest_1
Frequent Advisor

Re: make_tape_recovery question

Patrick are you saying that even if it doesnt create those map files when i do a recovery with that tape all vgs will be back like before?
Michael Tully
Honored Contributor

Re: make_tape_recovery question

If you recover to the same system, the LVM is in tact. As long as it is, there is no actual importing, the machine recognises all components as long as nothing has changed.
Anyone for a Mutiny ?
Alex Tsekhansky
New Member

Re: make_tape_recovery question

Note also that make_tape_recovery will not backup/recover raw volumes for you (e.g. of the sort that may be used to house Informix or Oracle data).
Philip J. Priest_1
Frequent Advisor

Re: make_tape_recovery question

Well, alex thats my situation. I have a bunch of volume groups with raw lv's. thats really my question should make_tape_recovery backup the map files for those raw devices?
Steven E. Protter
Exalted Contributor

Re: make_tape_recovery question

make_tape_recovery will fail if all disks and volume groups are not in good shape.

In the long run, the only way to be sure make_tape_recovery will work is to boot a system off that tape and use it. A visit should be arranged to an HP performance center to test this out if you don't have a system to test with.

SEP
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
Bill Hassell
Honored Contributor

Re: make_tape_recovery question

make_tape_recovery will run /usr/sbin/vgexport -p -m /etc/lvmconf/vg01.mapfile /dev/WHATEVER for all your current volume groups. If you restore vg00, you'll have to manually handle importing the other volume groups and mirroring if used. The mapfiles will make this fairly easy.


Bill Hassell, sysadmin
Philip J. Priest_1
Frequent Advisor

Re: make_tape_recovery question

Bill, in my case im not seeing vgexport doing all my other volume groups that do not have a filesystem. The ones that are raw are not being saved as mapfiles. Is there a reason why?
Bill Hassell
Honored Contributor

Re: make_tape_recovery question

I have the same scenario: Several VG's that have dozens of Informix raw volumes. make_tape_recovery will create the mapfiles for all the activated volume groups. Make sure you're using a recent version of MTR (something like B.4.4xxx or later) and make sure you specify the right options. Don't use -A as it does not create a complete copy of vg00. Use something like this:

MTR -I -v -x inc_entire=vg00 -a /dev/rmt/WHATEVERmn

and for documentation, you might add -t and -d options.


Bill Hassell, sysadmin
Philip J. Priest_1
Frequent Advisor

Re: make_tape_recovery question

Bill i am using the same syntax as you are. and still im not getting the map files for the vg's with raw devices.

Using: Ignite B.5.3.35