Bug#784874: mdadm --re-add Segmentation Fault
NeilBrown
neilb at suse.de
Wed May 13 04:05:41 UTC 2015
On Sun, 10 May 2015 01:37:09 +0200 Christoffer Hammarström
<christoffer.hammarstrom at linuxgods.com> wrote:
> Package: mdadm
> Version: 3.3.2-5
> Severity: normal
>
> I was trying to re-add some disks to a RAID, and mdadm crashed with a segmentation fault.
While that is clearly a bug an should be fixed, I wonder what you were trying
to do ...
> Core was generated by `mdadm --manage /dev/md/storage --re-add /dev/sdg /dev/sdh /dev/sdi /dev/sdj'.
so you are trying to re-add 4 drives to /dev/md/storage.
> lrwxrwxrwx 1 root root 8 May 9 23:27 storage -> ../md126
/dev/md/storage is a link to /dev/md126, but:
> --- /proc/mdstat:
> Personalities : [raid1] [raid6] [raid5] [raid4]
> md1 : active raid1 sdd[1] sdc[0]
> 3906887488 blocks super 1.2 [2/2] [UU]
> bitmap: 0/30 pages [0KB], 65536KB chunk
>
> md127 : active raid1 sde[0] sdf[1]
> 1953514496 blocks [2/2] [UU]
>
> md0 : active raid1 sdb1[1] sda1[0]
> 976629760 blocks super 1.2 [2/2] [UU]
>
> unused devices: <none>
>
/dev/md126 doesn't exist.
--re-add is for when you have a degraded array and you want to add a failed
(or removed) device back into it.
It looks to me like you are trying to assemble an array which is not
currently active. So
mdadm --assemble /dev/md/storage /dev/sdg /dev/sdh /dev/sdi /dev/sdj
is probably the command that you want.
NeilBrown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20150513/8b203aec/attachment-0001.sig>
More information about the pkg-mdadm-devel
mailing list