Re: mdadm command to trigger Raid Recovery?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday March 19, yjf@xxxxxxxxxxxx wrote:
> Hi,
> 
> What exactly is the command to recover a raid array after system crash? I
> created a raid5 array with 3 disks.  After system crash, one disk is out
> of sync, so I tried the command
> 
> mdadm --assemble --run --force --update=resync /dev/md2 /dev/sbd3  /dev/sbd4 /dev/sbd5
> 
> However, I still saw that raid array was started with 2 disks:
> mdadm: /dev/md/2 has been started with 2 drives (out of 3).
> 
> cat /proc/mdstat still shows that /dev/sbd5 is inactive.
> Personalities : [raid5]
> md2 : active raid5 sbd3[0] sbd4[1]
>       3968 blocks level 5, 64k chunk, algorithm 2 [3/2] [UU_]
> 
> If --update=resync isn't the right option to sync a raid array, what
> command am I supposed to use?

I think all you have to do at this point is add sbd5 back into the
array:
   mdadm /dev/md2 --add /dev/sbd5

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux