Skip to contentSkip to conversation

Spares Missing event in case of spare group?

DISCUSSION Jan Ceuleers 2 participants 5 messages Apr 19, 2009 – May 15, 2009 MD RAID

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 7 lines · Jan Ceuleers

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

Quoted 14 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

Neil,

Quoted 3 lines · NeilBrown

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:

mdadm.conf.5 +1 -0
index 40295be..b67bec4 100644
@@ -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
#3 lore raw
Quoted 6 lines · Jan Ceuleers
Quoted 3 lines · NeilBrown

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?

mdadm.conf.5 this is mainly for compatibility with the output of · line 141

Quoted 12 lines
mdadm.conf.5 +1 -0
index 40295be..b67bec4 100644
@@ -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

#4 lore raw
Quoted 10 lines · On Friday May 1, [email protected] wrote:
Quoted 7 lines · Jan Ceuleers
Quoted 3 lines · NeilBrown

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

Quoted 19 lines

mdadm.conf.5 this is mainly for compatibility with the output of · line 141

Quoted 13 lines
mdadm.conf.5 +1 -0
index 40295be..b67bec4 100644
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html