Tag Archives: RAID

Replace a failed disk on a 3ware RAID

I had an old Debian GNU/Linux system with a 3ware RAID controller. Having to figure out how to properly replace the failed disk was a pain. You can manipulate the RAID array, without rebooting to the controller bios, with the 3waretwi_cli command line tool.

For this example, we will assume that port6 on the first controller has failed. Tell the controller to remove the disk, then physically remove the disk:
# ./tw_cli /c0/p6 remove

Now physically insert your replacement disk and scan for it:
# ./tw_cli /c0 show
# ./tw_cli /c0 rescan

Issue the command to start rebuilding the array onto the new disk in port6:
# ./tw_cli /c0/u0 start rebuild disk=p6 ignoreECC

If you need to, pause and resume the rebuild:
# ./tw_cli /c0/u0 pause rebuild
# ./tw_cli /c0/u0 resume rebuild

Check the rebuild progress and RAID health:
# ./tw_cli /c0 show

##### FOR WINDOWS #####

./tw_cli maint rebuild c1 u0 p2