http://atrpms.net/dist/common/tw_cli/
After one of the RAID-1 HDDs replacement on the fly (hotplug) we have got the following picture:
- Code: Select all
tw_cli info c0
Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-1 DEGRADED - - - 465.761 ON -
u1 JBOD OK - - - 465.762 ON -
Port Status Unit Size Blocks Serial
---------------------------------------------------------------
p0 OK u0 465.76 GB 976773168 5Q****Q0
p1 OK u1 465.76 GB 976773168 9Q****3A
First of all, we need to delete newly detected as JBOD unit:
- Code: Select all
tw_cli maint deleteunit c0 u1
Deleting unit c0/u1 ...Done.
- Code: Select all
tw_cli info c0
Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-1 DEGRADED - - - 465.761 ON -
Port Status Unit Size Blocks Serial
---------------------------------------------------------------
p0 OK u0 465.76 GB 976773168 5Q****Q0
p1 OK - 465.76 GB 976773168 9Q****3A
- Code: Select all
tw_cli info c0 u0
Unit UnitType Status %RCmpl %V/I/M Port Stripe Size(GB)
------------------------------------------------------------------------
u0 RAID-1 DEGRADED - - - - 465.761
u0-0 DISK OK - - p0 - 465.761
u0-1 DISK DEGRADED - - - - 465.761
Having this done we are starting RAID-1 rebuild process to the p1 port`s HDD:
- Code: Select all
tw_cli maint rebuild c0 u0 p1
Sending rebuild start request to /c0/u0 on 1 disk(s) [1] ... Done.
- Code: Select all
tw_cli info c0
Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-1 REBUILDING 0 - - 465.761 ON -
Port Status Unit Size Blocks Serial
---------------------------------------------------------------
p0 OK u0 465.76 GB 976773168 5Q****Q0
p1 DEGRADED u0 465.76 GB 976773168 9Q****3A
https://twiki.cern.ch/twiki/bin/view/FIOgroup/DiskWinTwSystemJbodRaid1
http://www.experts-exchange.com/OS/Linux/Q_24379307.html
http://trainofthoughts.org/blog/2007/09/26/server-locksmith/