Bad blocks in raid5 disk



I have the following situation:

3 harddisks, 2 P-ATA, 1 SATA. All 160 GB disks, not relevant I think)
/dev/hda, dev/hdb, /dev/sda

On each disk a 20GB partition (type fd) that is used in a software raid5 array /dev/md0. (/dev/hda5, /dev/hdb3, /dev/sda2)

My / is mounted on this raid volume.

Suddenly I got swamped in messages indicating disk problems on /dev/sda2
(Driveseek, Read errors)

(Temporarily stopped mdmonitor and auditd, as my system became almost totally unresponsive, as each error produces another message.)

Failed the /dev/sda2 device (mdadm /dev/md0 --fail /dev/sda2 --remove /dev/sda2)

Tried to fsck the partition but can't. There seems to be no fstype suited for checking a 'raid auto' partition.

Ran badblocks on the device and found bad blocks.
I'll buy a new disk asap.

For the time being : (how) Can I use fsck on this fd- partition to map out the bad sectors ? Since the SATA-device is treated 'as scsi', does the driver itself take care of the bad block relocation? How can I best proceed, given the fact the drive cannot be replaced until next week or so ? I found some wish-list for mdadm, so I assume this driver isn't fully developed yet. I'd rather have tools to 'repair' the thing from within the raid array. Is that possible ??

Thanks
Sh.



.



Relevant Pages

  • slackware 9.1 software raid problem
    ... Setting up a RAID system with Slackware 8 is not extremely difficult once ... mirroring the root partition and booting from that mirror was not possible. ... Each disk is attached to a different IDE chain on the motherboard. ... The ability to boot from the Slackware 8 install CD. ...
    (alt.os.linux)
  • Re: Un-RAID on ICH8R?
    ... These are the supported migrations in Intel Matrix RAID. ... Would adding an extra disk and making it a recovery partition help? ...
    (alt.comp.hardware.pc-homebuilt)
  • Help! Repairing a RAID 1 dynamic disk
    ... Its a Dell Windows 2000 server with two SCSI hard drives running ... The two drives are configured with dynamic disk and software RAID ... The disk 0's C:OS partition is no longer synced to the disk 1's ...
    (microsoft.public.windows.server.general)
  • Help! Repairing a RAID 1 dynamic disk
    ... Its a Dell Windows 2000 server with two SCSI hard drives running ... The two drives are configured with dynamic disk and software RAID ... The disk 0's C:OS partition is no longer synced to the disk 1's ...
    (microsoft.public.windows.server.sbs)
  • Re: Help! Repairing a RAID 1 dynamic disk
    ... Its a Dell Windows 2000 server with two SCSI hard drives running ... The two drives are configured with dynamic disk and software RAID ... The disk 0's C:OS partition is no longer synced to the disk 1's ...
    (microsoft.public.windows.server.sbs)