From: Rory Jaffe <rsjaffe@gmail.com>
To: linux-raid <linux-raid@vger.kernel.org>
Subject: check vs repair -- mismatch count goes up in repair, zeros in check?
Date: Sat, 18 Jun 2011 09:10:01 -0700 [thread overview]
Message-ID: <BANLkTikWJvVfmwiRgDPzprQsU_Jc67go0w@mail.gmail.com> (raw)
I'm a bit confused about check vs repair.
When I run repair, mismatches are initially zero'd at the start and
then add up as it runs through, so that at the end there is a positive
mismatch count. Running check after that zero's them out.
I thought check would run through the array and identify mismatches,
but not repair them, while repair would do the repair step as well.
But the exhibited behavior seems to indicate the opposite.
Does the mismatch count show the current number of identified
mismatches? Or what is it really counting?
See http://pastthe.endoftheinternet.org/munin/home/ubuntunas/index.html#munin
for an example (page up from the munin graphs--the three graphs
immediately above track the array.
/dev/md0:
Version : 1.2
Creation Time : Sat Apr 30 14:29:07 2011
Raid Level : raid6
Array Size : 5857609728 (5586.25 GiB 5998.19 GB)
Used Dev Size : 1952536576 (1862.08 GiB 1999.40 GB)
Raid Devices : 5
Total Devices : 6
Persistence : Superblock is persistent
Update Time : Sat Jun 18 09:08:03 2011
State : clean
Active Devices : 5
Working Devices : 6
Failed Devices : 0
Spare Devices : 1
Layout : left-symmetric
Chunk Size : 512K
Name : ubuntunas:0 (local to host ubuntunas)
UUID : 9916bc94:a245d51b:ecca3480:7c612ed5
Events : 127
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2
2 8 34 2 active sync /dev/sdc2
3 8 50 3 active sync /dev/sdd2
4 8 66 4 active sync /dev/sde2
5 8 82 - spare /dev/sdf2
next reply other threads:[~2011-06-18 16:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-18 16:10 Rory Jaffe [this message]
2011-06-18 23:23 ` check vs repair -- mismatch count goes up in repair, zeros in check? NeilBrown
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=BANLkTikWJvVfmwiRgDPzprQsU_Jc67go0w@mail.gmail.com \
--to=rsjaffe@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).