mdadm command to trigger Raid Recovery?

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

 



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?

Thanks a lot,
-Junfeng

-
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