Re: RAID6 rebuild stuck

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

 



On Oct 1, 2012, at 5:29 AM, Brian Candler wrote:

> So mdstat says that recovery is ongoing, when clearly it isn't. I'm not sure
> what I should do next.  Should I just hot-swap sdg, or should I reboot to
> clear the stuck /proc/mdstat status?

It might be superfluous, but looks like you should be able to to stop the resync/repair by using:

echo idle  > md/sync_action

In any case you need to fail the drive, if it hasn't already been rejected again, and remove the drive from the array.

mdadm /dev/md1 --fail /dev/sdg
mdadm /dev/md1 --remove /dev/sdg

Replace the drive - i.e. physically remove the bad one, and replace it with a good one. You'll need to find out what its designation is to add it:

mdadm /dev/md1 --add /dev/sdX

You should start getting a resync right away.

Chris Murphy

--
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