[linux-lvm] Corrupted LV after resize2fs crashed when adding new disk to LV
daytooner at gmail.com
Thu Oct 8 21:44:07 UTC 2009
The gods of Linux must be watching over me . I shall never blaspheme against
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
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.
"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 at 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 at 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 at redhat.com
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the linux-lvm