The tw_cli from 3Ware for all the 3WARE Controllers is a
little bit tricky.
Here are some examples how to use tw_cli:
tw_cli
//irena>info
Ctl Model Ports Drives Units NotOpt RRate VRate BBU
------------------------------------------------------------------------
c0 8506-4LP 4 3 1 0 3 - -
The
info command is usefull for checking how many controller are available.
//irena>/c0 show
Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-5 OK - - 64K 298.099 ON -
Port Status Unit Size Blocks Serial
---------------------------------------------------------------
p0 OK u0 149.05 GB 312581808 0696J1FX608399
p1 OK u0 149.05 GB 312581808 0696J1FX611330
p2 NOT-PRESENT - - - -
p3 OK u0 149.05 GB 312581808 0696J1FX611304
The
/c0 show command display which raid units and disks avilable on controller 0.
For the second controller in the system please type
/c1 show.
//irena>/c0/u0 start verify
Sending start verify message to /c0/u0 ... Done.
The
/c0/u0 start verify command starts an Raid verify on Controller 0 Unit 0.
//irena>/c0/u0 start rebuild disk=1
Sending rebuild start request to /c0/u0 on 1 disk(s)
The command
/c0/u0 start rebuild disk=1 starts the rebuild on controller 0, unit 0 and disk 1 (on port 1).
If you are using debian, you can use my debian packages, please see
here!