* Spares Missing event in case of spare group?
@ 2009-04-19 16:02 Jan Ceuleers
2009-04-19 20:39 ` NeilBrown
0 siblings, 1 reply; 5+ messages in thread
From: Jan Ceuleers @ 2009-04-19 16:02 UTC (permalink / raw)
To: linux-raid
Hi!
I have two RAID1 sets of equal size, with one spare shared between them.
When I reboot the system I get a Spares Missing notification on one of
the arrays.
Since this is a false positive, is there a way to avoid it?
Extract from mdadm.conf:
ARRAY /dev/md0 level=raid1 num-devices=2 spares=1
UUID=19e69537:f7a6aec8:5a5f7576:3fc29e0d spare-group=swapgroup
ARRAY /dev/md1 level=raid1 num-devices=2 spares=1
UUID=5e728621:c8b356a8:01f8e270:f0e280cb spare-group=swapgroup
Thanks, Jan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Spares Missing event in case of spare group?
2009-04-19 16:02 Spares Missing event in case of spare group? Jan Ceuleers
@ 2009-04-19 20:39 ` NeilBrown
2009-04-20 19:02 ` Jan Ceuleers
0 siblings, 1 reply; 5+ messages in thread
From: NeilBrown @ 2009-04-19 20:39 UTC (permalink / raw)
To: Jan Ceuleers; +Cc: linux-raid
On Mon, April 20, 2009 2:02 am, Jan Ceuleers wrote:
> Hi!
>
> I have two RAID1 sets of equal size, with one spare shared between them.
> When I reboot the system I get a Spares Missing notification on one of
> the arrays.
>
> Since this is a false positive, is there a way to avoid it?
Yes. Remove the "spares=1" from each line.
The sole effect of this text is to tell --monitor to expect a spare, and
to complain if no spare is found.
NeilBrown
>
> Extract from mdadm.conf:
>
> ARRAY /dev/md0 level=raid1 num-devices=2 spares=1
> UUID=19e69537:f7a6aec8:5a5f7576:3fc29e0d spare-group=swapgroup
> ARRAY /dev/md1 level=raid1 num-devices=2 spares=1
> UUID=5e728621:c8b356a8:01f8e270:f0e280cb spare-group=swapgroup
>
> Thanks, Jan
> --
> 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: Spares Missing event in case of spare group?
2009-04-19 20:39 ` NeilBrown
@ 2009-04-20 19:02 ` Jan Ceuleers
2009-05-01 6:53 ` Jan Ceuleers
0 siblings, 1 reply; 5+ messages in thread
From: Jan Ceuleers @ 2009-04-20 19:02 UTC (permalink / raw)
To: linux-raid
Neil,
NeilBrown wrote:
> Yes. Remove the "spares=1" from each line.
> The sole effect of this text is to tell --monitor to expect a spare, and
> to complain if no spare is found.
Many thanks. I hadn't picked that up from the manpage, so here is a
patch for your consideration:
diff --git a/mdadm.conf.5 b/mdadm.conf.5
index 40295be..b67bec4 100644
--- a/mdadm.conf.5
+++ b/mdadm.conf.5
@@ -135,6 +135,7 @@ this is mainly for compatibility with the output of
.TP
.B spares=
The value is a number of spare devices to expect the array to have.
+The sole use of this keyword and value is as follows:
.B mdadm \-\-monitor
will report an array if it is found to have fewer than this number of
spares when
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: Spares Missing event in case of spare group?
2009-04-20 19:02 ` Jan Ceuleers
@ 2009-05-01 6:53 ` Jan Ceuleers
2009-05-15 4:38 ` Neil Brown
0 siblings, 1 reply; 5+ messages in thread
From: Jan Ceuleers @ 2009-05-01 6:53 UTC (permalink / raw)
To: linux-raid
Jan Ceuleers wrote:
> NeilBrown wrote:
>> Yes. Remove the "spares=1" from each line.
>> The sole effect of this text is to tell --monitor to expect a spare, and
>> to complain if no spare is found.
>
> Many thanks. I hadn't picked that up from the manpage, so here is a
> patch for your consideration:
Reasonable patch?
> diff --git a/mdadm.conf.5 b/mdadm.conf.5
> index 40295be..b67bec4 100644
> --- a/mdadm.conf.5
> +++ b/mdadm.conf.5
> @@ -135,6 +135,7 @@ this is mainly for compatibility with the output of
> .TP
> .B spares=
> The value is a number of spare devices to expect the array to have.
> +The sole use of this keyword and value is as follows:
> .B mdadm \-\-monitor
> will report an array if it is found to have fewer than this number of
> spares when
Thanks, Jan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Spares Missing event in case of spare group?
2009-05-01 6:53 ` Jan Ceuleers
@ 2009-05-15 4:38 ` Neil Brown
0 siblings, 0 replies; 5+ messages in thread
From: Neil Brown @ 2009-05-15 4:38 UTC (permalink / raw)
To: Jan Ceuleers; +Cc: linux-raid
On Friday May 1, jan.ceuleers@computer.org wrote:
> Jan Ceuleers wrote:
> > NeilBrown wrote:
> >> Yes. Remove the "spares=1" from each line.
> >> The sole effect of this text is to tell --monitor to expect a spare, and
> >> to complain if no spare is found.
> >
> > Many thanks. I hadn't picked that up from the manpage, so here is a
> > patch for your consideration:
>
> Reasonable patch?
Yes. Thanks. (And sorry for the delay :-)
NeilBrown
>
> > diff --git a/mdadm.conf.5 b/mdadm.conf.5
> > index 40295be..b67bec4 100644
> > --- a/mdadm.conf.5
> > +++ b/mdadm.conf.5
> > @@ -135,6 +135,7 @@ this is mainly for compatibility with the output of
> > .TP
> > .B spares=
> > The value is a number of spare devices to expect the array to have.
> > +The sole use of this keyword and value is as follows:
> > .B mdadm \-\-monitor
> > will report an array if it is found to have fewer than this number of
> > spares when
>
> Thanks, Jan
> --
> 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
end of thread, other threads:[~2009-05-15 4:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-19 16:02 Spares Missing event in case of spare group? Jan Ceuleers
2009-04-19 20:39 ` NeilBrown
2009-04-20 19:02 ` Jan Ceuleers
2009-05-01 6:53 ` Jan Ceuleers
2009-05-15 4:38 ` Neil Brown
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).