* [linux-lvm] Recovering inconsistent vg
@ 2002-06-04 19:38 Shane Wegner
2002-06-05 7:39 ` Patrick Caulfield
2002-06-05 10:24 ` [linux-lvm] " Stephan Austermuehle
0 siblings, 2 replies; 6+ messages in thread
From: Shane Wegner @ 2002-06-04 19:38 UTC (permalink / raw)
To: linux-lvm
Hi all,
I'm not sure how this happened but after rebooting, I am
getting the following from vgscan.
continuum:~# vgscan
vgscan -- reading all physical volumes (this may take a
while...)
vgscan -- found inactive volume group "vg0"
vgscan -- ERROR "lv_check_consistency(): LV status" volume
group "vg0" is inconsistent
vgscan -- ERROR: unable to do a backup of volume group
"vg0"
vgscan -- ERROR "lvm_tab_vg_remove(): unlink" removing
volume group "vg0" from "/etc/lvmtab"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully
created
vgscan -- WARNING: This program does not do a VGDA backup
of your volume group
I have no idea what this means, what I can do to recover
and am hoping someone could help me out. A pvscan yeilds:
continuum:~# pvscan
pvscan -- reading all physical volumes (this may take a
while...)
pvscan -- inactive PV "/dev/hdi1" is associated to unknown
VG "vg0" (run vgscan)
pvscan -- inactive PV "/dev/hde1" is associated to unknown
VG "vg0" (run vgscan)
pvscan -- inactive PV "/dev/hda1" is associated to unknown
VG "vg0" (run vgscan)
pvscan -- total: 3 [215.74 GB] / in use: 3 [215.74 GB] / in
no VG: 0 [0]
Looks right to me. vg0 is hda1, hde1, and hdi1.
Thanks in advance,
Shane
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] Recovering inconsistent vg
2002-06-04 19:38 [linux-lvm] Recovering inconsistent vg Shane Wegner
@ 2002-06-05 7:39 ` Patrick Caulfield
2002-06-05 17:34 ` Shane Wegner
2002-06-05 10:24 ` [linux-lvm] " Stephan Austermuehle
1 sibling, 1 reply; 6+ messages in thread
From: Patrick Caulfield @ 2002-06-05 7:39 UTC (permalink / raw)
To: linux-lvm
On Tue, Jun 04, 2002 at 05:37:28PM -0700, Shane Wegner wrote:
> Hi all,
>
> I'm not sure how this happened but after rebooting, I am
> getting the following from vgscan.
> continuum:~# vgscan
> vgscan -- reading all physical volumes (this may take a
> while...)
> vgscan -- found inactive volume group "vg0"
> vgscan -- ERROR "lv_check_consistency(): LV status" volume
> group "vg0" is inconsistent
> vgscan -- ERROR: unable to do a backup of volume group
> "vg0"
> vgscan -- ERROR "lvm_tab_vg_remove(): unlink" removing
> volume group "vg0" from "/etc/lvmtab"
> vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully
> created
> vgscan -- WARNING: This program does not do a VGDA backup
> of your volume group
>
If this is a recent debian unstable upgrade then you should get
the latest 1:1.0.4-4 deb (uploaded this morning GMT) that fixes
the problem.
patrick
^ permalink raw reply [flat|nested] 6+ messages in thread
* [linux-lvm] Re: Recovering inconsistent vg
2002-06-04 19:38 [linux-lvm] Recovering inconsistent vg Shane Wegner
2002-06-05 7:39 ` Patrick Caulfield
@ 2002-06-05 10:24 ` Stephan Austermuehle
2002-06-05 10:29 ` Patrick Caulfield
1 sibling, 1 reply; 6+ messages in thread
From: Stephan Austermuehle @ 2002-06-05 10:24 UTC (permalink / raw)
To: linux-lvm
Hi,
I've the same problem. The VG was originally created with LVM 1.0.4,
then used (and extended) with 1.1rc1. Now I've the problem after
downgrading to 1.0.4.
# ./vgscan
vgscan -- ERROR "lv_check_consistency(): LV status" volume group "vg00" is inconsistent
vgscan -- ERROR: unable to do a backup of volume group "vg00"
vgscan -- ERROR "lvm_tab_vg_remove(): unlink" removing volume group "vg00" from "/etc/lvmtab"
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "vg00"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group
Stephan
On Tue, Jun 04, 2002 at 05:37:28PM -0700, Shane Wegner wrote:
> Hi all,
>
> I'm not sure how this happened but after rebooting, I am
> getting the following from vgscan.
> continuum:~# vgscan
> vgscan -- reading all physical volumes (this may take a
> while...)
> vgscan -- found inactive volume group "vg0"
> vgscan -- ERROR "lv_check_consistency(): LV status" volume
> group "vg0" is inconsistent
> vgscan -- ERROR: unable to do a backup of volume group
> "vg0"
> vgscan -- ERROR "lvm_tab_vg_remove(): unlink" removing
> volume group "vg0" from "/etc/lvmtab"
> vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully
> created
> vgscan -- WARNING: This program does not do a VGDA backup
> of your volume group
>
> I have no idea what this means, what I can do to recover
> and am hoping someone could help me out. A pvscan yeilds:
>
> continuum:~# pvscan
> pvscan -- reading all physical volumes (this may take a
> while...)
> pvscan -- inactive PV "/dev/hdi1" is associated to unknown
> VG "vg0" (run vgscan)
> pvscan -- inactive PV "/dev/hde1" is associated to unknown
> VG "vg0" (run vgscan)
> pvscan -- inactive PV "/dev/hda1" is associated to unknown
> VG "vg0" (run vgscan)
> pvscan -- total: 3 [215.74 GB] / in use: 3 [215.74 GB] / in
> no VG: 0 [0]
>
> Looks right to me. vg0 is hda1, hde1, and hdi1.
>
> Thanks in advance,
> Shane
>
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] Re: Recovering inconsistent vg
2002-06-05 10:24 ` [linux-lvm] " Stephan Austermuehle
@ 2002-06-05 10:29 ` Patrick Caulfield
2002-06-05 11:03 ` Stephan Austermuehle
0 siblings, 1 reply; 6+ messages in thread
From: Patrick Caulfield @ 2002-06-05 10:29 UTC (permalink / raw)
To: linux-lvm
On Wed, Jun 05, 2002 at 05:23:56PM +0200, Stephan Austermuehle wrote:
> Hi,
>
> I've the same problem. The VG was originally created with LVM 1.0.4,
> then used (and extended) with 1.1rc1. Now I've the problem after
> downgrading to 1.0.4.
>
> # ./vgscan
> vgscan -- ERROR "lv_check_consistency(): LV status" volume group "vg00" is inconsistent
> vgscan -- ERROR: unable to do a backup of volume group "vg00"
> vgscan -- ERROR "lvm_tab_vg_remove(): unlink" removing volume group "vg00" from "/etc/lvmtab"
> vgscan -- reading all physical volumes (this may take a while...)
> vgscan -- found active volume group "vg00"
> vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
> vgscan -- WARNING: This program does not do a VGDA backup of your volume group
>
> Stephan
>
yeah, it's a bug in 1.1 which is fixed in the debian patched 1.0.4-4. If you
built from source here's the workaround:
diff -u -r1.4 -r1.4.2.1
--- lv_check_consistency.c 7 Feb 2002 16:19:46 -0000 1.4
+++ lv_check_consistency.c 5 Jun 2002 10:12:01 -0000 1.4.2.1
@@ -42,6 +42,9 @@
debug_enter ( "lv_check_consistency -- CALLED\n");
+ /* Don't barf on broken LVM1.1 created metadata */
+ if (lv->lv_status > 2) lv->lv_status = 1;
+
if ( lv == NULL) ret = -LVM_EPARAM;
else if ( lv_check_name ( lv->lv_name) != 0) ret = -LVM_ELV_LVNAME;
else if ( vg_check_name ( lv->vg_name) != 0) ret = -LVM_ELV_VGNAME;
patrick
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] Re: Recovering inconsistent vg
2002-06-05 10:29 ` Patrick Caulfield
@ 2002-06-05 11:03 ` Stephan Austermuehle
0 siblings, 0 replies; 6+ messages in thread
From: Stephan Austermuehle @ 2002-06-05 11:03 UTC (permalink / raw)
To: linux-lvm
On Wed, Jun 05, 2002 at 04:29:04PM +0100, Patrick Caulfield wrote:
> yeah, it's a bug in 1.1 which is fixed in the debian patched
> 1.0.4-4. If you built from source here's the workaround:
Thanks, that worked.
Stephan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-lvm] Recovering inconsistent vg
2002-06-05 7:39 ` Patrick Caulfield
@ 2002-06-05 17:34 ` Shane Wegner
0 siblings, 0 replies; 6+ messages in thread
From: Shane Wegner @ 2002-06-05 17:34 UTC (permalink / raw)
To: linux-lvm
On Wed, Jun 05, 2002 at 01:39:03PM +0100, Patrick Caulfield wrote:
> On Tue, Jun 04, 2002 at 05:37:28PM -0700, Shane Wegner wrote:
> > vgscan -- ERROR "lv_check_consistency(): LV status" volume
> > group "vg0" is inconsistent
>
> If this is a recent debian unstable upgrade then you should get
> the latest 1:1.0.4-4 deb (uploaded this morning GMT) that fixes
> the problem.
Yes, that was it. Thank you for the help.
Shane
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2002-06-05 17:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-04 19:38 [linux-lvm] Recovering inconsistent vg Shane Wegner
2002-06-05 7:39 ` Patrick Caulfield
2002-06-05 17:34 ` Shane Wegner
2002-06-05 10:24 ` [linux-lvm] " Stephan Austermuehle
2002-06-05 10:29 ` Patrick Caulfield
2002-06-05 11:03 ` Stephan Austermuehle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.