Skip to contentSkip to conversation

lvm-problems. vgda inconsistency

linux-lvm Dieter Franzke 2 participants 3 messages Dec 16, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

I've created a pv, vg and lv
via pvcreate, vgcreate and lvcreate.
Everything went well.
But when I tried to initialize a filesystem via mkfs.xfs I get following error:

VGDA in Kernel and lvmtab are NOT consistent; please run vgscan

When I run vgscan nothing is changed.
How can I fix this without rebooting?

any hints?

ciao

dieter

Signature · 2 lines
registered linuxuser 199810
it's time to close windows....
#1 lore raw
Quoted 8 lines · Dieter Franzke

Hi,

I've created a pv, vg and lv
via pvcreate, vgcreate and lvcreate.
Everything went well.
But when I tried to initialize a filesystem via mkfs.xfs I get following error:

Quoted 4 lines

VGDA in Kernel and lvmtab are NOT consistent; please run vgscan

When I run vgscan nothing is changed.
How can I fix this without rebooting?

Rebooting won't help this. vgscan _reads_ the LVM metadata on the PVs and tries to update the working copies of the metadata in /etc/lvmtab*. No change to the metadata on the PVs happens during a vgscan run.

Does vgscan display any error?
What does vgck display?

vgck should check the ondisk metadata fine or we need to restore it from archive copies in /etc/lvmconf/ (please save those!)

Quoted 17 lines

any hints?

ciao

dieter

Signature · 9 lines
registered linuxuser 199810
it's time to close windows....


_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** 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
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw

Hi,

Am Montag, 16. Dezember 2002 16:48 schrieb Heinz J . Mauelshagen:

Quoted 11 lines · Dieter Franzke
Quoted 10 lines

Hi,

I've created a pv, vg and lv
via pvcreate, vgcreate and lvcreate.
Everything went well.
But when I tried to initialize a filesystem via mkfs.xfs I get following error:

VGDA in Kernel and lvmtab are NOT consistent; please run vgscan

Quoted 8 lines
Quoted 2 lines

When I run vgscan nothing is changed.
How can I fix this without rebooting?

Rebooting won't help this. vgscan _reads_ the LVM metadata on the PVs and tries to update the working copies of the metadata in /etc/lvmtab*. No change to the metadata on the PVs happens during a vgscan run.

Does vgscan display any error?

2 VGs were recognized, the 3rd (the last I've created) isn't displayed.

Quoted 1 line

What does vgck display?

VGDA in Kernel and lvmtab are NOT consistent; please run vgscan

Quoted 3 lines

vgck should check the ondisk metadata fine or we need to restore it from archive copies in /etc/lvmconf/ (please save those!)

in my /etc/lvm-conf there is .conf of my third VG /etc/lvm-conf/daten.conf

vgcfgrestore -n daten -t /dev/sda1 works fine
backup of VolumeGroup "daten" is consistent

an the option -l works also fine.

but a vgcfgrestore -n daten -f /etc/lvm-conf/daten.conf /dev/sda1
displays: can't restore part of active Volume group daten.

But vgscan says: daten isn't existent.
shows only buero, datenbu

ciao

dieter

Signature · 2 lines
registered linuxuser 199810
it's time to close windows....