Operating System - HP-UX
1833864 Members
2223 Online
110063 Solutions
New Discussion

System recovery and lvmtab

 
SOLVED
Go to solution
Joanne Keegan
Regular Advisor

System recovery and lvmtab

Hi Everyone,

We had to recover a system with make_recovery. Everything came back okay except a complete /etc/lvmtab. It contained the information for the local disks, but none for those connected to an EMC symmetrix. We had to rebuild this.

Is there any reason why this happened? I thought that the purpose of a make_recovery was to provide a copy of vg00, yet we only got a partial lvmtab back.

Regards,

Jo
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: System recovery and lvmtab


Are you using the soon to be obsolete make_recovery or the newer make_tape_recovery?

What options did you use?

To recreate lvmtab use "vgscan". Do a man on it, as you need an option "-a" I believe??

live free or die
harry
Live Free or Die
Joanne Keegan
Regular Advisor

Re: System recovery and lvmtab

Hi Harry,

We're using the obselete make_recovery (we are testing the new version). We use the options -CA.

Jo
Michael Tully
Honored Contributor

Re: System recovery and lvmtab

Hi,

Check to see what is on your tape (including the /etc/lvmtab) and assuming you tape drive is /dev/rmt/0m

# mt -t /dev/rmt/0m rew
# mt -t /dev/rmt/0mn fsf1
# tar tvf /dev/rmt/0m >/tmp/tape.out

Michael
Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: System recovery and lvmtab

Hi (again)

This is what I use to create ignite tapes. The one big advantage is that it is fully interactive so that you have total control during a recovery.

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

(note the use of the no-rewind device.)

Cheers
Michael
Anyone for a Mutiny ?
James R. Ferguson
Acclaimed Contributor
Solution

Re: System recovery and lvmtab

Hi Joanne:

I would expect this behavior. Ignite tape recovery (the old 'make_recovery' aswell as the newer 'make_tape_recovery') is designed to recover vg00 and 'vgimport' other volume groups. If the 'vgimport' fails, usually for reason of pv_paths that are different from those seen when the recovery tape was made, then the 'etc/lvmtab' is *not* updated with the volume groups reresented by the unmatched pv_paths.

Regards!

...JRF...
Carlos Fernandez Riera
Honored Contributor

Re: System recovery and lvmtab

I have rebuild a system ( MAX_PE_PER_PV question) using make_recovery -A -d /dev....

As it was exactly the same hardware ( the same box) the recovery included a vgimport of all defined vgs, at the end of the recovery :

post_config_cmd="
/usr/sbin/vgimport -v -m /etc/lvmconf/vg......

"

The -A option will include ALL vgs.

HTH
unsupported