linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] [SOLVED?] rebuilding LV ext4 filesystem
@ 2010-07-21 18:34 Ken Bass
  2010-07-21 18:54 ` Brian McCullough
  0 siblings, 1 reply; 10+ messages in thread
From: Ken Bass @ 2010-07-21 18:34 UTC (permalink / raw)
  To: linux-lvm

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

Okay, I finally got to do what Stuart D. Gathman suggested. And it worked,
sort of.

The problem: the first PV in my LV started to die, and trashed a big portion
of the beginning of the physical drive - including the partition table,
partition info, and ext4 file structure. All I wanted at that point was to
recover what was on the rest of the other PVs in the LV. But nothing could
interpret whatever data was left. e2fsck, et al, all said they could not
find a superblock, even when I tried ones on the other PVs.

Since that original drive was really dying (SMART was spurting out messages
about that), it was somewhat difficult to read anything off of it. But
Stuart did recommend "dd_rescue" to move whatever it could from the dying
drive to a new drive. Which I did. Turns out that most of the access
problems were at the beginning of the drive (why I don't know). So I
basically copied in reverse, starting at the end of the drive. I did this
mainly hoping to find a valid superblock that I could use to bring back up
the LV and run e2fsck on it.

Long story short: dd_rescue did just that. I found a superblock, and ran
e2fsck to fix all of the problems.

NOW: I am left with a clean ext filesystem, but with about 300GB in
lost+found, and not other files. Just guessing on that amount, since that is
how much was on the LV before the crash. So the next logical and obvious
(and desperate) question is: how to I restore all (or any) of the files
under lost+found?

Most of them (that I am interested in)were either image files (jpg, png,
bmp), ISO images (DVD, CD), music files (mp3, flac, etc), and a few MS
executables. Is there a utiliity that can help restore these files, maybe
scan the lost+found files for these types?

Thanks to all for their help. I hope none of you ever have to go through
this yourself :-).

ken

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

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [linux-lvm] [SOLVED?] rebuilding LV ext4 filesystem
@ 2010-07-21 20:41 daytooner
  2010-07-21 21:34 ` Brian McCullough
  0 siblings, 1 reply; 10+ messages in thread
From: daytooner @ 2010-07-21 20:41 UTC (permalink / raw)
  To: LVM general discussion and development

Thx. That's one try. 

BTW: what is a .milk file? There were several of these I found under several layers under lost+found.

Ken
-----Original Message-----

From:  Brian McCullough <bdmc@bdmcc-us.com>
Subj:  Re: [linux-lvm] [SOLVED?] rebuilding LV ext4 filesystem
Date:  Wed Jul 21, 2010 11:58 am
Size:  1K
To:  LVM general discussion and development <linux-lvm@redhat.com>

On Wed, Jul 21, 2010 at 11:34:45AM -0700, Ken Bass wrote:
> Okay, I finally got to do what Stuart D. Gathman suggested. And it worked,
> sort of.
> 
> NOW: I am left with a clean ext filesystem, but with about 300GB in
> lost+found, and not other files. Just guessing on that amount, since that is
> how much was on the LV before the crash. So the next logical and obvious
> (and desperate) question is: how to I restore all (or any) of the files
> under lost+found?
> 
> Most of them (that I am interested in)were either image files (jpg, png,
> bmp), ISO images (DVD, CD), music files (mp3, flac, etc), and a few MS
> executables. Is there a utiliity that can help restore these files, maybe
> scan the lost+found files for these types?

Not a lot of help, probably, but the "file" command should at least give you some idea of what type of files they are.


Brian

_______________________________________________
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/

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-07-23 16:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-21 18:34 [linux-lvm] [SOLVED?] rebuilding LV ext4 filesystem Ken Bass
2010-07-21 18:54 ` Brian McCullough
2010-07-22 23:32   ` Ken Bass
2010-07-23  2:02     ` Stuart D. Gathman
2010-07-23  2:19       ` Ken Bass
2010-07-23 16:35         ` Stuart D. Gathman
  -- strict thread matches above, loose matches on Subject: below --
2010-07-21 20:41 daytooner
2010-07-21 21:34 ` Brian McCullough
2010-07-22 23:12   ` Ken Bass
2010-07-22 23:27     ` Stuart D. Gathman

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).