Skip to contentSkip to conversation

vgcfgrestore and bootstrap

linux-lvm Gingia 2 participants 5 messages Sep 23, 2003 – Sep 25, 2003

lore
Share & tools
lore

Gingia

author
#0 lore raw

Hi all.
I write in this list to explain the problem with the meta data and the inconsistence.

Thank to Heinz J . Mauelshagen i solve the principal problem.

Now i have another problem caused by the same root.

When i start the devlopment server (debian woody), it remain in the runlevel 1 e ask me the pass to root access for device-filesystem problem. It said that it had problem with the lvm.

To start the sewrver i must to :
1) vgcfgrestore -n volume1 -f /etc/lvmconf/volume1.conf /dev/i2o/hda3
2) vgchange -a y
3) mount -a
and only now i can go to runlevel 2 for normal start.

So i understand that 1) the "restoring" metadata is a routine operation at boostrap instead of a propely restoring 2) for some reason this does not happen more.

So my question is: Why ?
How i can restabilished this at boot time? I can move to solve this other problem?
Can you help me?

#1 lore raw

Gingia,

the normal procedure is "vgscan ; vgchange -ay ; mount -a" rather than vgcfgrestore before vgchange.

vgscan recognizes changes in the IO configuration (e.g. devices moved to different addresses causing device nodes t change).

Have you tried "vgscan ; vgchange -ay ; mount -a" before ?
(keep in mind, that vgscan needs space below /etc/ to store metadata copies)

Regards,
Heinz -- The LVM Guy --

Quoted 30 lines · Gingia

Hi all.
I write in this list to explain the problem with the meta data and the inconsistence.

Thank to Heinz J . Mauelshagen i solve the principal problem.

Now i have another problem caused by the same root.

When i start the devlopment server (debian woody), it remain in the runlevel 1 e ask me the pass to root access for device-filesystem problem. It said that it had problem with the lvm.

To start the sewrver i must to :
1) vgcfgrestore -n volume1 -f /etc/lvmconf/volume1.conf /dev/i2o/hda3
2) vgchange -a y
3) mount -a
and only now i can go to runlevel 2 for normal start.

So i understand that 1) the "restoring" metadata is a routine operation at boostrap instead of a propely restoring 2) for some reason this does not happen more.

So my question is: Why ?
How i can restabilished this at boot time? I can move to solve this other problem?
Can you help me?

Quoted 5 lines

_______________________________________________
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/

*** 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

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

author
#2 lore raw

Alle 10:37, mercoledì 24 settembre 2003, Heinz J . Mauelshagen ha scritto:

Quoted 4 lines

Gingia,

the normal procedure is "vgscan ; vgchange -ay ; mount -a" rather than vgcfgrestore before vgchange.

...

Quoted 3 lines

Have you tried "vgscan ; vgchange -ay ; mount -a" before ? (keep in mind, that vgscan needs space below /etc/ to store metadata copies)

I controlled the script of bootstrap to see if there is the apropiated entry, and it seems is ok, i also re-started the server .
I tried "vgscan" and i have the output:
invalidate :dirty buffer
invalidate :busy buffer
(any time)
vgscan -- "/etc/lvmtab" and "7etc/lvmtab.d" successfully created vgscan -- WARNING: this programm doe not do a VGDA backup of your group

after i do :
vgchange -ay
and the output was:
vgchange -- no volume group found

so i made the restore:
vgcfgrestore .........
the ouptput was
vgcfgrestore -- VGDA for "Volume1" successfully restored to phisical volume "/dev/i2o/hda3"
vgcfgrestore -- you may not have an actual backup of restored group "volume1"

then i can do vgchange -ay and go on

This is all , was it the matter?

Thank you

#3 lore raw
Quoted 10 lines · Gingia

Alle 10:37, mercoledì 24 settembre 2003, Heinz J . Mauelshagen ha scritto:

Quoted 4 lines

Gingia,

the normal procedure is "vgscan ; vgchange -ay ; mount -a" rather than vgcfgrestore before vgchange.

...

Quoted 3 lines

Have you tried "vgscan ; vgchange -ay ; mount -a" before ? (keep in mind, that vgscan needs space below /etc/ to store metadata copies)

Quoted 8 lines

I controlled the script of bootstrap to see if there is the apropiated entry, and it seems is ok, i also re-started the server .
I tried "vgscan" and i have the output:
invalidate :dirty buffer
invalidate :busy buffer
(any time)
vgscan -- "/etc/lvmtab" and "7etc/lvmtab.d" successfully created vgscan -- WARNING: this programm doe not do a VGDA backup of your group

Can you send the "vgscan -d" output of this case to me directly, please ([email protected]) ?
Probably some i2o devices scanning flaw.

Quoted 29 lines

after i do :
vgchange -ay
and the output was:
vgchange -- no volume group found

so i made the restore:
vgcfgrestore .........
the ouptput was
vgcfgrestore -- VGDA for "Volume1" successfully restored to phisical volume "/dev/i2o/hda3"
vgcfgrestore -- you may not have an actual backup of restored group "volume1"

then i can do vgchange -ay and go on

This is all , was it the matter?

Thank you

_______________________________________________
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
author
#4 lore raw

Alle 14:48, mercoledì 24 settembre 2003, Heinz J . Mauelshagen ha scritto:

Quoted 6 lines
Quoted 2 lines

vgscan -- "/etc/lvmtab" and "7etc/lvmtab.d" successfully created vgscan -- WARNING: this programm doe not do a VGDA backup of your group

Can you send the "vgscan -d" output of this case to me directly, please ([email protected]) ?
Probably some i2o devices scanning flaw.

I tried to make a backup with
vgcfgbackup command but it failed and the output was :
vgcfgbackup -- ERROR: VGDA in kernel and lvmtab are NOT consistent; please run vgscan

Can i solve this?
How i can solve the problem of bootstrap? If possible?