From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 10 Jul 2001 13:57:32 -0500 From: Eli Criffield Subject: Re: [linux-lvm] vg gone after vgextend Message-ID: <20010710135732.A31208@zendo.net> References: <20010710093902.B30416@zendo.net> <20010710110656.A24243@sistina.com> <20010710113917.A30933@zendo.net> <20010710121206.A31966@sistina.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline In-Reply-To: <20010710121206.A31966@sistina.com>; from lewis@sistina.com on Tue, Jul 10, 2001 at 12:12:06PM -0500 Sender: linux-lvm-admin@sistina.com Errors-To: linux-lvm-admin@sistina.com Reply-To: linux-lvm@sistina.com List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: To: linux-lvm@sistina.com --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Yeah /dev/hda2 is the pv i added to rootvg just before the reboot. I only have 3 partitions hda1 is root, hda2 LVM and hda3 is LVM. I recompiled uuid_fixer and tried it again, but got the exact same results. pvdata -U /dev/hda2 returns pvdata -- ERROR "pv_read{}: PV identifier invalid" reading phsical volume uuid list from physical volume "/dev/hda2" pvdata -U /dev/hda3 gives --- List of phsical volume UUIDs --- 000: elhLXoMw5J8qaEgN2DzEYoWoqhqH7H5a 001: 9AoOf5F6c58dcyJ30pfwNp153TI5PjLF thanks again eli On Tue, Jul 10, 2001 at 12:12:06PM -0500, AJ Lewis wrote: > On Tue, Jul 10, 2001 at 11:39:17AM -0500, Eli Criffield wrote: > > It didn't work :( > >=20 > > when i ran=20 > > ./uuid_fixer /dev/hda2 /dev/hda3 i got > > /dev/hda2 - pv_read{}: PV identifier invalid >=20 > are you *sure* that /dev/hda2 is the other PV? What happens when you run > 'pvdata -U /dev/hda2'? You might also try recompiling the uuid_fixer > against the beta2 source, and running it again. It should work as is, but > that might be an issue. >=20 > > but if i run=20 > > ./uuid_fixer /dev/hda3 i get > > Error: number of PVs passed in does not match number of PVs in /dev/hda= 3s > > VG > > 1 PVs where passed in and 2 where expected > >=20 > > So it thinks /dev/hda2 is part of the vg but /dev/hda2 had no info on it > > saying that it is. > >=20 > > oh btw im using LVM 0.9.1_beta2 as it came with kernel 2.4.5 and LVM > > tools 0.9.1_beta2. > >=20 > > Now what? > >=20 > > eli > >=20 > > On Tue, Jul 10, 2001 at 11:06:56AM -0500, AJ Lewis wrote: > > > Goto ftp://ftp.sistina.com/pub/LVM/contrib and get > > > uuid_fixer-0.3-IOP10.tar.gz > > >=20 > > > Read the README. Run it on your system, then run vgscan. It should = fix > > > your problem. If not, let me know. > > >=20 > > > On Tue, Jul 10, 2001 at 09:39:02AM -0500, Eli Criffield wrote: > > > > I had LVM up and working great, even on the / filesystem. I had a > > > > /dev/hda1 that was a 4 gig filesystem that i tared my distribution = to and > > > > /dev/hda2 that use to be my / filesystem and /dev/hda3 that was my = volume > > > > group. I resized /dev/hda1 down to around 30 megs and made /dev/hda2 > > > > 4+gig. I made /dev/hda1 /boot and had a initrd to turn on LVM and b= oot to > > > > the / filesystem on /dev/rootvg/root_lv. That all worked fine. > > > >=20 > > > > Until i added /dev/hda2 (now about 4gig) to the volumegroup rootvg.= All > > > > looked ok when i went to reboot. On the reboot it died in the ramdi= sk when > > > > it ran vgscan. > > > > "vgscan -- no volume groups found" > > > >=20 > > > > I was then stuck with a none bootable machine. I'll save you the lo= ng > > > > story about the trouble i had making some kind of rescue disk, but i > > > > finally got one to work off a cd i had a friend burn for me. > > > >=20 > > > > Now when i run pvscan i get=20 > > > > "pvscan -- inactive PV "/dev/hda3" is associated to an unknown VG (= run > > > > vgscan) > > > > pvscan -- total: 14.4GB / in use 1 [14.4GB] / in no VG 0 [0]" > > > >=20 > > > > it doesn't see /dev/hda2 that i added to the vg right before reboot= , but > > > > thats not a problem because there was nothing on it yet anyway. > > > >=20 > > > > pvscan -vv gives > > > >=20 > > > > -- Physical volume --- > > > > PV Name /dev/hda3 > > > > VG Name rootvg > > > > PV Size 14.4 GB / NOT usable 3.48 MB [LVM: 135KB] > > > > PV# 1 > > > > PV Status available > > > > Allocatable yes > > > > CurLV 6 > > > > P ESize (KByte) 4096 > > > > Total PE 3685 > > > > Free PE 1261 > > > > Allocated PE 2424 > > > > PV UUID elhLo-Mw5J-8qaE-gN2D-zEYo-Woqh-qH7H5a > > > > System Id eli.custom-edge.com993738446 > > > >=20 > > > >=20 > > > > from what i can tell from the archives to do a vgcfgrestore is the = next > > > > logical thing but it doesn't work for me > > > >=20 > > > > vgcfgrestore -n rootvg /dev/hda3 > > > > vgcfgrestore -- "/etc/lvmconf/rootvg.conf" doesn't exist > > > > vgcfgrestore -- a backup for volume group rootvg is not available > > > >=20 > > > > which makes since because i booted off a rescue disk in a ram disk. > > > >=20 > > > > vgscan still gives > > > > vgscan -- no volume groups found > > > >=20 > > > > i did find this answer in the archives for a similar problem: > > > >=20 > > > > > You need to edit the disk signatures and for each PV, insert all = the > > > > > _other_ PV signatures in the right place. > > > >=20 > > > > but no explanation on how to do that? > > > >=20 > > > > Is that what i should be doing? If so how do i do that? If not what= can i > > > > do to save this box? > > > >=20 > > > > thanks a ton it will save a lot of hassle if i don't have to reinst= all. > > > >=20 > > > > eli > > >=20 > > >=20 > > >=20 > > > --=20 > > > AJ Lewis > > > Sistina Software Inc. Voice: 612-638-0500 > > > 1313 5th St SE, Suite 111 Fax: 612-638-0500 > > > Minneapolis, MN 55414 E-Mail: lewis@sistina.com > > > http://www.sistina.com > > >=20 > > > Current GPG fingerprint =3D 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 su= b-keys) > > >=20 > > > -----Begin Obligatory Humorous Quote---------------------------------= ------- > > > Hey! It compiles! Ship it! > > > -----End Obligatory Humorous Quote-----------------------------------= ------- > >=20 > >=20 >=20 >=20 >=20 > --=20 > AJ Lewis > Sistina Software Inc. Voice: 612-638-0500 > 1313 5th St SE, Suite 111 Fax: 612-638-0500 > Minneapolis, MN 55414 E-Mail: lewis@sistina.com > http://www.sistina.com >=20 > Current GPG fingerprint =3D 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-ke= ys) >=20 > -----Begin Obligatory Humorous Quote-------------------------------------= --- > Computers make very fast, very accurate mistakes. > -----End Obligatory Humorous Quote---------------------------------------= --- --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7S1Acm2VvYlVjW2oRAmVOAKCIGfUwoBIfEau/cm0jdam2EdQchwCeIpBk sq8Qq+yS+FSU6ykRCcdYTZc= =22wl -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--