linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mdadm oddity.
@ 2005-05-07 23:33 Sam Varshavchik
  2005-05-07 23:51 ` Bradley Baetz
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sam Varshavchik @ 2005-05-07 23:33 UTC (permalink / raw)
  To: linux-raid

[-- Attachment #1: Type: text/plain, Size: 917 bytes --]

I noticed a slight oddity on one of my servers: when I start "mdadm 
--monitor --scan" I get only the "NewArray" message.  On the other server I 
get a "NewArray" then a "SparesMissing" message, for each RAID partition.  
Neither server has spares.  Both servers have a pair of SCSI drives in a 
RAID-1 configuration for all of the partitions.

Well, the real oddity is actually that the other server only reports a 
NewArray -- because I see in the ChangeLog mdadm is _supposed_ to report 
both NewArray and SparesMissing.  But until I turned up the second server I 
only ever got NewArray from mdadm, so that was something new.

Investigating this I discovered that I get a SparesMissing message if I 
explicitly enumerate all my RAID partitions in mdadm.conf (mdadm 1.5.0).  If 
I don't list my partitions in mdadm.conf, mdadm still finds them, but then 
reports only a NewArray message.  Does that sound right?



[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: mdadm oddity.
  2005-05-07 23:33 mdadm oddity Sam Varshavchik
@ 2005-05-07 23:51 ` Bradley Baetz
  2005-05-08  6:43 ` Tyler
  2005-05-08  7:52 ` Neil Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Bradley Baetz @ 2005-05-07 23:51 UTC (permalink / raw)
  To: linux-raid

[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]

This happens if you don't have a spares= line in mdadm.conf; the code 
defaults it to a massive number.

Try the attached patch, which I've sent to Neil a couple of times.

Bradley

Sam Varshavchik wrote:
> I noticed a slight oddity on one of my servers: when I start "mdadm 
> --monitor --scan" I get only the "NewArray" message.  On the other 
> server I get a "NewArray" then a "SparesMissing" message, for each RAID 
> partition.  Neither server has spares.  Both servers have a pair of SCSI 
> drives in a RAID-1 configuration for all of the partitions.
> 
> Well, the real oddity is actually that the other server only reports a 
> NewArray -- because I see in the ChangeLog mdadm is _supposed_ to report 
> both NewArray and SparesMissing.  But until I turned up the second 
> server I only ever got NewArray from mdadm, so that was something new.
> 
> Investigating this I discovered that I get a SparesMissing message if I 
> explicitly enumerate all my RAID partitions in mdadm.conf (mdadm 
> 1.5.0).  If I don't list my partitions in mdadm.conf, mdadm still finds 
> them, but then reports only a NewArray message.  Does that sound right?
> 
> 


[-- Attachment #2: mdadm-sparesmissing.patch --]
[-- Type: text/x-patch, Size: 304 bytes --]

--- config.c.orig       Sun Jun 27 23:55:57 2004
+++ config.c    Sun Jun 27 23:58:21 2004
@@ -270,7 +270,7 @@
 	mis.super_minor = UnSet;
 	mis.level = UnSet;
 	mis.raid_disks = UnSet;
-	mis.spare_disks = UnSet;
+	mis.spare_disks = 0;
 	mis.devices = NULL;
 	mis.devname = NULL;
 	mis.spare_group = NULL;

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

* Re: mdadm oddity.
  2005-05-07 23:33 mdadm oddity Sam Varshavchik
  2005-05-07 23:51 ` Bradley Baetz
@ 2005-05-08  6:43 ` Tyler
  2005-05-08  7:52 ` Neil Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Tyler @ 2005-05-08  6:43 UTC (permalink / raw)
  To: Sam Varshavchik; +Cc: linux-raid

You're email isn't entirely clear .. not for me anyways.. First you 
mentioned that it announces the SparesMissing on one server, but not the 
other, then go into saying it does announce it if you explicitly 
enumerate (not sure exactly what you're referring to here) the raid 
partitions in the configuration file, as if it were happening on both?

Regards,
Tyler.

Sam Varshavchik wrote:

> I noticed a slight oddity on one of my servers: when I start "mdadm 
> --monitor --scan" I get only the "NewArray" message.  On the other 
> server I get a "NewArray" then a "SparesMissing" message, for each 
> RAID partition.  Neither server has spares.  Both servers have a pair 
> of SCSI drives in a RAID-1 configuration for all of the partitions.
>
> Well, the real oddity is actually that the other server only reports a 
> NewArray -- because I see in the ChangeLog mdadm is _supposed_ to 
> report both NewArray and SparesMissing.  But until I turned up the 
> second server I only ever got NewArray from mdadm, so that was 
> something new.
>
> Investigating this I discovered that I get a SparesMissing message if 
> I explicitly enumerate all my RAID partitions in mdadm.conf (mdadm 
> 1.5.0).  If I don't list my partitions in mdadm.conf, mdadm still 
> finds them, but then reports only a NewArray message.  Does that sound 
> right?
>
>


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

* Re: mdadm oddity.
  2005-05-07 23:33 mdadm oddity Sam Varshavchik
  2005-05-07 23:51 ` Bradley Baetz
  2005-05-08  6:43 ` Tyler
@ 2005-05-08  7:52 ` Neil Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Neil Brown @ 2005-05-08  7:52 UTC (permalink / raw)
  To: Sam Varshavchik; +Cc: linux-raid

On Saturday May 7, mrsam@courier-mta.com wrote:
> I noticed a slight oddity on one of my servers: when I start "mdadm 
> --monitor --scan" I get only the "NewArray" message.  On the other server I 
> get a "NewArray" then a "SparesMissing" message, for each RAID partition.  
> Neither server has spares.  Both servers have a pair of SCSI drives in a 
> RAID-1 configuration for all of the partitions.
> 
> Well, the real oddity is actually that the other server only reports a 
> NewArray -- because I see in the ChangeLog mdadm is _supposed_ to report 
> both NewArray and SparesMissing.  But until I turned up the second server I 
> only ever got NewArray from mdadm, so that was something new.
> 
> Investigating this I discovered that I get a SparesMissing message if I 
> explicitly enumerate all my RAID partitions in mdadm.conf (mdadm 1.5.0).  If 
> I don't list my partitions in mdadm.conf, mdadm still finds them, but then 
> reports only a NewArray message.  Does that sound right?
> 
> 

You are only meant to get "SparesMissing" if you have a number of
spare disks recorded in your mdadm.conf (e.g. spares=2) and mdadm find
that the array has fewer than that number.  However a quick look at
the code suggests that if it find the array mentioned in mdadm.conf
and the number of spares isn't given, it will always report
"SparesMissing".
I need to be more consistent about using "-1" or "UnSet" to record
that some value isn't set.  I'll try to rustle up a patch in the next
day or so.

NeilBrown

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

end of thread, other threads:[~2005-05-08  7:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-07 23:33 mdadm oddity Sam Varshavchik
2005-05-07 23:51 ` Bradley Baetz
2005-05-08  6:43 ` Tyler
2005-05-08  7:52 ` 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).