1834478 Members
3338 Online
110067 Solutions
New Discussion

Re: LVM CORRUPTION

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

LVM CORRUPTION

I replaced some memory on a K420 running 11.11 during lunch break on a production server. Well when the system came back up, I lost drive 5, root mirror drive. The box kept in a panic reboot loop. So I 'cntl +b' and ran 'hpus -lq'. So everyhing is cool except no mirror. I mirror root drives all the time so I know this pretty well. Question:
When HP replaces the bad drive, will it reboot up clean and then I can re-create the mirror. Or is the box still going to complain about lvm corruption and the missing disk?

TIA
RPM
UNIX IS GOOD
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: LVM CORRUPTION

When your drive is replaced, nothing magic is going to happen. You will need to do a vgcfgrestore, a vgchange -a y, a mkboot, a mkboot -a, and a vgsync.

I do this quite often and never down the machine - if you have hot-plug drives.

The KnowledgeBase has an excellent document = KBAN00000347 that explains the process very well.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: LVM CORRUPTION

Hi Robert:

You will simply need to follow the standard procedure for replacing a mirrored boot disk.

Look at the LVM chapter (#16) in the Software Recovery Handbook found in the Knowledge Tree section of Maintenance and Support at the ITRC:

http://www1.itrc.hp.com/service/iv/docDisplay.do?docId=/DE_SW_UX_swrec_EN_01_E/LVM.pdf

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: LVM CORRUPTION

Well, Robert, I was going to refer you to this thread:

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

but I see the big guys responded first hand anyway.

Good luck,

Pete

Pete
Jeff Schussele
Honored Contributor

Re: LVM CORRUPTION

Hi Robert,

Yes it will - until you setup the AUTO string to be

"hpux -lq"

It's probably just "hpux" right now & that's why you have to override it.

You can check it using

lifcp /dev/rdsk/cXtYdZ:AUTO -

You can change it using

mkboot -a "hpux -lq" /dev/rdsk/cXtYdZ

Make sure you do that to BOTH the new & old drives.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Helen French
Honored Contributor

Re: LVM CORRUPTION

Since the autostring has only 'hpux' in it, even after you reboot the system after replacing the disk, the system will complain about the missing disk from root VG. When you do -lq option the system will not complain as it won't check quorum.

You need to do vgcfgrestore and vgsyncs along with mkboot commands. Next time add -lq option when you do root mirroring along with mkboot -a command.
Life is a promise, fulfill it!
Jeff Schussele
Honored Contributor

Re: LVM CORRUPTION

Robert, my friend, you do know that you can use numbers more than once?

Rgds,
Jeff (Who's teasin ya as he's remembering those classic NASA countdowns)
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!