Tuesday, April 17, 2012

How to replace an Raid Disk?

Replacement of Raid Disk:

[root@cdfs tw_cli]# ./tw_cli

//cdfs> info c0

Unit  UnitType  Status         %Cmpl  Stripe  Size(GB)  Cache  AVerify  IgnECC
------------------------------------------------------------------------------
u0    RAID-5    OK             -      64K     1396.95   ON     OFF      OFF
u1    RAID-5    OK             -      64K     1396.95   ON     OFF      ON       

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     465.76 GB   976773168     WD-WMASY6064174
p1     OK               u0     465.76 GB   976773168     WD-WCANU1090078
p2     OK               u0     465.76 GB   976773168     WD-WCANU1119743
p3     OK               u0     465.76 GB   976773168     WD-WCANU1089924
p4     OK               u1     465.76 GB   976773168     WD-WMASY8103731
p5     SMART-FAILURE    u1     465.76 GB   976773168     WD-WCANU1109927
p6     OK               u1     465.76 GB   976773168     WD-WCAPW5103756
p7     OK               u1     465.76 GB   976773168     WD-WCANU1125288     

//cdfs> maint remove c0 p5
Exporting port /c0/p5 ... Done.

Saturday, April 14, 2012

How to Add Raid Spare in 3ware?


Add Raid Spare:

[~]# ./tw_cli
//cp> info c8

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-5    OK             -       -       64K     1862.61   ON     OFF    

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     465.76 GB   976773168     WD-WCANU2126397
p1     OK               u0     465.76 GB   976773168     WD-WCANU2051520
p2     OK               u0     465.76 GB   976773168     WD-WCAS84972002
p3     OK               u0     465.76 GB   976773168     WD-WCAS84739115
p4     OK               u0     465.76 GB   976773168     WD-WCANU2114264
p5     OK               u?     465.76 GB   976773168     WD-WCANU2051215
p6     NOT-PRESENT      -      -           -             -
p7     NOT-PRESENT      -      -           -             -

//cp> rescan
Rescanning controller /c8 for units and drives ...Done.
Found the following unit(s): [/c8/u1].
Found the following drive(s): [none].