Skip to contentSkip to conversation

vgcfgbackup

linux-lvm Ulrich Wiederhold 2 participants 3 messages Aug 20, 2001 – Aug 27, 2001

lore
Share & tools
lore
#0 lore raw

Hello,
looking for a solution in the mailinglist-archive I found something, so I reinstalled an older lvm-version:
~ $ dpkg --list | grep lvm

ii  lvm-common     1.2            The Logical Volume Manager for Linux
ii  lvm10          0.9.1-final-1  The Logical Volume Manager for Linux

I did a
home:# vgcfgrestore -l -n vg01
--- Volume group ---

VG Name               vg01
VG Access             read/write
VG Status             NOT available/resizable
VG #                  0
MAX LV                256
Cur LV                3
Open LV               0
MAX LV Size           255.99 GB
Max PV                256
Cur PV                5
Act PV                5
VG Size               49.15 GB
PE Size               4 MB
Total PE              12583
Alloc PE / Size       12583 / 49.15 GB
Free  PE / Size       0 / 0
VG UUID               p8KJS0-eei7-s10H-61hT-7uJS-Euiq-bXhlNs

And restored the vg01 using "vgcfgrestore -f /etc/lvmconf/vg01.conf -n vg01 /dev/XXX" for every pv I use, output is like
home:# vgcfgrestore -f /etc/lvmconf/vg01.conf -n vg01 /dev/hda2 vgcfgrestore -- VGDA for "vg01" successfully restored to physical volume "/dev/hda2"
vgcfgrestore -- you may not have an actual backup of restored volume group "vg01"

What should I do now?
vgchange still won´t find a volume group, vgcfgbackup show this:
home:# vgcfgbackup -v vg01
vgcfgbackup -- using volume group(s) on command line vgcfgbackup -- locking logical volume manager
vgcfgbackup -- checking volume group name "vg01"
vgcfgbackup -- checking existence of volume group "vg01" vgcfgbackup -- ERROR: volume group "vg01" has an invalid number of physical volumes
vgcfgbackup -- ERROR "vg_cfgbackup(): vg_check_exist" backing up volume group vg01

and:
home:# pvscan
pvscan -- reading all physical volumes (this may take a while...) pvscan -- inactive PV "/dev/sdb1" of VG "vg01" [8.51 GB / 0 free] pvscan -- inactive PV "/dev/sdc1" of VG "vg01" [4.23 GB / 0 free] pvscan -- inactive PV "/dev/hda2" of VG "vg01" [19.1 GB / 0 free] pvscan -- inactive PV "/dev/hdb1" of VG "vg01" [7.87 GB / 0 free] pvscan -- inactive PV "/dev/hdd1" of VG "vg01" [9.44 GB / 0 free] pvscan -- total: 5 [49.17 GB] / in use: 5 [49.17 GB] / in no VG: 0 [0]

How can I continue?
Thanks for your hints.

Uli

P.S.: I haven´t written the last email to this list because I need an information about the meaning of unstable.

Signature · 1 line
'The box said, 'Requires Windows 95 or better', so i installed Linux - TKK 5
#1 lore raw

Hi,
once again...
Fixed the problem using uuid_fixer.

Uli

Signature · 1 line
'The box said, 'Requires Windows 95 or better', so i installed Linux - TKK 5
#2 lore raw
Quoted 3 lines · Ulrich Wiederhold

Hi,
once again...
Fixed the problem using uuid_fixer.

Yeah! uuid_fixer strikes again!

Signature · 13 lines
AJ Lewis
Sistina Software Inc.                  Voice:  612-638-0500
1313 5th St SE, Suite 111              Fax:    612-638-0500
Minneapolis, MN 55414                  E-Mail: [email protected]
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://www.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
Behind every good computer -- is a jumble of wires 'n stuff.
-----End Obligatory Humorous Quote------------------------------------------