All of lore.kernel.org
 help / color / mirror / Atom feed
* weird SparesMissing event
@ 2010-08-11  7:04 Tobias Gunkel
  2010-08-11  7:57 ` Neil Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Tobias Gunkel @ 2010-08-11  7:04 UTC (permalink / raw)
  To: linux-raid

Hello everyone,

I've got a strange SparesMissing event on one of my raid1 arrays.
mdadm --detail /dev/md2 says all ok, but I get this message by mdadm
monitor every day:

A SparesMissing event had been detected on md device /dev/md2.

Faithfully yours, etc.

P.S. The /proc/mdstat file currently contains the following:

Personalities : [raid1]
md2 : active raid1 sda3[0] sdc3[2](S) sdb3[1]
      474714048 blocks [2/2] [UU]
[...]

root@MCI03:~# mdadm --detail /dev/md2
/dev/md2:
        Version : 0.90
  Creation Time : Fri May 28 14:54:26 2010
     Raid Level : raid1
     Array Size : 474714048 (452.72 GiB 486.11 GB)
  Used Dev Size : 474714048 (452.72 GiB 486.11 GB)
   Raid Devices : 2
  Total Devices : 3
Preferred Minor : 2
    Persistence : Superblock is persistent

    Update Time : Wed Aug 11 08:52:13 2010
          State : clean
 Active Devices : 2
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 1

           UUID : 7aa24776:9d6e8d24:54307b3d:1949437b (local to host MCI03)
         Events : 0.985979

    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       8       19        1      active sync   /dev/sdb3

       2       8       35        -      spare   /dev/sdc3


This makes me wonder, too:

root@MCI03:~# mdadm --examine --scan
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

Why spares=2 for md2? It was created during Debian system install with
spares=1.

root@MCI03:~# mdadm -V
mdadm - v3.0.3 - 22nd October 2009

root@MCI03:~# uname -r
2.6.32preemptive


What's wrong here?
Thanks for any comments!

Best regards, Tobi

-- 
qumido GmbH | Altplauen 19 | 01187 Dresden
Telefon: +49 1805 355 7555 | Telefax: +49 7472 2820 26
E-Mail:  it@qumido.de      | Web: http://www.qumido.de

Geschäftsführung: Lothar Hartinger, Jan Aurel Rohde
Sitz der Gesellschaft: Rottenburg am Neckar | Amtsgericht Stuttgart: HRB
723793


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.
Internetkommunikationen sind nicht sicher. Daher übernimmt die qumido
GmbH keinerlei Haftung für den Inhalt dieser Nachricht. Jegliche
Ansichten oder dargestellte Meinungen sind ausschließlich solche des
Autors und repräsentieren nicht notwendigerweise die der qumido GmbH.

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden. Internet communications are not secure and
therefore qumido GmbH does not accept legal responsibility for the
contents of this message. Any views or opinions presented are solely
those of the author and do not necessarily represent those of qumido
GmbH.
--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: weird SparesMissing event
  2010-08-11  7:04 weird SparesMissing event Tobias Gunkel
@ 2010-08-11  7:57 ` Neil Brown
  2010-08-11  9:46   ` Tobias Gunkel
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Brown @ 2010-08-11  7:57 UTC (permalink / raw)
  To: Tobias Gunkel; +Cc: linux-raid

On Wed, 11 Aug 2010 09:04:32 +0200
Tobias Gunkel <tobias.gunkel@qumido.de> wrote:

> Hello everyone,
> 
> I've got a strange SparesMissing event on one of my raid1 arrays.
> mdadm --detail /dev/md2 says all ok, but I get this message by mdadm
> monitor every day:
> 
> A SparesMissing event had been detected on md device /dev/md2.

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



> This makes me wonder, too:
> 
> root@MCI03:~# mdadm --examine --scan
> 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
> 
> Why spares=2 for md2? It was created during Debian system install with
> spares=1.

What do you get if you run

 mdadm --examine --scan --verbose

it should add a 'devices=' line which will show you which devices it is
counting.

NeilBrown

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: weird SparesMissing event
  2010-08-11  7:57 ` Neil Brown
@ 2010-08-11  9:46   ` Tobias Gunkel
  2010-08-11 11:09     ` Neil Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Tobias Gunkel @ 2010-08-11  9:46 UTC (permalink / raw)
  To: linux-raid

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


> 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?

Tobi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: weird SparesMissing event
  2010-08-11  9:46   ` Tobias Gunkel
@ 2010-08-11 11:09     ` Neil Brown
  2010-08-12  7:57       ` Tobias Gunkel
  0 siblings, 1 reply; 5+ messages in thread
From: Neil Brown @ 2010-08-11 11:09 UTC (permalink / raw)
  To: Tobias Gunkel; +Cc: linux-raid

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: weird SparesMissing event
  2010-08-11 11:09     ` Neil Brown
@ 2010-08-12  7:57       ` Tobias Gunkel
  0 siblings, 0 replies; 5+ messages in thread
From: Tobias Gunkel @ 2010-08-12  7:57 UTC (permalink / raw)
  To: linux-raid

Am 11.08.2010 13:09, schrieb Neil Brown:

> 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.

Yes, now it's all fine, thanks!

But mdadm --examine --scan --verbose still shows spares=2:

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

...although mdadm.conf was updated:

grep -A1 md2 /etc/mdadm/mdadm.conf
ARRAY /dev/md2 UUID=7aa24776:9d6e8d24:54307b3d:1949437b
   spares=1


Tobi

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-12  7:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2010-08-12  7:57       ` Tobias Gunkel

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.