Bug 880972 - [Intel Fedora18 BUG] Second RAID1 volume with size equal 0 can be created and system hangs
Summary: [Intel Fedora18 BUG] Second RAID1 volume with size equal 0 can be created and...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mdadm
Version: 18
Hardware: Unspecified
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Jes Sorensen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-28 10:05 UTC by Lukasz Dorau
Modified: 2013-07-05 02:11 UTC (History)
5 users (show)

Fixed In Version: mdadm-3.2.6-19.fc18
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-05 06:52:47 UTC


Attachments (Terms of Use)

Description Lukasz Dorau 2012-11-28 10:05:34 UTC
Description of problem:
It is possible to create second RAID1 volume with size equal 0. When resync of first RAID1 volume is finished, system hangs.

Version-Release number of selected component (if applicable):
3.2.6-1.fc18

How reproducible:
Always

Steps to Reproduce:
(disks of size 56 GB)
1. # mdadm -C /dev/md/imsm -amd -e imsm -n 2 /dev/sda /dev/sdb -R
2. # mdadm -C /dev/md/vol1 -amd -l1 --size 54682172 -n 2 /dev/sda /dev/sdb -R
3. # mdadm -C /dev/md/vol2 -amd -l1 -n 2 /dev/sda /dev/sdb -R
  
Actual results:
Second RAID1 volume of size equal 0 is created and system hangs. 

Expected results:
Creating of second RAID1 volume of size 0 should not be possible.

Additional info:
The following patch fixes this bug:
   commit 066e92f017df22c879c455494d2c1743ef7f3aca
   Create.c: check if freesize is equal 0
http://git.neil.brown.name/git?p=mdadm.git;a=commitdiff;h=066e92f017df22c879c455494d2c1743ef7f3aca

Comment 1 Fedora Update System 2012-12-06 13:48:41 UTC
mdadm-3.2.6-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/mdadm-3.2.6-3.fc18

Comment 2 Lukasz Dorau 2012-12-06 15:26:47 UTC
There is a typo done while porting this patch to mdadm-3.2.6-3.fc18:

There is a line in the original patch (http://git.neil.brown.name/git?p=mdadm.git;a=commitdiff;h=066e92f017df22c879c455494d2c1743ef7f3aca):

+ pr_err("no free space left on %s\n", dname); 

It was ported to mdadm-3.2.6-3.fc18 as (in Create.c:411):
+ fprintf(stderr, Name "no free space left on %s\n", dname);

It is wrong. 

The correct one should be (in Create.c:411):
+ fprintf(stderr, Name ": no free space left on %s\n", dname);

Because now the message is following:
mdadmno free space left on /dev/sda

and the correct one should be:
mdadm: no free space left on /dev/sda

Could you correct that?

Comment 3 Fedora Update System 2012-12-06 20:08:39 UTC
Package mdadm-3.2.6-3.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mdadm-3.2.6-3.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-19855/mdadm-3.2.6-3.fc18
then log in and leave karma (feedback).

Comment 4 Lukasz Dorau 2012-12-07 11:28:48 UTC
(In reply to comment #3)
> Package mdadm-3.2.6-3.fc18:
> * should fix your issue,

The issue mentioned in comment #2 is not fixed in mdadm-3.2.6-3.fc18

Comment 5 Fedora Update System 2012-12-11 06:36:18 UTC
mdadm-3.2.6-5.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/mdadm-3.2.6-5.fc18

Comment 6 Lukasz Dorau 2012-12-11 08:25:29 UTC
Intel has tested mdadm-3.2.6-5.fc18 and confirms the bug is fixed in this build.

Comment 7 Fedora Update System 2012-12-11 09:21:28 UTC
mdadm-3.2.6-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/mdadm-3.2.6-4.fc17

Comment 8 Fedora Update System 2012-12-11 09:27:45 UTC
mdadm-3.2.6-4.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/mdadm-3.2.6-4.fc16

Comment 9 Fedora Update System 2012-12-11 16:30:24 UTC
mdadm-3.2.6-7.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/mdadm-3.2.6-7.fc18

Comment 10 Fedora Update System 2012-12-11 16:39:09 UTC
mdadm-3.2.6-7.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/mdadm-3.2.6-7.fc17

Comment 11 Fedora Update System 2012-12-11 16:47:44 UTC
mdadm-3.2.6-7.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/mdadm-3.2.6-7.fc16

Comment 12 Lukasz Dorau 2012-12-13 08:41:17 UTC
Intel has tested the package mdadm-3.2.6-7.fc18 and confirms the bug is fixed in this build.

Comment 13 Fedora Update System 2013-01-04 17:03:51 UTC
mdadm-3.2.6-8.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/mdadm-3.2.6-8.fc17

Comment 14 Fedora Update System 2013-01-04 17:11:11 UTC
mdadm-3.2.6-8.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/mdadm-3.2.6-8.fc18

Comment 15 Fedora Update System 2013-01-05 06:50:38 UTC
mdadm-3.2.6-7.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2013-01-05 06:52:49 UTC
mdadm-3.2.6-7.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Fedora Update System 2013-01-09 05:47:19 UTC
mdadm-3.2.6-11.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/mdadm-3.2.6-11.fc18

Comment 18 Fedora Update System 2013-01-11 23:18:31 UTC
mdadm-3.2.6-7.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 19 Fedora Update System 2013-03-20 21:38:43 UTC
mdadm-3.2.6-8.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2013-04-23 11:27:23 UTC
mdadm-3.2.6-18.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/mdadm-3.2.6-18.fc18

Comment 21 Fedora Update System 2013-04-24 13:54:42 UTC
mdadm-3.2.6-19.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/mdadm-3.2.6-19.fc18

Comment 22 Fedora Update System 2013-07-05 02:11:36 UTC
mdadm-3.2.6-19.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.