Attempted raid check for check_mk and OS X server

home | blog | Terrible people and places | Covid-19 links | Teh Internet | guest blog |rants | placeholder | political | projects | Gwen and Liam | Citadel patched | Tools | Scouts

This sorta works:
Warning - did not test on failed software raid yet.
Tweaked for OS X 10.9 and later.

To replace a failed drive - software raid 1 assumed:

diskutil list (get new disk name)
diskutil appleraid list (get UUIDOFRAID)
diskutil appleraid add member diskX UUIDOFRIAD
diskutil appleraid remove UUIDOFFAILEDDISK UUIDOFRAID

disktuil checkRAID
(to see rebuild progress)