Skip to content

Installing tw-cli on Debian

Description (from man page)

tw_cli(8) is a Command Line Interface Storage Management Software for 3ware ATA RAID Controller(s). It provides controller, logical unit and drive management. tw_cli can be used in both interactive and batch mode, providing higher-level API (Application Programming Interface) functionalities.

Installing

echo -e "\n# 3ware raid adapter\ndeb http://hwraid.le-vert.net/debian stretch main" >> /etc/apt/sources.list
apt-get update
apt-get install tw-cli

I have this controller (output from lspci):

04:00.0 RAID bus controller: 3ware Inc 9750 SAS2/SATA-II RAID PCIe (rev 05)

Quick test:

root@ns:~# tw-cli /c0 show

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-10   OK             -       -       256K    447.014   RiW    ON     

VPort Status         Unit Size      Type  Phy Encl-Slot    Model
------------------------------------------------------------------------------
p0    OK             u0   223.57 GB SATA  0   -            GOODRAM C40         
p1    OK             u0   223.57 GB SATA  1   -            GOODRAM C40         
p2    OK             u0   223.57 GB SATA  2   -            GOODRAM C40         
p3    OK             u0   223.57 GB SATA  3   -            GOODRAM C40         
Published inLinux