Howto: Installing 3Ware tw_cli RAID monitoring software utility

Posted on Updated on

3ware CLI is a command line interface for managing 3ware RAID Controllers. We can use the CLI to view unit status and version information and perform maintenance functions such as adding or removing drives. 3ware CLI also includes advanced features for creating and deleting RAID units online.

More useful commands here:

The 3ware CLI is supported under the following operating systems:
• Mac OS X 10.4.6 or later, running in a Mac Pro or Power Mac® G5
(PowerPC-based) with PCI Express®
• Windows®. Windows 2000, Windows XP, and Windows Server 2003,
both 32-bit and 64-bit.
• Linux®. Redhat, SuSE, both 32-bit and 64-bit.
• FreeBSD®, both 32-bit and 64-bit.

Installation steps

root@drupaldedicated:~# vi /etc/apt/sources.list

Add the following lines in end of the line

# 3Ware

deb lenny restricted

root@drupaldedicated:~# wget -O - | apt-key add -
root@drupaldedicated:~# apt-get update
root@drupaldedicated:~# apt-cache search 3ware
root@drupaldedicated:~# aptitude install 3ware-3dm2-binary 3ware-cli-binary 
root@drupaldedicated:~# cd /etc/3dm2 
root@drupaldedicated:~# cp 3dm2.conf 3dm2.conf-dist
root@drupaldedicated:~# vi 3dm2.conf

Edit 3dm2.conf

set :  RemoteAccess 1

root@drupaldedicated:~# /etc/init.d/3dm2 restart

Browse to https://yourhost:888/
Select 3DM 2 Settings and change the default password 3ware to something secure. If you lock yourself out, you can copy the original config file back in place as it has the default password.

To initial checking RAID drives use the below commands.

root@drupaldedicated:~# tw_cli info


Ctl   Model        (V)Ports  Drives   Units   NotOpt  RRate   VRate  BBU
c0    8006-2LP     2         2        1       0       3       -      -   
root@drupaldedicated:~# tw_cli info

Output :

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
u0    RAID-1    OK             -       -       -       465.761   OFF    -      

Port   Status           Unit   Size        Blocks        Serial
p0     OK               u0     465.76 GB   976773168     WD-WMAYUE464012     
p1     OK               u0     465.76 GB   976773168     WD-WMAYUE397313

Type the following command to view smart information about the hard disk behind 3Ware RAID card, enter:

root@drupaldedicated:~# smartctl -a -d 3ware,0 /dev/twa0
root@drupaldedicated:~# smartctl -a -d 3ware,1 /dev/twa0

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s