How to use TW CLI

TW_CLI is a powerful command-line utility designed for managing and configuring 3Ware RAID controllers. It provides administrators with full control over RAID arrays, disks, rebuild operations, and system monitoring directly from the terminal. Whether you’re maintaining production storage or performing advanced RAID configuration, TW_CLI gives you the flexibility and precision required in professional server environments.

 

Key Points

  • TW_CLI is a command-line utility for configuring and managing 3Ware RAID controllers.
  • The tool allows administrators to monitor controller status, disks, RAID units, and system health directly from the terminal.
  • TW_CLI supports RAID creation, disk export, rebuild operations, and spare disk configuration.
  • Using TW_CLI provides precise control over storage infrastructure without relying on graphical tools.

Getting Started with TW_CLI

TW_CLI is a CLI tool for 3Ware RAID cards configuration. It provides in-depth control, various RAID configurations, monitoring and general tweaking of the present devices.

The following are a few examples of some useful commands.

You can either invoke the tool by 1. inserting tw_cli followed by enter or 2. run the commands directly by including the tw_cli as the first argument.

  1. tw_cli > Enter > //hostname > show.
  2. tw_cli show > output on new line.

Common TW_CLI Commands

* Show controller details and configuration

tw_cli help

* List controllers

tw_cli show

Ctl   Model        (V)Ports  Drives   Units   NotOpt  RRate   VRate  BBU
------------------------------------------------------------------------
c0    9750-4i      36        36       4       0       1       1      OK

* Show controller and configuration info

tw_cli info c0

* Remove drive from configuration

tw_cli maint remove c0 p0

* Rescan devices

tw_cli maint rescan c0

* Export disk

tw_cli /c0/p0 export

* Send rebuild request

maint rebuild c0 u1 p0

* Delete unit

tw_cli maint deleteunit c0 u1

* Add disk as spare

tw_cli /c0 add raidtype=spare disk=2

Creating and Managing RAID Units

* Create a new RAID

tw_cli maint createunit c0 rraid1

* Create a new RAID 6 with a selection of disks

tw_cli maint createunit c0 rraid6 p01:5-30

* : is used as comma , – as interval

TW_CLI is an essential tool for administrators managing 3Ware RAID controllers in professional environments. From monitoring controller status and exporting disks to rebuilding arrays and creating new RAID configurations, the command-line interface offers precise and efficient control over your storage infrastructure.

If you’re looking for a reliable and performance-driven hosting environment to deploy and manage your RAID-based servers, consider working with a trusted European VPS Hosting Provider that delivers stability, flexibility, and full administrative access.

There are plenty more commands available , these are the basic essentials.
Enjoy!

Frequently Asked Questions About TW_CLI

What is TW_CLI used for?
TW_CLI is a command-line tool used to configure, monitor, and manage 3Ware RAID controllers. It allows administrators to control RAID arrays, check disk status, rebuild units, and modify configurations directly from the terminal.
How do I list available controllers using TW_CLI?
You can list available RAID controllers by running the command “tw_cli show”. This will display controller details such as model, ports, drives, units, and overall status information.
How do I create or rebuild a RAID unit with TW_CLI?
To create a new RAID unit, use commands such as “tw_cli maint createunit c0 rraid1” or specify a RAID level and disk range. To rebuild a unit, you can use “maint rebuild c0 u1 p0” to start the rebuild process on a selected disk.

About the author

mvps

MVPS.net provides reliable, high-quality VPS services at competitive prices. The team has extensive experience in virtualized environments and focuses on delivering consistent performance and stability. Services are available across multiple locations without compromising quality — feel free to get in touch to learn more.

By mvps

Categories