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.

//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    DEGRADED       -      64K     1396.95   OFF    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     NOT-PRESENT      -      -           -             -
p6     OK               u1     465.76 GB   976773168     WD-WCAPW5103756
p7     OK               u1     465.76 GB   976773168     WD-WCANU1125288     

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

//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    DEGRADED       -      64K     1396.95   OFF    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     OK               -      465.76 GB   976773168     WD-WCAPW2252807
p6     OK               u1     465.76 GB   976773168     WD-WCAPW5103756
p7     OK               u1     465.76 GB   976773168     WD-WCANU1125288     

//cdfs> /c0/u1 start rebuild disk=5 ignoreecc
Sending rebuild start request to /c0/u1 on 1 disk(s) [5] ... Done.

//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    REBUILDING     0      64K     1396.95   OFF    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     DEGRADED         u1     465.76 GB   976773168     WD-WCAPW2252807
p6     OK               u1     465.76 GB   976773168     WD-WCAPW5103756
p7     OK               u1     465.76 GB   976773168     WD-WCANU1125288     

//cdfs>  

No comments:

Post a Comment