Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301396 - sys-fs/mdadm-3.1.1 grow fix
Summary: sys-fs/mdadm-3.1.1 grow fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 322055
Blocks:
  Show dependency tree
 
Reported: 2010-01-18 16:29 UTC by Torsten Kurbad
Modified: 2010-06-03 02:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mdadm-3.1.1.ebuild.diff (mdadm-3.1.1.ebuild.diff,863 bytes, patch)
2010-01-18 16:35 UTC, Torsten Kurbad
Details | Diff
mdadm-3.1.1-grow-arraysize-fix.patch (mdadm-3.1.1-grow-arraysize-fix.patch,472 bytes, patch)
2010-01-18 16:35 UTC, Torsten Kurbad
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kurbad 2010-01-18 16:29:40 UTC
Today I ran into an issue with mdadm-3.1.1, that prevented me from growing my raid6 array (s. http://marc.info/?l=linux-raid&m=125920566107815&w=2 )

According to the developer of mdadm, this is caused by a missing typecast to 'long long', which has been fixed in git.

I patched the ebuild accordingly to make it work for 3.1.1 (s. attachments).

Reproducible: Always

Steps to Reproduce:
1. Create a n-Disk level5 or level6 raid array with mdadm.
2. Add a spare disk.
3. Try mdadm --grow -n (n+1)

Actual Results:  
mdadm erraneously assumes that the array size will be reduced instead of grown and warns you about it.

Expected Results:  
The array size should be extended by the size of one component device.
Comment 1 Torsten Kurbad 2010-01-18 16:35:01 UTC
Created attachment 216811 [details, diff]
mdadm-3.1.1.ebuild.diff

This is a diff to the current sys-fs/mdadm-3.1.1.ebuild that incorporates the grow fix and reinstates the udev rules that got deleted completely on my system before (not duplicated as in bug #295158)
Comment 2 Torsten Kurbad 2010-01-18 16:35:41 UTC
Created attachment 216812 [details, diff]
mdadm-3.1.1-grow-arraysize-fix.patch

This is the actual fix.

Works perfectly for me.
Comment 3 Xake 2010-06-02 14:33:01 UTC
Fixed in mdadm-3.1.2, bump bug #322055
Comment 4 SpanKY gentoo-dev 2010-06-03 02:05:57 UTC
3.1.2 is in the tree now