From: Neil Brown <neilb@suse.de>
To: Tobias Gunkel <tobias.gunkel@qumido.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: weird SparesMissing event
Date: Wed, 11 Aug 2010 21:09:28 +1000 [thread overview]
Message-ID: <20100811210928.2785f92b@notabene> (raw)
In-Reply-To: <4C62716E.1090902@qumido.de>
On Wed, 11 Aug 2010 11:46:22 +0200
Tobias Gunkel <tobias.gunkel@qumido.de> wrote:
> Am 11.08.2010 09:57, schrieb Neil Brown:
> > This means that /etc/mdadm/mdadm.conf says /dev/md2 has more spare devices
> > than it currently has. What is in /etc/mdadm/mdadm.conf
>
> root@MCI03:~# egrep -v '^#|^$' /etc/mdadm/mdadm.conf
> DEVICE partitions
> CREATE owner=root group=disk mode=0660 auto=yes
> HOMEHOST <system>
> ARRAY /dev/md0 UUID=304f5f2a:fbc8082b:54307b3d:1949437b
> spares=1
> ARRAY /dev/md1 UUID=b263f9c1:5c680152:54307b3d:1949437b
> spares=1
> ARRAY /dev/md2 UUID=7aa24776:9d6e8d24:54307b3d:1949437b
> spares=2
> MAILADDR foo@bar.com
As I thought, mdadm.conf says to expect 2 spares, but there is really only
one. Just edit the file and the message will stop.
>
>
> > What do you get if you run
> >
> > mdadm --examine --scan --verbose
>
> root@MCI03:~# mdadm --examine --scan --verbose
> ARRAY /dev/md0 level=raid1 num-devices=2
> UUID=304f5f2a:fbc8082b:54307b3d:1949437b
> spares=1 devices=/dev/sdc1,/dev/sdb1,/dev/sda1
> ARRAY /dev/md1 level=raid1 num-devices=2
> UUID=b263f9c1:5c680152:54307b3d:1949437b
> spares=1 devices=/dev/sdc2,/dev/sdb2,/dev/sda2
> ARRAY /dev/md2 level=raid1 num-devices=2
> UUID=7aa24776:9d6e8d24:54307b3d:1949437b
> spares=2
> devices=/dev/sdc3,/dev/sdc,/dev/sdb3,/dev/sdb,/dev/sda3,/dev/sda
>
>
> Hm, md2 contains devices. How is that?
Partition3 on each device must start at a multiple of 64K and extend to then
end of the device. In this case both the partition and the whole device
appear to have the same metadata, and mdadm cannot tell which is correct.
This is a short-coming of v0.90 metadata and is fixed in v1.x.
You can avoid this by changing the 'device' line in mdadm.conf to
DEVICE /dev/sd*[0-9]
which essentially means "only partitions of sd devices should be considered
for membership in md arrays".
NeilBrown
>
> Tobi
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-08-11 11:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 7:04 weird SparesMissing event Tobias Gunkel
2010-08-11 7:57 ` Neil Brown
2010-08-11 9:46 ` Tobias Gunkel
2010-08-11 11:09 ` Neil Brown [this message]
2010-08-12 7:57 ` Tobias Gunkel
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=20100811210928.2785f92b@notabene \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=tobias.gunkel@qumido.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).