Replace a failed disk in a Disk Utility RAID 1

disk-utilityraid

I have LaCie 2big thunderbolt 2-disk device configured as a RAID1 from Disk Utility. One of the drives appears as "failed", so I unmounted the raid, replaced the drive and plugged it all back in.

Now Disk utility reports that one of the slices is missing from the RAID, and it shows my new disk separately on the list to the left.

The "slices", including the missing one, have a lock icon in front of them, and even after dragging my new disk to the list I can't rebuild the raid.

How do I rebuild the raid?

Best Answer

I was unable to find how to rebuild the RAID from disk utility after a couple of hours of research. However, I managed to do it from the command line.

sudo diskutil list  // to get a list of disks. Note the disk number of your new disk (e.g. disk4)
sudo diskutil appleraid list // note the uuid of the raid in question
sudo diskutil appleraid add member disk4 UUID-OF-YOUR-RAID

It will then kick you back to disk utility and start rebuilding the raid :)

Also, if the failed disk remains on the list, you can remove it:

diskutil appleraid remove UUID-OF-FAILED-DISK UUID-OF-RAID