[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] made a big misstake

Andreas Dilger wrote:
> Erik writes:
> > Now the misstake, I did not run a vgreduce before I fdisk'ed the whole
> > disk (hdb).  Now when I start up, vgscan cannot find any vg's.
> Was hdb1 the first PV created in the VG?  The problem, I think, is that
> Linux LVM only keeps the VGDA on the first PV.  AIX will keep a VGDA
> copy on all of the PVs, and even will keep 2 VGDAs on the first PV for
> backup, in case the first one is corrupt.

Actually, LVM should have a copy of the dscriptor area. It is kept in
the file system in the directory /etc/lvmconf which even has the nice
property that you can back it up. The VGDA is implecitely backed up by 
most LVM  commands. 

You should be able to restore them with vgcfgrestore.
The vgcfgrestore syntax seems to sugest you can even restore it
to another physical volume (no tested, personally) which would
solve the actual problem nicely.

Hope this helps

Michael Marxmeier           Marxmeier Software AG
E-Mail: mike msede com      Besenbruchstrasse 9
Phone : +49 202 2431440     42285 Wuppertal, Germany
Fax   : +49 202 2431420     http://www.msede.com/

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]