Skip to content

Instantly share code, notes, and snippets.

@xezpeleta
Last active November 3, 2015 12:44
Show Gist options
  • Save xezpeleta/d2f0127370526aca0e46 to your computer and use it in GitHub Desktop.
Save xezpeleta/d2f0127370526aca0e46 to your computer and use it in GitHub Desktop.
3ware RAID disk health

3ware RAID disk health

First, install 3ware "tw-cli" utilty with apt-get from: http://hwraid.le-vert.net/

Now, show your RAID controllers

$ tw-cli show

Ctl   Model        (V)Ports  Drives   Units   NotOpt  RRate   VRate  BBU
------------------------------------------------------------------------
c0    9650SE-4LPML 4         4        1       0       1       1      -   

Let's get more info about your controller c0

$ tw-cli /c0 show


Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-10   OK             -       -       64K     931.303   OFF    OFF   

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     465.76 GB   976773168     9VMM1ZJP           
p1     OK               u0     465.76 GB   976773168     WD-WCAYUE058748    
p2     OK               u0     465.76 GB   976773168     9QM7G2A0           
p3     OK               u0     465.76 GB   976773168     6VV0C527 

Now, we can check reallocated sectors on disk p0

$ tw-cli /c0/p0 show rasect
/c0/p0 Reallocated Sectors = 0

It is possible to get more info from each disk:

  • /cx/px show temperature
  • /cx/px show spindlespd
  • /cx/px show rasect
  • /cx/px show pohrs

For temperature, spindle speed, reallocated sectors, and power-on hours, respectively. You may also use '/cx/px show all' for all of the drive attributes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment