Comment 6 for bug 12439

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 2 Feb 2005 10:30:51 +1100
From: Neil Brown <email address hidden>
To: =?ISO-8859-15?Q?Mario_Jou=DFen?= <email address hidden>
cc: <email address hidden>, Bastian Blank <email address hidden>
Subject: Re: mdadm and multipath device

On Tuesday February 1, <email address hidden> wrote:
> Hi Neil,
>
> do you know something about the problem described in the following bug
> report?
>
> <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=271033>

The main problem is a kernel bug (2.6.X), not an mdadm bug.

in drivers/md/md.c, in function super_90_load, it says:

 if (sb->level == MULTIPATH)
  rdev->desc_nr = -1;
 else
  rdev->desc_nr = sb->this_disk.number;

That should be
 if (sb->level == LEVEL_MULTIPATH)
  rdev->desc_nr = -1;
 else
  rdev->desc_nr = sb->this_disk.number;

This causes the failure when trying to add the second device.
I'll try to get the patch into 2.6.11.

The message
  mdadm: /dev/md4 has been started with 2 drives and -1 spares.

is wrong (it should be "started with 1 drive"). I'll try to get that
fixed for mdadm 1.9.0

NeilBrown