From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com [10.5.110.10]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n98LiQVu020796 for ; Thu, 8 Oct 2009 17:44:26 -0400 Received: from mail-pz0-f187.google.com (mail-pz0-f187.google.com [209.85.222.187]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n98Li7wk010738 for ; Thu, 8 Oct 2009 17:44:07 -0400 Received: by pzk17 with SMTP id 17so272283pzk.6 for ; Thu, 08 Oct 2009 14:44:07 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <99f624940910081142q8e3388br8fb2fdd61e0874fe@mail.gmail.com> Date: Thu, 8 Oct 2009 14:44:07 -0700 Message-ID: <99f624940910081444o3fa2d177w8b7d55a1417b4d5a@mail.gmail.com> Subject: Re: [linux-lvm] Corrupted LV after resize2fs crashed when adding new disk to LV From: Ken Bass Content-Type: multipart/alternative; boundary=000e0cd28d12e98bde0475735c47 Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: LVM general discussion and development --000e0cd28d12e98bde0475735c47 Content-Type: text/plain; charset=ISO-8859-1 The gods of Linux must be watching over me . I shall never blaspheme against Linux again! I had removed the new drive from the VG, then restored the VG (vgrestore) to an archived version created before I had added the drive to the PV. I then added the drive back to the VG (vgextend), extended the LV partition to the max (lvextend), then resized the LV (resize2fs). Oh, before I could do the resize, I had to run e2fsck, which praise the gods, ran successfully. As did the resize. I re-ran e2fsck (with -f) and ir ran 100% successful and clean. And then the piece de resistance - I mounted the LV and everything was as I orginally wanted. The old data was still there and valid, and the new size of the LV was the original + the new disk!!!!! I don't know what I did to make this work. I all seems magical to me now. As with Stuart's below: Disclaimer, I am (in no way, shape or form) an LV expert. Thanks all. ken PS: "Confutatis maledictis, flammis acribus addictis" - background song for a Microsoft sponsored "Where do you want to go from here?" commercial. This is from Mozart's unfinished Requiem. If you watch the movie Amadeus, it is at the end right before he dies. I don't know Latin very well, but I think it has something to do with the burning flames of h*ll :-). On Thu, Oct 8, 2009 at 12:37 PM, Stuart D. Gathman wrote: > > On Thu, 8 Oct 2009, Ken Bass wrote: > > Look at your metadata backups, and see if you can find the version with > the larger LV. Look at the timestamp on the revert to get a clue on > how it got reverted. > > First, I would make a copy of what you got (it will fit on a cheap > external USB disk) before making any more mods. Then restore the metadata > to the extended LV before retrying e2fsck. > > Disclaimer, I am not an LVM expert. > > -- > Stuart D. Gathman > Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154 > "Confutatis maledictis, flammis acribus addictis" - background song for > a Microsoft sponsored "Where do you want to go from here?" commercial. > > _______________________________________________ > linux-lvm mailing list > linux-lvm@redhat.com > https://www.redhat.com/mailman/listinfo/linux-lvm > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/ > --000e0cd28d12e98bde0475735c47 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The gods of Linux must be watching over me . I shall never blaspheme agains= t Linux again!

I had removed the new drive from the VG, then restore= d the VG (vgrestore) to an archived version created before I had added the = drive to the PV. I then added the drive back to the VG (vgextend), extended= the LV partition to the max (lvextend), then resized the LV (resize2fs). O= h, before I could do the resize, I had to run e2fsck, which praise the gods= , ran successfully. As did the resize.

I re-ran e2fsck (with -f) and ir ran 100% successful and clean.

= And then the piece de resistance - I mounted the LV and everything was as I= orginally wanted. The old data was still there and valid, and the new size= of the LV was the original + the new disk!!!!!

I don't know what I did to make this work. I all seems magical to m= e now. As with Stuart's below:

Disclaimer, I am (in no way, sha= pe or form) an LV expert.

Thanks all.

ken

PS:

"Confutatis maledictis, flammis acribus addictis" - background so= ng for
a Microsoft sponsored "Where do you want to go from here?" commer= cial.
=A0
This is from Mozart's unfinished Requiem. If you watch the movie Am= adeus, it is at the end right before he dies. I don't know Latin very w= ell, but I think it has something to do with the burning flames of h*ll :-)= .


On Thu, Oct 8, 2009 at 12:37 PM, Stuart = D. Gathman <stuart@= bmsi.com> wrote:

On Thu, 8 Oct 2009, Ken Bass wrote:

Look at your metadata backups, and see if you can find the version wi= th
the larger LV. =A0Look at the timestamp on the revert to get a clue on
how it got reverted.

First, I would make a copy of what you got (it will fit on a cheap
external USB disk) before making any more mods. =A0Then restore the metadat= a
to the extended LV before retrying e2fsck.

Disclaimer, I am not an LVM expert.

--
=A0 =A0 =A0 =A0 =A0 =A0 =A0Stuart D. Gathman <stuart@bmsi.com>
=A0 =A0Business Management Systems Inc. =A0Phone: 703 591-0911 Fax: 703 59= 1-6154
"Confutatis maledictis, flammis acribus addictis" - background so= ng for
a Microsoft sponsored "Where do you want to go from here?" commer= cial.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

--000e0cd28d12e98bde0475735c47--