All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ethan Wilson <ethan.wilson@shiftmail.org>
To: linux-raid@vger.kernel.org
Subject: Re: Extremely High mismatch_cnt on RAID1 system
Date: Tue, 07 Oct 2014 16:23:04 +0200	[thread overview]
Message-ID: <5433F748.1040705@shiftmail.org> (raw)
In-Reply-To: <BLU436-SMTP23591E5AC8AD1D0191C134D98A20@phx.gbl>

On 07/10/2014 15:58, Wilson, Jonathan wrote:
> Would mismatches happen if an "assume clean" was used

--assume-clean during creation, then yes, until the first "repair" and 
then "check".


> , either for a good
> reason (say to forced a dropped disk back in

I don't think it is possible to force the addition of a disk with 
--assume-clean, I think that's an option only for --create

> ) or in error, so that while
> the data on the secondary disk(s) becomes self correcting as new
> writes/updates are performed, to all disks, should the "primary" drive
> fail the second one would contain out of sync data, where it had never
> been (re)written. Although which is "primary" and which is "secondary"
> is I guess not really a good description.
>
> I would have thought that doing a DD to a _FILE_ that fills up the file
> system would also reduce the mismatch count

Yes, except theoretically for raid5 which operates RMW mode, because 
that mode propagates existing parity errors if non-full-stripes are written.
But a large file is written sequentially, probably full stripes will be 
written, so in that case, yes again.

> , as it would force
> "correct(ing)" data to all the disks, baring reserved file system
> blocks/areas.

Indeed yours is a good way to determine if mismatches are mapped to 
existing files or to unused space on the filesystem.
Once all the filesystem space is overwritten with a file, if 
mismatch_cnt is still nonzero, the mismatches are evidently located on 
files, which means data corruption.
If Dennis tells us that the mismatches count still raises after kernel 
upgrade and raid repair (repair itself will bring it to 0), we can 
suggest this test, to check for data corruption.

EW

  reply	other threads:[~2014-10-07 14:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-04 13:46 Extremely High mismatch_cnt on RAID1 system Dennis Grant
2014-10-07 13:14 ` Ethan Wilson
2014-10-07 13:58   ` Wilson, Jonathan
2014-10-07 14:23     ` Ethan Wilson [this message]
2014-10-09  3:17   ` Brassow Jonathan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5433F748.1040705@shiftmail.org \
    --to=ethan.wilson@shiftmail.org \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.