* Possible to recover this Raid 5 Array?
@ 2003-10-29 19:36 Mike Fedyk
2003-10-29 20:48 ` Måns Rullgård
0 siblings, 1 reply; 2+ messages in thread
From: Mike Fedyk @ 2003-10-29 19:36 UTC (permalink / raw)
To: linux-kernel; +Cc: ext3-users
Hi,
I have a 3x160GB linux md raid5 array with ext3 that is having some problems
(to put it lightly).
One drive failed, and I set out yesterday to replace it with a new drive.
The drive that failed (started getting bad blocks (about 100
of them so far according to smartctl -a) was also the boot drive (even
though /boot was on a raid1)), so I booted into knoppix to rerun lilo on the
drive to make it bootable.
I re-assembled the array with mdadm, and set out to chroot into the array to
run lilo, but started getting some filesystem errors.
Ran fsck on the filesystem, and it found some errors (a lot!), so thought it
might be good to log the output, so I canceled the fsck (maybe not a good
idea), mounted a nfs volume (knoppix has some troubles with rpciod, but if
you kill it, you get a working nfs mount -- strange but works -- haven't
reported it to knoppix yet though), and ran fsck -yf /dev/md0 > nfs mount
2>&1. (the last run out of about 4 is attached & compressed)
While that was happening, I started thinking about the array, and checked
the disk that I replaced (mdadm -E), and found out that I replaced the wrong
drive! I immediately canceled the fsck that was running.
The fsck was running on a degraded raid5 array with one drive that has
current data, and one drive that was failed out of the array over two weeks
ago!
Now I have the two good drives put together in a degraded array, and luckily
I'm able to mount the beast, and am able to read a surprising amount of data
(it takes a long time to fully fsck 300GB, so it wasn't able to get to the
entire filesystem with the old disk in the array before I canceled it)
The array was about 10% full when this happened.
I'm checking what I can recover, but my home directory was on there, and I
only had partial backups. I have restored what was in the backups, but a
lot of files I hoped were backed up weren't.
Is there some miracle that can be performed on with this?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Possible to recover this Raid 5 Array?
2003-10-29 19:36 Possible to recover this Raid 5 Array? Mike Fedyk
@ 2003-10-29 20:48 ` Måns Rullgård
0 siblings, 0 replies; 2+ messages in thread
From: Måns Rullgård @ 2003-10-29 20:48 UTC (permalink / raw)
To: linux-kernel
Mike Fedyk <mfedyk@matchmail.com> writes:
> Now I have the two good drives put together in a degraded array, and luckily
> I'm able to mount the beast, and am able to read a surprising amount of data
> (it takes a long time to fully fsck 300GB, so it wasn't able to get to the
> entire filesystem with the old disk in the array before I canceled it)
>
> The array was about 10% full when this happened.
>
> I'm checking what I can recover, but my home directory was on there, and I
> only had partial backups. I have restored what was in the backups, but a
> lot of files I hoped were backed up weren't.
>
> Is there some miracle that can be performed on with this?
I don't think so. In cases like this, the first thing to do is to
make a copy of the damaged filesystem, and work on the copy. If
you're lucky, a tool like e2retrieve might be able to salvage some
more data than fsck (http://coredump.free.fr/linux/e2retrieve.php).
--
Måns Rullgård
mru@kth.se
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-29 20:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-29 19:36 Possible to recover this Raid 5 Array? Mike Fedyk
2003-10-29 20:48 ` Måns Rullgård
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox