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

Re: [linux-lvm] vgscan can't find vg after system crash



On Tue, Jul 17, 2001 at 04:05:30PM +0200, Jahns Volker Dr. wrote:
> huh, that worked!

Good to hear :)

> 
> Howto to backup the VGDA after upgrade? Is there any recipe?
> Could you direct me to any relevant url, please.

vgcfgbackup(8)

"man lvm" gives the hint to that tool.

BTW: every change yo umake to the VG configuration will create a metadata
     backup automatically. But you can run vgcfgbackup at any arbitrary
     point in time to be sure, that /etc/lvmconf contains an actual one.
     Don't forget to include /etc/lvmconf in your backup strategy!

Regards,
Heinz    -- The LVM Guy --


> 
> > -----Ursprüngliche Nachricht-----
> > Von:	Heinz J. Mauelshagen [SMTP:Mauelshagen sistina com]
> > Gesendet am:	Dienstag, 17. Juli 2001 15:26
> > An:	linux-lvm sistina com
> > Betreff:	Re: [linux-lvm] vgscan can't find vg after system crash
> > 
> > On Tue, Jul 17, 2001 at 02:49:43PM +0200, Jahns Volker Dr. wrote:
> > > vgscan will not find any volume groups after system crash, where one pv
> > was
> > > lost.
> > > 
> > > 
> > > pvdisplay reports
> > > 	--- Physical volume ---
> > > PV Name               /dev/hdb3
> > > VG Name               vg01
> > > PV Size               5.86 GB / NOT usable 264 KB [LVM: 235 KB]
> > > PV#                   1
> > > PV Status             NOT available
> > > Allocatable           yes (but full)
> > > Cur LV                1
> > > PE Size (KByte)       4096
> > > Total PE              1500
> > > Free PE               0
> > > Allocated PE          1500
> > > PV UUID               /dev/h-db3
> > > 
> > > Other than vgscan I have tried to restore by using the vgcfgrestore tool
> > > 
> > > cp /etc/lvmconf/vg01.conf /etc/lvmtab.d/vg01
> > > echo -ne 'vg01\0' >/etc/lvmtab
> > > 
> > > vgcfgrestore -n vg01 exits w/ error message:
> > > 
> > > vgcfgrestore -- ERROR: different structure size stored in
> > > "/etc/lvmconf/vg01.conf" than expected in file vg_cfgrestore.c [line
> > 120]
> > > vgcfgrestore -- ERROR "vg_cfgrestore(): read" restoring volume group
> > "vg01"
> > 
> > You seem to have upgraded the LVM software and didn't take metadata
> > backups
> > afterwards. Sorry, in order to use that old backup, you need to downgrade 
> > the software again :-(
> > 
> > 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm sistina com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen Sistina com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


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