Re: what does md do if it finds an inconsistency?

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

 



martin f krafft wrote:
> also sprach martin f krafft <madduck@xxxxxxxxxxx> [2007.05.06.0245 +0200]:
> 
>>With the check feature of the recent md feature, the question popped
>>up what happens when an inconsistency is found. Does it fix it? If
>>so, which disk it assumes to be wrong if an inconsistency is found?
> 
> 
> What I meant was of course
> 
>   echo repair > sycn_action
> 
> I am unsure what happens:
> 
>   piper:/sys/block/md7/md# cat mismatch_cnt
>   128
>   piper:/sys/block/md7/md# echo repair > sync_action
>   piper:/sys/block/md7/md# cat sync_action
>   idle
>   piper:/sys/block/md7/md# cat mismatch_cnt
>   128 
> 
> If I do this again, then mismatch_cnt goes to 0. Not the first time.
> 
> md7 : active raid10 sda2[0] sdc2[2] sdb2[1]
>       1373376 blocks 64K chunks 2 near-copies [3/3] [UUU]

The first time it reports that it found (and repaired) 128 items.
It does not mean that you now *have* 128 mismatches.

The next run ('repair' or 'check') will find none (hopefully...)
and report zero.

-- 
Eyal Lebedinsky (eyal@xxxxxxxxxxxxxx) <http://samba.org/eyal/>
	attach .zip as .dat
-
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