Bug#763080: Fails to assemble a reshaping raid after disk hickup
Goswin von Brederlow
goswin-v-b at web.de
Sun Sep 28 15:52:52 UTC 2014
Package: mdadm
Version: 3.3-2
Followup-For: Bug #763080
Hi,
attached a patch to make --force work with my reshaping array. The
problem seems to be that load_devices fills in the best array only for
every second slot (and makes it 4 times as big as needed):
mdadm: best[0] = 0
mdadm: best[1] = -1
mdadm: best[2] = 1
mdadm: best[3] = -1
mdadm: best[4] = 2
mdadm: best[5] = -1
mdadm: best[6] = 3
mdadm: best[7] = -1
mdadm: best[8] = 4
mdadm: best[9] = -1
mdadm: best[10] = 5
mdadm: best[11] = -1
mdadm: best[12] = -1
mdadm: best[13] = -1
mdadm: best[14] = -1
mdadm: best[15] = -1
mdadm: best[16] = -1
mdadm: best[17] = -1
mdadm: best[18] = -1
mdadm: best[19] = -1
And then when force_array only checks up to the number of disks in the
array it misses half of them. In my case exactly those it should be
forcing.
MfG
Goswin
-- Package-specific info:
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages mdadm depends on:
ii debconf 1.5.53
ii initscripts 2.88dsf-53
ii libc6 2.19-1
ii lsb-base 4.1+Debian12
ii makedev 2.3.1-93
ii udev 204-10
Versions of packages mdadm recommends:
ii exim4-daemon-heavy [mail-transport-agent] 4.82-8
ii module-init-tools 16-2
mdadm suggests no packages.
-- debconf information excluded
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-force-on-reshaping-array.patch
Type: text/x-diff
Size: 1166 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20140928/7913835a/attachment.patch>
More information about the pkg-mdadm-devel
mailing list