RAID 5 with bad blocks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Lasse Jensen
Date: Friday, September 17, 2010 - 3:52 am

I have a software RAID 5 array consisting of 3 1.5 tb drives. A couple
of days ago the array went offline. I turned the server off to
investigate and noticed one of the SATA power connectors had fallen
out of the drive. I rebooted and tried to bring the array back up with

mdadm -Af -vv /dev/md0 /dev/sdb /dev/sdc /dev/sdd

It brought the array back with sdc and sdd, sdb being the one where
the connector fell out. I used

mdadm -a /dev/md0 /dev/sdb

to re-add sdb to the array and it started rebuilding. But sdc have bad
blocks and both sdb and sdc get offlined at some point in (atleast 35%
into) the process. mdadm --examine /dev/sdb told me the drive had been
offlined for 5 days and i think the reason the array crashed was due
to the bad blocks on sdc, not sdb loosing power. How do i proceed from
here? On which device should i run badblocks? The raw device or the
array? I have a encrypted LVM container and a ext4 filesystem on top
of the array.


--
Lasse Jensen (fafler at gmail dot com)
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RAID 5 with bad blocks, Lasse Jensen, (Fri Sep 17, 3:52 am)