Bug#645563: mdadm: segmentation fault when converting raid10 to raid0
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Oct 17 03:42:46 UTC 2011
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:
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: 1030 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20111016/b24b434a/attachment-0001.pgp>
More information about the pkg-mdadm-devel
mailing list