[mdlug] ext3 - fixing bad block in RAID 1 on root file system.

Stan Green Stan at mcomputersolutions.com
Mon Dec 22 21:01:18 EST 2008


Thanks everyone for the help.

I got to thinking that if the rebuild was 99% done, maybe the data was all 
copied. I am happy to say it was. Knoppix to the rescue! 
So I set the partition back to linux (83) edited grub.conf, fstab, and 
mdadm.conf. Then ran grub to make the drive bootable. 

I'm happy to say the system is up and running, however only on one drive. New 
drives are in the mail.

I'm sure a scrub is in the furture of this and all my RAID boxes!

Regards,
Stan Green

On Monday 22 December 2008 18:17, you wrote:
> worst case, you can use dump & restore (or pick your favorite backup
> & restore tools) to copy from the mostly-working drive to a new drive.
> Should be able to keep going past errors.
>
> while you are dorking with it, you might want to just build up a
> fresh fedora 10 system and copy your user data off the existing
> drive.
>
> In the future to hopefully avoid this kind of problem, scrub
> your RAIDs regularly:
>
>    http://wiki.xdroop.com/space/Linux/Software+Raid+Scrub
>
> Note that this applies for hardware raid as well as software raid,
> although obviously it's a different process to scrub HW raid.
>
> On Sun, Dec 21, 2008 at 09:40:06PM -0500, Stan Green wrote:
> > I have a ext3 file system, which is the root FS, on a RAID 1 array where
> > one drive failed.  No problem, I replace it and the array starts to
> > rebuild. It gets to 99% done and finds a bad block on the source drive.
> > So, it starts over going into an endless rebuild loop.
> >
> > I booted to Knoppix and ran e2fsck -cc (Should this have been -c ?) on
> > the partition,  /dev/hda1, (not the RAID array), but that did not work.
> > The rebuild still found the bad block.
> >
> > So, I need to some how mark the block bad (I have the number) so that the
> > RAID rebuild will complete.
> >
> > The system seems to run fine with the bad block, it just will not rebuild
> > the RAID array. The distro is Fedora 6.
> >
> > Any ideas here?
> >
> > FYI: Yes I am replacing the source drive as soon as I get the the RAID
> > array working again.
> >
> > Thanks,
> > Stan
> > _______________________________________________
> > mdlug mailing list
> > mdlug at mdlug.org
> > http://mdlug.org/mailman/listinfo/mdlug
>
> danno
> --
> dan pritts
> danno at umich.edu
> 734-929-9770



More information about the mdlug mailing list