linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Ken Bass <daytooner@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Corrupted LV after resize2fs crashed when adding new  disk to LV
Date: Thu, 8 Oct 2009 14:44:07 -0700	[thread overview]
Message-ID: <99f624940910081444o3fa2d177w8b7d55a1417b4d5a@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0910081523100.26436@bmsred.bmsi.com>

[-- Attachment #1: Type: text/plain, Size: 2304 bytes --]

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 <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 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 <stuart@bmsi.com>
>    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/
>

[-- Attachment #2: Type: text/html, Size: 3022 bytes --]

      reply	other threads:[~2009-10-08 21:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-08 18:42 [linux-lvm] Corrupted LV after resize2fs crashed when adding new disk to LV Ken Bass
2009-10-08 19:37 ` Stuart D. Gathman
2009-10-08 21:44   ` Ken Bass [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=99f624940910081444o3fa2d177w8b7d55a1417b4d5a@mail.gmail.com \
    --to=daytooner@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).