Re: raid1 out of sync, but which files are affected?

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

 



On 01/26/2019 04:49 AM, Harald Dunkel wrote:
> Hi folks,
> 
> I initiated a check of my RAID1 (2 disks) this morning. mismatch_cnt
> is at 128 by now.
> 
> Apparently I can map block numbers to files using debugfs, looking
> closely at block sizes and partition offsets, but how can I tell which
> blocks within md0 are affected?
> 
> 
> Hopefully I wasn't too blind to see. Every helpful comment is highly
> appreciated
> 
> Harri
> 

Sorry for the late reply,

  In most cases this is just a harmless atavistic quirk. I have seen this
before on a couple of occasions an ultimately the mismatch just vanishes. For
example, I scrub weekly through a cron script and log the results. In 2017 I
saw a couple of them, e.g.

    ------- 2017 --------
    ...
    Aug 21 03:01:01 '/dev/md0' mismatch_cnt = 0
    Aug 21 03:07:01 '/dev/md1' mismatch_cnt = 0
    Aug 21 05:01:02 '/dev/md2' mismatch_cnt = 0
    Aug 21 10:11:02 '/dev/md4' mismatch_cnt = 0
    Aug 28 03:01:01 '/dev/md0' error: mismatch_cnt = 128
    Aug 28 03:06:01 '/dev/md1' mismatch_cnt = 0
    Aug 28 04:59:02 '/dev/md2' mismatch_cnt = 0
    Aug 28 10:09:02 '/dev/md4' mismatch_cnt = 0
    Sep  4 03:01:02 '/dev/md0' error: mismatch_cnt = 128
    Sep  4 03:06:02 '/dev/md1' mismatch_cnt = 0
    Sep  4 05:00:02 '/dev/md2' mismatch_cnt = 0
    Sep  4 10:10:03 '/dev/md4' mismatch_cnt = 0
    Sep 11 03:01:02 '/dev/md0' mismatch_cnt = 0
    Sep 11 03:06:02 '/dev/md1' mismatch_cnt = 0
    Sep 11 04:59:02 '/dev/md2' mismatch_cnt = 0
    Sep 11 10:09:03 '/dev/md4' mismatch_cnt = 0
    Sep 18 03:01:01 '/dev/md0' mismatch_cnt = 0
    Sep 18 03:06:01 '/dev/md1' mismatch_cnt = 0
    Sep 18 04:59:02 '/dev/md2' mismatch_cnt = 0
    Sep 18 10:09:02 '/dev/md4' mismatch_cnt = 0
    Sep 25 03:01:01 '/dev/md0' error: mismatch_cnt = 128
    Sep 25 03:06:01 '/dev/md1' mismatch_cnt = 0
    Sep 25 04:59:02 '/dev/md2' mismatch_cnt = 0
    Sep 25 10:09:02 '/dev/md4' mismatch_cnt = 0
    Oct  2 03:01:01 '/dev/md0' mismatch_cnt = 0
    Oct  2 03:06:01 '/dev/md1' mismatch_cnt = 0
    Oct  2 04:59:02 '/dev/md2' mismatch_cnt = 0
    Oct  2 10:09:02 '/dev/md4' mismatch_cnt = 0
    Oct  9 03:01:02 '/dev/md0' mismatch_cnt = 0
    Oct  9 03:06:02 '/dev/md1' mismatch_cnt = 0
    Oct  9 05:05:02 '/dev/md2' mismatch_cnt = 0
    Oct  9 10:15:03 '/dev/md4' mismatch_cnt = 0
    <snip>
    none since


-- 
David C. Rankin, J.D.,P.E.



[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