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
Message-ID: <email address hidden> 15?Q?Mario_ Jou=DFen? = <email address hidden>
Date: Wed, 2 Feb 2005 10:30:51 +1100
From: Neil Brown <email address hidden>
To: =?ISO-8859-
cc: <email address hidden>, Bastian Blank <email address hidden>
Subject: Re: mdadm and multipath device
On Tuesday February 1, <email address hidden> wrote: bugs.debian. org/cgi- bin/bugreport. cgi?bug= 271033>
> Hi Neil,
>
> do you know something about the problem described in the following bug
> report?
>
> <http://
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) disk.number;
rdev->desc_nr = -1;
else
rdev->desc_nr = sb->this_
That should be disk.number;
if (sb->level == LEVEL_MULTIPATH)
rdev->desc_nr = -1;
else
rdev->desc_nr = sb->this_
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