linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Justin Piszcz" <jpiszcz@lucidpixels.com>
To: 'NeilBrown' <neilb@suse.de>
Cc: 'joystick' <joystick@shiftmail.org>,
	'linux-raid' <linux-raid@vger.kernel.org>
Subject: RE: 3.12: raid-1 mismatch_cnt question
Date: Mon, 11 Nov 2013 17:18:37 -0500	[thread overview]
Message-ID: <001401cedf2b$f8eca850$eac5f8f0$@lucidpixels.com> (raw)
In-Reply-To: <20131112085825.16ca8446@notabene.brown>



-----Original Message-----
From: NeilBrown [mailto:neilb@suse.de] 
Sent: Monday, November 11, 2013 4:58 PM
To: Justin Piszcz
Cc: joystick; linux-raid
Subject: Re: 3.12: raid-1 mismatch_cnt question

On Mon, 11 Nov 2013 13:52:23 -0500 Justin Piszcz <jpiszcz@lucidpixels.com>
wrote:

[ .. ]

I cannot promise that my code is bug free, but if it wasn't getting this
locking correct, that would be a very serious bug.  I think this possibility
is quite unlikely.

NeilBrown

--

FWIW:

Mount points/options:
# grep md /etc/fstab
/dev/md0        /boot            ext3    defaults                   0  0
/dev/md1        /                ext4    defaults,discard           0  0

Both SSD's are plugged directly into the motherboard's 2 x 6Gbps ports
(Intel chipset/X9SRL-F mobo)

# mdadm --detail /dev/md0
/dev/md0:
        Version : 0.90
  Creation Time : Fri Nov  2 10:10:14 2012
     Raid Level : raid1
     Array Size : 1048512 (1024.11 MiB 1073.68 MB)
  Used Dev Size : 1048512 (1024.11 MiB 1073.68 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Mon Nov 11 13:50:08 2013
          State : clean 
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 08624db8:4840de94:c44c77eb:7ee19756
         Events : 0.441

    Number   Major   Minor   RaidDevice State
       0       8       33        0      active sync   /dev/sdc1
       1       8       17        1      active sync   /dev/sdb1

# mdadm --detail /dev/md1
/dev/md1:
        Version : 0.90
  Creation Time : Fri Nov  2 10:10:27 2012
     Raid Level : raid1
     Array Size : 233381376 (222.57 GiB 238.98 GB)
  Used Dev Size : 233381376 (222.57 GiB 238.98 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1
    Persistence : Superblock is persistent

    Update Time : Mon Nov 11 17:12:37 2013
          State : clean 
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           UUID : 03a64f68:595e7c61:c44c77eb:7ee19756
         Events : 0.340396

    Number   Major   Minor   RaidDevice State
       0       8       34        0      active sync   /dev/sdc2
       1       8       18        1      active sync   /dev/sdb2

# cat /proc/mdstat 
Personalities : [raid1] 
md1 : active raid1 sdc2[0] sdb2[1]
      233381376 blocks [2/2] [UU]
      
md0 : active raid1 sdc1[0] sdb1[1]
      1048512 blocks [2/2] [UU]
      
unused devices: <none>

At boot:
[   12.579770] md: raid1 personality registered for level 1
[   13.777189] md: Waiting for all devices to be available before autodetect
[   13.790829] md: If you don't use raid, use raid=noautodetect
[   13.804604] md: Autodetecting RAID arrays.
[   13.820461] md: Scanned 4 and added 4 devices.
[   13.834231] md: autorun ...
[   13.847869] md: considering sdc2 ...
[   13.861458] md:  adding sdc2 ...
[   13.874984] md: sdc1 has different UUID to sdc2
[   13.888487] md:  adding sdb2 ...
[   13.901934] md: sdb1 has different UUID to sdc2
[   13.915469] md: created md1
[   13.928790] md: bind<sdb2>
[   13.942004] md: bind<sdc2>
[   13.955088] md: running: <sdc2><sdb2>
[   13.968212] md/raid1:md1: active with 2 out of 2 mirrors
[   13.981297] md1: detected capacity change from 0 to 238982529024
[   13.994501] md: considering sdc1 ...
[   14.007674] md:  adding sdc1 ...
[   14.020775] md:  adding sdb1 ...
[   14.033718] md: created md0
[   14.046545] md: bind<sdb1>
[   14.059301] md: bind<sdc1>
[   14.071918] md: running: <sdc1><sdb1>
[   14.084644] md/raid1:md0: active with 2 out of 2 mirrors
[   14.097321] md0: detected capacity change from 0 to 1073676288
[   14.110059] md: ... autorun DONE.
[   14.123179]  md1: unknown partition table
[   14.138285] EXT4-fs (md1): mounted filesystem with ordered data mode.
Opts: (null)
[   14.640887]  md0:
[   15.785971] EXT4-fs (md1): re-mounted. Opts: discard
[   15.970284] EXT3-fs (md0): using internal journal
[   15.970285] EXT3-fs (md0): mounted filesystem with writeback data mode

Justin.


  reply	other threads:[~2013-11-11 22:18 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-04 10:25 3.12: raid-1 mismatch_cnt question Justin Piszcz
2013-11-07 10:54 ` Justin Piszcz
2013-11-12  0:39   ` Brad Campbell
2013-11-12  9:14     ` Justin Piszcz
     [not found] ` <527E8B74.70301@shiftmail.org>
2013-11-09 22:49   ` Justin Piszcz
2013-11-10 12:45     ` joystick
2013-11-11  9:26       ` Justin Piszcz
2013-11-11 11:06         ` joystick
2013-11-11 18:52           ` Justin Piszcz
2013-11-11 21:23             ` John Stoffel
2013-11-11 21:55               ` NeilBrown
2013-11-12  2:49                 ` John Stoffel
2013-11-11 21:58             ` NeilBrown
2013-11-11 22:18               ` Justin Piszcz [this message]
2013-11-12  9:30             ` joystick
2013-11-12 10:29               ` Bernd Schubert
2013-11-13 22:10                 ` Justin Piszcz
2013-11-14  8:44                   ` joystick
2013-11-14 10:43                     ` Justin Piszcz
2013-11-14 16:09                       ` joystick
2013-11-14 17:22                         ` Justin Piszcz
2013-11-15  8:51                           ` joystick

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='001401cedf2b$f8eca850$eac5f8f0$@lucidpixels.com' \
    --to=jpiszcz@lucidpixels.com \
    --cc=joystick@shiftmail.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /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).