<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=3ware_controller</id>
	<title>3ware controller - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=3ware_controller"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=3ware_controller&amp;action=history"/>
	<updated>2026-05-16T11:25:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=3ware_controller&amp;diff=5&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; === CLI tools === ==== tw_cli ==== *install tw_cli **tw_cli has an interactive mode also *dispaly all controllers &lt;pre&gt; ./tw_cli show Ctl   Model        Ports   Drives...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=3ware_controller&amp;diff=5&amp;oldid=prev"/>
		<updated>2015-08-26T12:28:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; === CLI tools === ==== tw_cli ==== *install tw_cli **tw_cli has an interactive mode also *dispaly all controllers &amp;lt;pre&amp;gt; ./tw_cli show Ctl   Model        Ports   Drives...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
=== CLI tools ===&lt;br /&gt;
==== tw_cli ====&lt;br /&gt;
*install tw_cli&lt;br /&gt;
**tw_cli has an interactive mode also&lt;br /&gt;
*dispaly all controllers&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./tw_cli show&lt;br /&gt;
Ctl   Model        Ports   Drives   Units   NotOpt   RRate   VRate   BBU&lt;br /&gt;
------------------------------------------------------------------------&lt;br /&gt;
c0    9550SXU-16ML 16      16       3       1        1       1       OK&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*display detailed info of the controllers&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./tw_cli /c0 show all&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*show last messages&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./tw_cli /c0 show alarms&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Problem solving ===&lt;br /&gt;
==== Incomplete unit detected ====&lt;br /&gt;
*the cause of this is eg a broken disk or a disk that lost connection with the controller&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
c0 [...] WARNING   Incomplete unit detected: unit=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**check further messages for if rebuild was sucesful (in case of raid5+hot spare)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
c0   [...]  INFO      Rebuild started: unit=1&lt;br /&gt;
c0   [...]  INFO      Rebuild completed: unit=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*try to locate the disk&lt;br /&gt;
**be careful when doing this. best way is to fake activity (on both raid and system disks) and check the activity leds of the disks to see which one is missing!&lt;br /&gt;
*unplug and replug the disk&lt;br /&gt;
**check messages if it was detected&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
c0   [...]  INFO      Drive inserted: port=12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
*if the disk was broken, get a new one first!&lt;br /&gt;
*if it was only a connection lost, the drive will reappear as a INOPERABLE raid unit (eg u2 in the following example)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy&lt;br /&gt;
------------------------------------------------------------------------------&lt;br /&gt;
u0    RAID-1    OK             -       -       -       74.4951   ON     OFF&lt;br /&gt;
u1    RAID-5    OK             -       -       64K     5587.82   ON     OFF&lt;br /&gt;
u2    RAID-5    INOPERABLE     -       -       64K     5587.82   OFF    OFF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**this is not the real raid setup, the controller just detected that the disk was part of a raid set before&lt;br /&gt;
**you need to remove the INOPERABLE unit &lt;br /&gt;
**doublecheck the name of the unit!! (in the example only disk 12 is part of the unit)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./tw_cli /c0/u2 show&lt;br /&gt;
Unit     UnitType  Status         %RCmpl  %V/I/M  Port  Stripe  Size(GB)&lt;br /&gt;
------------------------------------------------------------------------&lt;br /&gt;
u2       RAID-5    INOPERABLE     -       -       -     64K     5587.82&lt;br /&gt;
u2-0     DISK      DEGRADED       -       -       -     -       465.651&lt;br /&gt;
u2-1     DISK      DEGRADED       -       -       -     -       465.651&lt;br /&gt;
u2-2     DISK      OK             -       -       p12   -       465.651&lt;br /&gt;
u2-3     DISK      DEGRADED       -       -       -     -       465.651&lt;br /&gt;
u2-4     DISK      DEGRADED       -       -       -     -       465.651&lt;br /&gt;
u2-5     DISK      DEGRADED       -       -       -     -       465.651&lt;br /&gt;
u2-6     DISK      DEGRADED       -       -       -     -       465.651&lt;br /&gt;
u2-7     DISK      DEGRADED       -       -       -     -       465.651&lt;br /&gt;
u2-8     DISK      DEGRADED       -       -       -     -       465.651&lt;br /&gt;
u2-9     DISK      DEGRADED       -       -       -     -       465.651&lt;br /&gt;
u2-10    DISK      DEGRADED       -       -       -     -       465.651&lt;br /&gt;
u2-11    DISK      DEGRADED       -       -       -     -       465.651&lt;br /&gt;
u2-12    DISK      DEGRADED       -       -       -     -       465.651&lt;br /&gt;
u2/v0    Volume    -              -       -       -     -       5587.82&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**remove the unit&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./tw_cli /c0/u2 del&lt;br /&gt;
Deleting /c0/u2 will cause the data on the unit to be permanently lost.&lt;br /&gt;
Do you want to continue ? Y|N [N]: Y&lt;br /&gt;
Deleting unit c0/u2 ...Done.&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
**reassign the disk to act as a spare &lt;br /&gt;
**check the disk name &lt;br /&gt;
***in this example the disk is called &amp;lt;tt&amp;gt;12&amp;lt;/tt&amp;gt; on port &amp;lt;tt&amp;gt;p12&amp;lt;/tt&amp;gt;&lt;br /&gt;
***the &amp;lt;tt&amp;gt;Belongs to Unit = N/A&amp;lt;/tt&amp;gt; part indicates that the disk is not used elsewhere&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./tw_cli /c0/p12 show all&lt;br /&gt;
/c0/p12 Status = OK&lt;br /&gt;
/c0/p12 Model = WDC WD5000YS-01MPB0&lt;br /&gt;
/c0/p12 Firmware Version = 09.02E09&lt;br /&gt;
/c0/p12 Serial = WD-WMANU1674499&lt;br /&gt;
/c0/p12 Capacity = 465.76 GB (976773168 Blocks)&lt;br /&gt;
/c0/p12 Identify Status = N/A&lt;br /&gt;
/c0/p12 SATA Link Speed Supported = 1.5 Gb/s and 3.0 Gb/s&lt;br /&gt;
/c0/p12 SATA Link Speed = 3.0 Gb/s&lt;br /&gt;
/c0/p12 NCQ Supported = Yes&lt;br /&gt;
/c0/p12 NCQ Enabled = Yes&lt;br /&gt;
/c0/p12 Belongs to Unit = N/A&lt;br /&gt;
&lt;br /&gt;
/c0/p12 Drive Smart Data:&lt;br /&gt;
10 00 01 0F 00 64 FD 00 00 00 00 00 00 00 03 03&lt;br /&gt;
00 DF DF B8 16 00 00 00 00 00 04 32 00 64 64 09&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
**set the disk as spare&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./tw_cli /c0 add type=spare disk=12&lt;br /&gt;
Creating new unit on controller /c0 ...  Done. The new unit is /c0/u2.&lt;br /&gt;
&amp;lt;/pre&amp;gt;  &lt;br /&gt;
***check the result&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
./tw_cli /c0 show&lt;br /&gt;
&lt;br /&gt;
Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy&lt;br /&gt;
------------------------------------------------------------------------------&lt;br /&gt;
u0    RAID-1    OK             -       -       -       74.4951   ON     OFF&lt;br /&gt;
u1    RAID-5    OK             -       -       64K     5587.82   ON     OFF&lt;br /&gt;
u2    SPARE     OK             -       -       -       465.753   -      OFF&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
**if the disk was a datadisk, all is ok&lt;br /&gt;
**if it was an operating disk that was broken, a datadisk will be used a spare for the RAID1&lt;br /&gt;
***but using the new spare disk won&amp;#039;t work as a spare for the datadisks (as the size is lower)&lt;br /&gt;
***you need to locate the datadisk of the OS RAID1 and disable it, eg by removing it&lt;br /&gt;
***make sure there are 2 OS disks!!&lt;br /&gt;
***the new spare will be used to rebuild the RAID1&lt;br /&gt;
***reinsert the datadisk disk and repeat the above procedure to reassign it as a spare disk&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>