{"id":2906,"date":"2019-06-04T16:55:24","date_gmt":"2019-06-04T08:55:24","guid":{"rendered":"http:\/\/www.banbanli.net\/blog\/?p=2906"},"modified":"2019-08-22T18:06:18","modified_gmt":"2019-08-22T10:06:18","slug":"how-to-use-tw-cli","status":"publish","type":"post","link":"http:\/\/www.banbanli.net\/blog\/?p=2906","title":{"rendered":"How to use TW CLI"},"content":{"rendered":"<p>How to use TW CLI<br \/>\nhttps:\/\/www.mvps.net\/docs\/how-to-use-tw-cli\/<\/p>\n<p>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.<\/p>\n<p>The following are a few examples of some useful commands.<\/p>\n<p>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.<\/p>\n<p>tw_cli > Enter > \/\/hostname > show.<br \/>\ntw_cli show > output on new line.<br \/>\n* Show controller details and configuration<br \/>\n<!--more--><\/p>\n<p>tw_cli help<br \/>\n* List controllers<\/p>\n<p>tw_cli show<\/p>\n<p>Ctl   Model        (V)Ports  Drives   Units   NotOpt  RRate   VRate  BBU<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nc0    9750-4i      36        36       4       0       1       1      OK<\/p>\n<p>* Show controller and configuration info<br \/>\ntw_cli info c0<\/p>\n<p>* Remove drive from configuration<br \/>\ntw_cli maint remove c0 p0<\/p>\n<p>* Rescan devices<br \/>\ntw_cli maint rescan c0<\/p>\n<p>* Export disk<br \/>\ntw_cli \/c0\/p0 export<\/p>\n<p>* Send rebuild request, p0 is the new drive in degree mode.<br \/>\ntw_cli maint rebuild c0 u1 p0<\/p>\n<p>* Delete unit<br \/>\ntw_cli maint deleteunit c0 u1<\/p>\n<p>* Add disk as spare<br \/>\ntw_cli \/c0 add raidtype=spare disk=2<\/p>\n<p>* Create a new RAID<br \/>\ntw_cli maint createunit c0 rraid1<\/p>\n<p>* Create a new RAID 6 with a selection of disks<br \/>\ntw_cli maint createunit c0 rraid6 p01:5-30<\/p>\n<p>* : is used as comma , \u2013 as interval<\/p>\n<p>There are plenty more commands available , these are the basic essentials.<br \/>\nEnjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to use TW CLI https:\/\/www.mvps.net\/docs\/how-to-use-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 &hellip; <a href=\"http:\/\/www.banbanli.net\/blog\/?p=2906\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to use TW CLI<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6,17],"tags":[],"class_list":["post-2906","post","type-post","status-publish","format-standard","hentry","category-computer","category-linux","category-storage"],"_links":{"self":[{"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2906","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2906"}],"version-history":[{"count":3,"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2906\/revisions"}],"predecessor-version":[{"id":3129,"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2906\/revisions\/3129"}],"wp:attachment":[{"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2906"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.banbanli.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}