3ware
This has been tested on the following RAID controllers: 9690SA-8I
Please let me know in the comments if it worked for your specific controller, or if the instructions need updating for your model.
Downloading
First, you need to download the tool tw_cli
. This can be found on the Avago Technologies website*:
* Don't worry, it's not a third party website; 3ware was purchased by AMCC, and then later sold to the LSI Corporation, which later became part of Avago [source]. To back this up, note that 3ware.com redirects to the relevant page on avagotech.com.
Type tw_cli
into the search bar, then navigate around until you find a download named CLI Linux - from the 10.2.2.1/9.5.5.1 code sets
(the latest version number may be different than what is listed here)
Extract the zip file, and in either the x86
or x86_64
you will find the tw_cli
binary that you need. Save this binary to your server or computer.
Running tw_cli
NOTE: (1) The command-line utility may need to run as root. (2) Run it as you would any other binary by either adding it to the path, or by running it directly from the current directory with ./tw_cli
.
First, run tw_cli show
to list which RAID controllers are available on your system:
# tw_cli show
Ctl Model (V)Ports Drives Units NotOpt RRate VRate BBU
------------------------------------------------------------------------
c2 9690SA-8I 6 6 2 0 1 1 Charging
Here we can see there is one controller attached, with the id of c2
(remember this id!), which has 6 physical drives attached. To get more details about which drives are attached to the unit, run tw_cli /c2 show
(replacing /c2
with the ID of your controller):
# tw_cli /c2 show
Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-1 OK - - - 298.013 Ri ON
u1 RAID-5 OK - - 64K 2793.94 Ri ON
VPort Status Unit Size Type Phy Encl-Slot Model
------------------------------------------------------------------------------
p0 OK u0 298.09 GB SATA 0 - ST3320613AS
p1 OK u0 298.09 GB SATA 1 - ST3320613AS
p2 OK u1 931.51 GB SATA 2 - Hitachi HDS721010CL
p3 OK u1 931.51 GB SATA 3 - Hitachi HDS721010CL
p4 OK u1 931.51 GB SATA 4 - Hitachi HDS721010CL
p5 OK u1 931.51 GB SATA 5 - Hitachi HDS721010CL
The first group shows the RAID setups being used. The second group shows which drives are currently physically attached to the server.
In this particular case, I have two RAID configurations:
u0
-> Drives p0
and p1
are both 300 GB drives by the same manufacturer, set up to use RAID-1 (exact mirrors of each other)
u1
-> I have four 1TB Hitachi drives (p2
through p5
) set up using RAID-5 ("one of the drives" is used to make sure data is preserved if any one of the other drives fails). This means (as we can see from the top), u1
has 3TB (or, rather, 2793.94 GB
) of usable data.
Even more information about the status and health of the drives can be found by running tw_cli /c2/u0 show
or tw_cli /c2/p0 show
. More details and commands can be found in the man pages.