Sunday, June 7, 2009

rebuild 3ware array

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.

  1. Remove the drive
    tw_cli maint remove c0 p2
  2. Now replace the drive
  3. Enable the new drive
    tw_cli maint rescan c0
  4. Assign the drive to a temporary unit
    tw_cli maint createunit c0 rspare p2
  5. rebuild the array
    tw_cli maint rebuild c0 u0 p2