Just a reminder for myself on how to rebuild degraded 3ware arrays on some of my linux machines with the cli tool.
Scenario:
The degraded drive is connected to port 2.
The drive is connected to controller 0.
Port 0 is member of unit 0.
- Remove the drive
tw_cli maint remove c0 p2
- Now replace the drive
- Enable the new drive
tw_cli maint rescan c0
- Assign the drive to a temporary unit
tw_cli maint createunit c0 rspare p2
- rebuild the array
tw_cli maint rebuild c0 u0 p2