The "rebuild" part is trivial and automatic: it's part of the in-kernel RAID code. The script, on the other hand, is needed to tell the in-kernel RAID code what to do, and with which drive(s) to do it. That part gets hairy rather quickly, especially for folks unfamiliar with Linux's /sysfs and hot plug weirdnesses.

Originally Posted By: tman
Whilst the mirror is repairing itself, you won't have any redundancy and the performance will be bad.

If it's a >= 3 drive RAID1, then there's still redundancy while the one new drive is sync'd.

Cheers