Skip to content

Instantly share code, notes, and snippets.

@bbg-deploy
Last active January 3, 2016 15:39
Show Gist options
  • Save bbg-deploy/8483790 to your computer and use it in GitHub Desktop.
Save bbg-deploy/8483790 to your computer and use it in GitHub Desktop.
[root@ds836 ~]# tw_cli /c0 show
Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-1 DEGRADED - - - 931.312 W OFF
u1 RAID-10 INOPERABLE - - 16K 1862.62 Ri ON
VPort Status Unit Size Type Phy Encl-Slot Model
------------------------------------------------------------------------------
p0 OK u0 931.51 GB SATA 0 - WDC WD1002FBYS-02A6
p1 OK u1 931.51 GB SATA 1 - WDC WD1002FBYS-02A6
Name OnlineState BBUReady Status Volt Temp Hours LastCapTest
---------------------------------------------------------------------------
bbu On Yes OK OK OK 129 xx-xxx-xxxx
[root@ds836 ~]# tw_cli /c0 deleteunit u1
Deleting unit c0/u1 ...Done.
[root@ds836 ~]# tw_cli /c0/p1 remove
Removing /c0/p1 will take the disk offline.
Do you want to continue ? Y|N [N]: y
Removing port /c0/p1 ... Done.
[root@ds836 ~]# tw_cli /c0 rescan
Rescanning controller /c0 for units and drives ...Done.
Found the following unit(s): [none].
Found the following drive(s): [/c0/p1].
[root@ds836 ~]# tw_cli maint rebuild c0 u0 p1
Sending rebuild start request to /c0/u0 on 1 disk(s) [1] ... Done.
[root@ds836 ~]# tw_cli /c0 show
Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-1 REBUILDING 11% - - 931.312 W OFF
VPort Status Unit Size Type Phy Encl-Slot Model
------------------------------------------------------------------------------
p0 OK u0 931.51 GB SATA 0 - WDC WD1002FBYS-02A6
p1 DEGRADED u0 931.51 GB SATA 1 - WDC WD1002FBYS-02A6
Name OnlineState BBUReady Status Volt Temp Hours LastCapTest
---------------------------------------------------------------------------
bbu On Yes OK OK OK 129 xx-xxx-xxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment