Mario 'BitKoenig' Holbe wrote: > David Greaves <david@xxxxxxxxxxxx> wrote: >> The main issue is that the drive being replaced almost certainly has a bad >> block. > > Then, the replacement is not pro-active ;) > >> This block could be recovered from the raid5 set but won't be. > > This is what 'check' and 'repair' operations > (/sys/block/md*/md/sync_action) can be used for. Well, yes and no. If I have a bad block then I could use the remaining disks to calculate data to overwrite it. So yes. However the overwrite may fail. So no. If I have an md managed mirror then the overwrite will write to the new disk and the old one. I don't care if the old one fails. David -- "Don't worry, you'll be fine; I saw it work in a cartoon once..." -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html