User Tools

Site Tools


pages:cheatsheets:3ware_tw_cli

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
pages:cheatsheets:3ware_tw_cli [2021/01/29 15:06] – created mischerhpages:cheatsheets:3ware_tw_cli [2021/01/30 13:24] (current) – [Sources] mischerh
Line 2: Line 2:
 ====== 3Ware tw_cli Cheat Sheet ====== ====== 3Ware tw_cli Cheat Sheet ======
  
 +===== Sources =====
 +  * https://www.sysadminslife.com/linux/howto-3ware-raid-status-anzeigen-und-festplatte-tauschen-mit-tw_cli/
 +  * https://www.thomas-krenn.com/de/wiki/3Ware_CLI_Einf%C3%BChrung
 +  * https://www.thomas-krenn.com/de/wiki/RAID_Status_abfragen#3ware
 +  * [[https://wiki.nanoscopic.de/html/tw_cli.html|tw_cli man page]] (local copy)
 +  * https://getmoven.com/index.php/knowledgebase/43/tw_cli-3ware-Command-Line-Utility.html
 +
 +===== where it actually is =====
 +/opt/3ware/CLI/tw_cli
 +
 +===== HowTo =====
 +create RAID5 with disks 0-4                                                                                             
 +<sxh bash; gutter: false>/c0 add type=raid5 disk=0-4</sxh>
 +
 +create RAID5 with disks 0-4, with name "data", "autoverify" set to "on", "Storesafe" set to "performance"
 +<sxh bash; gutter: false>/c0 add type=raid5 disk=0-4 name=Data autoverify storsave=perform</sxh>
 +
 +add a hot spare to a controller (must have at least the same capacity as the biggest disk connected to the controller)
 +<sxh bash; gutter: false>/cx add type=spare disk=x</sxh>
 +
 +show basic info about the controller, connected disks and BBU
 +<sxh bash; gutter: false>/c0 show</sxh>
 +
 +display information about a specific unit                                                                               
 +<sxh bash; gutter: false>/c0/u0 show</sxh>
 +
 +display alarm messages                                                                                                  
 +<sxh bash; gutter: false>/c0 show alarms</sxh>
 +
 +prints diagnostic information and writes it to a file
 +<sxh bash; gutter: false>tw_cli /c0 show diag > diag.txt</sxh>
 +
 +displays list of available commands                                                                                     
 +<sxh bash; gutter: false>
 +help
 +/c0 help
 +/c0/u0 help
 +quit
 +</sxh>
pages/cheatsheets/3ware_tw_cli.1611932770.txt.gz · Last modified: 2021/01/29 15:06 by mischerh