Réparer un raid hardware DEGRADED avec tw_cli

15.11.2008 0

Un ptit memo pour réutilisation future éventuelle :)


server bin # ./tw_cli info c0 u0

Unit UnitType Status %RCmpl %V/I/M Port Stripe Size(GB)
------------------------------------------------------------------------
u0 RAID-1 DEGRADED - - - - 232.885
u0-0 DISK DEGRADED - - p0 - 232.885
u0-1 DISK OK - - p1 - 232.885

server bin # ./tw_cli maint remove c0 p0
Removing port /c0/p0 ... Done.

server bin # ./tw_cli maint rescan
Rescanning controller /c0 for units and drives ...Done.
Found the following unit(s): [none].
Found the following drive(s): [/c0/p0].

server bin # ./tw_cli info c0

Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-1 DEGRADED - - - 232.885 ON -

Port Status Unit Size Blocks Serial
---------------------------------------------------------------
p0 OK - 232.88 GB 488397168 GEL231RB07BB9B
p1 OK u0 232.88 GB 488397168 GEL231RB05N20B

server bin # ./tw_cli info c0 u0

Unit UnitType Status %RCmpl %V/I/M Port Stripe Size(GB)
------------------------------------------------------------------------
u0 RAID-1 DEGRADED - - - - 232.885
u0-0 DISK DEGRADED - - - - 232.885
u0-1 DISK OK - - p1 - 232.885

server bin # ./tw_cli maint rebuild c0 u0 p0
Sending rebuild start request to /c0/u0 on 1 disk(s) [0] ... Done.

server bin # ./tw_cli info c0

Unit UnitType Status %RCmpl %V/I/M Stripe Size(GB) Cache AVrfy
------------------------------------------------------------------------------
u0 RAID-1 REBUILDING 0 - - 232.885 ON -

Port Status Unit Size Blocks Serial
---------------------------------------------------------------
p0 DEGRADED u0 232.88 GB 488397168 GEL231RB07BB9B
p1 OK u0 232.88 GB 488397168 GEL231RB05N20B

server bin # ./tw_cli info c0 u0

Unit UnitType Status %RCmpl %V/I/M Port Stripe Size(GB)
------------------------------------------------------------------------
u0 RAID-1 REBUILDING 0 - - - 232.885
u0-0 DISK DEGRADED - - p0 - 232.885
u0-1 DISK OK - - p1 - 232.885

server bin # ./tw_cli info c0 u0

Unit UnitType Status %RCmpl %V/I/M Port Stripe Size(GB)
------------------------------------------------------------------------
u0 RAID-1 REBUILDING 6 - - - 232.885
u0-0 DISK DEGRADED - - p0 - 232.885
u0-1 DISK OK - - p1 - 232.885


 Olivier PIERRE, freelance au Luxembourg Analyste développeur PHP/MySQL/jQuery et administrateur système Linux spécialiste Gentoo


Les messages similaires