Bug#645563: mdadm: segmentation fault when converting raid10 to raid0
NeilBrown
neilb at suse.de
Mon Oct 17 05:52:28 UTC 2011
On Sun, 16 Oct 2011 23:42:46 -0400 Daniel Kahn Gillmor
<dkg at fifthhorseman.net> wrote:
> On 10/16/2011 09:55 PM, NeilBrown wrote:
> > On line 1556 for Grow.c you'll find something like:
> >
> > /* FIXME this is added with no justification - why is it here */
> > ping_monitor(container);
> >
> > Change that to
> > if (container)
> > ping_monitor(container);
> >
> > and the problem should go away.
>
> I can confirm that it does go away if this change is made:
Thanks.
The patch is now in the 'master' branch of the upstream git:
git://neil.brown.name/mdadm/ master
NeilBrown
>
>
> 0 root at bigpuff:/home/raidtest# cat /proc/mdstat
> Personalities : [raid10]
> md0 : active raid10 loop3[3] loop2[2] loop1[1] loop0[0]
> 203776 blocks super 1.2 512K chunks 2 near-copies [4/4] [UUUU]
>
> unused devices: <none>
> 0 root at bigpuff:/home/raidtest# mdadm /dev/md0 --grow --level 0
> mdadm: level of /dev/md0 changed to raid0
> 0 root at bigpuff:/home/raidtest# cat /proc/mdstat
> Personalities : [raid10] [raid0]
> md0 : active raid0 loop3[3] loop1[1]
> 203776 blocks super 1.2 512k chunks
>
> unused devices: <none>
> 0 root at bigpuff:/home/raidtest#
>
> Thanks for the quick response,
>
> --dkg
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20111017/a57bee41/attachment.pgp>
More information about the pkg-mdadm-devel
mailing list