Operating System - HP-UX
1753532 Members
5777 Online
108795 Solutions
New Discussion юеВ

Re: recover VG with multiple disks

 
SOLVED
Go to solution
Todd McDaniel_1
Honored Contributor

Re: recover VG with multiple disks

That is exactly why you cant mount it. your LVM info is messed up.

When you have this type of problem, the disk wont be in the lvmtab...

You will need to clear that disk from the Lvol before you can use it.
Unix, the other white meat.
Sridhar Bhaskarla
Honored Contributor

Re: recover VG with multiple disks

vgreduce -f will work only if the PV doesn't have any physical extents alloted to the logical volumes. So, if you want to use that command, you will need to take out the PV from the definitions of all logical volumes. It's a painful process. Run 'lvdisplay -v -k /dev/vgxx/lvolx' and it will show a number in the "PVx" column related to missing PV. Then you need to use 'lvreduce -k ...' command to reduce the PV. That works good for mirror disk. But if it is not a mirror disk but the LV has data on it, then you will have to remove the LV. Even it is the same case with vgscan.

You will not be able to mount the LVs that have data on the failed disk.

If you still have old lvmtab, put it back and try 'vgchange -a y -q n vgxx'. Only logical volumes that didn't use that failed disk can be mounted.

-Sri

PS: He didn't say his LVs were striped. That was only a comment.
You may be disappointed if you fail, but you are doomed if you don't try
George Liu_4
Trusted Contributor

Re: recover VG with multiple disks

Sorry forgot to mention it was striped
Michael Tully
Honored Contributor

Re: recover VG with multiple disks

If you were using stripes for all LV's across all three disks, you will need to get your backup tapes, as I don't you will mount anything. Your best bet would to recreate the VG/LV's and restore from tape.
Anyone for a Mutiny ?
Todd McDaniel_1
Honored Contributor

Re: recover VG with multiple disks

No points here please..

MY 2 cents is DONT stripe your vg00... that is very strange concept to me. Mirroring should be sufficient.

And saves you from this heartache the next time a disk fails... it wont take your box down.

Disks will fail and it isnt pretty when you cant boot.
Unix, the other white meat.