Changes between Version 1 and Version 2 of 3wareRaid


Ignore:
Timestamp:
03/17/10 11:38:48 (9 years ago)
Author:
joshuadf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 3wareRaid

    v1 v2  
    8080Exporting port /c0/p0 ... Done.
    8181}}}
    82 Then pull and replace the drive (verify the Serial on the drive sticker), rescan, and rebuild.
    83 It probably would be best to do this via the 3ware BIOS (`Alt-3` on boot) since last time Linux recognized the new physical drive as `sda`, making a mess of `fstab`.
    84 {{{
    85 [root@vagal ]# tw_cli maint createunit c0 rspare p0
    86 Creating new unit on controller /c0 ...  Done. The new unit is /c0/u0.
    87 
    88 [root@vagal ]# tw_cli maint rebuild c0 u1 p0
    89 Sending Rebuild-Start request to /c0/u1 on 1 disk(s) [0] ... Done.
    90 
    91 [root@vagal ~]# tw_cli info c0
    92 
    93 Unit  UnitType  Status         %Cmpl  Stripe  Size(GB)  Cache  AVerify  IgnECC
    94 ------------------------------------------------------------------------------
    95 u1    RAID-5    REBUILDING     18     64K     701.284   ON     -        -       
    96 
    97 Port   Status           Unit   Size        Blocks        Serial
    98 ---------------------------------------------------------------
    99 p0     DEGRADED         u1     233.76 GB   490234752     Y66G1R3E     
    100 p1     OK               u1     233.76 GB   490234752     Y63H22SE     
    101 p2     OK               u1     233.76 GB   490234752     Y61534QE     
    102 p3     OK               u1     233.76 GB   490234752     Y61ECSLE     
    103 
     82
     83Then pull and replace the drive (verify the Serial on the drive sticker) and rescan. As mentioned above, the 3ware card will add the new drive as a one-drive "JBOD" units, so delete it and make the new drive the hot spare:
     84{{{
     85tw_cli maint rescan
     86tw_cli maint deleteunit c1 u1
     87tw_cli maint createunit c1 rspare p1
     88}}}
     89The full process:
     90{{{
     91[root@vagal ~]# tw_cli maint rescan
     92Rescanning controller /c0 for units and drives ...Done.
     93Found the following unit(s): [none].
     94Found the following drive(s): [none].
     95Rescanning controller /c1 for units and drives ...Done.
     96Found the following unit(s): [/c1/u1].
     97Found the following drive(s): [none].
     98
     99
     100[root@vagal ~]# tw_cli info c1
     101
     102Unit  UnitType  Status         %Cmpl  Stripe  Size(GB)  Cache  AVerify  IgnECC
     103------------------------------------------------------------------------------
     104u0    RAID-5    OK             -      64K     931.521   ON     -        -       
     105u1    JBOD      OK             -      -       931.513   ON     -        -       
     106
     107Port   Status           Unit   Size        Blocks        Serial
     108---------------------------------------------------------------
     109p0     OK               u0     465.76 GB   976773168     9QG3NC5Z     
     110p1     OK               u1     931.51 GB   1953525168    5QJ0ZD6W     
     111p2     OK               u0     465.76 GB   976773168     9QG3NBNA     
     112p3     OK               u0     465.76 GB   976773168     9QG3NCQQ     
     113
     114
     115[root@vagal ~]# tw_cli maint createunit c1 rspare p1
     116Creating new unit on controller /c1 ...  Failed.
     117
     118(0x0B:0x001F): One or more of the specified drives belong to another unit
     119
     120[root@vagal ~]# tw_cli info c1
     121
     122Unit  UnitType  Status         %Cmpl  Stripe  Size(GB)  Cache  AVerify  IgnECC
     123------------------------------------------------------------------------------
     124u0    RAID-5    OK             -      64K     931.521   ON     -        -       
     125u1    JBOD      OK             -      -       931.513   ON     -        -       
     126
     127[root@vagal ~]# tw_cli maint deleteunit c1 u1
     128Deleting unit c1/u1 ...Done.
     129
     130[root@vagal ~]# tw_cli maint createunit c1 rspare p1
     131Creating new unit on controller /c1 ...  Done. The new unit is /c1/u1.
    104132}}}
    105133