Bug 913401 - parted or mkfs hangs on md devices
Summary: parted or mkfs hangs on md devices
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: mdadm
Version: 21
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jes Sorensen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 911399 916319 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-21 08:05 UTC by Shawn Sterling
Modified: 2015-12-02 16:04 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-12-02 02:43:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
dmesg | grep md (1.08 KB, text/x-log)
2013-02-21 08:05 UTC, Shawn Sterling
no flags Details
mdadm --examine /dev/md/imsm0 (1.12 KB, text/x-log)
2013-02-21 08:06 UTC, Shawn Sterling
no flags Details
cat /proc/mdstat (335 bytes, text/x-log)
2013-02-21 08:07 UTC, Shawn Sterling
no flags Details
cat /proc/partitions (874 bytes, text/x-log)
2013-02-21 09:04 UTC, Shawn Sterling
no flags Details
cat /etc/mdadm.conf (458 bytes, text/plain)
2013-10-14 16:06 UTC, Mordechai Butrashvily
no flags Details
cat /proc/mdstat (215 bytes, text/plain)
2013-10-14 16:06 UTC, Mordechai Butrashvily
no flags Details
sudo rpm -q kernel mdadm dracut (147 bytes, text/plain)
2013-10-14 16:07 UTC, Mordechai Butrashvily
no flags Details

Description Shawn Sterling 2013-02-21 08:05:14 UTC
Description of problem:

Can't partition or format md devices, hangs forever.

Using fakeraid (because I am dual booting with windows), have a partition for linux and 1 for windows.

motherboard is a asus P9X79LE 

Version-Release number of selected component (if applicable):

mdadm-3.2.6-12.fc18.x86_64
kernel-3.7.8-202.fc18.x86_64

How reproducible:
100%

Steps to Reproduce:
1. setup fakeraid config in (fake)raid bios
2. parted /dev/md126, or mkfs on it
3. hung!
 
Expected results:
Would like to add and format partitions.

Additional info:
Couple attachments coming with some troubleshooting info

Comment 1 Shawn Sterling 2013-02-21 08:05:57 UTC
Created attachment 700390 [details]
dmesg | grep md

Comment 2 Shawn Sterling 2013-02-21 08:06:49 UTC
Created attachment 700391 [details]
mdadm --examine /dev/md/imsm0

Comment 3 Shawn Sterling 2013-02-21 08:07:17 UTC
Created attachment 700392 [details]
cat /proc/mdstat

Comment 4 Jes Sorensen 2013-02-21 08:44:42 UTC
Please provide output of /proc/partitions as well

I suspect you will be able to run it parted if you run
mdmon --takeover --all

If you raid device used for your / partition or just for a data partition?

Thanks,
Jes

Comment 5 Shawn Sterling 2013-02-21 09:03:53 UTC
Wow, thank you for the insanely fast response!

The drive is just a data partition, I will attach the output of the /proc/partitions in case you need it (though I suspect you won't anymore).

You are indeed correct, doing a mdmon --takeover --all, caused everything to stop blocking. 

Did I miss the boat on some documentation? I googled this for quite some time but didn't find anything about needing to do a mdmon. 

Thank you for your time.

Comment 6 Shawn Sterling 2013-02-21 09:04:38 UTC
Created attachment 700409 [details]
cat /proc/partitions

Comment 7 Jes Sorensen 2013-02-21 10:18:50 UTC
Shawn,

Just lucky timing really, plus this is an ongoing saga that has been causing
grief for quite a while. We spent a long time coming up with a solution
handling the case of BIOS RAID as the root device, but I guess handling it
for a data device didn't get sorted.

This is a bug and it needs to get fixed, but I need to figure out how to
fix it, without breaking the root device case.

Cheers,
Jes

Comment 8 Jes Sorensen 2013-02-28 14:48:09 UTC
*** Bug 911399 has been marked as a duplicate of this bug. ***

Comment 9 Jes Sorensen 2013-03-01 08:50:22 UTC
*** Bug 916319 has been marked as a duplicate of this bug. ***

Comment 10 Mordechai Butrashvily 2013-03-01 10:29:27 UTC
Hi Jes,

Is there any way we can assist beside providing more information?

I'm a kernel developer among other things, and maybe we can assist somehow.

Regards,
Moti.

Comment 11 Jes Sorensen 2013-10-11 12:11:36 UTC
Shawn,

Are you still seeing this with the latest updates applied? I have been running
a number of tests on Fedora 18+19 and I can no longer reproduce this.

Thanks,
Jes

Comment 12 Mordechai Butrashvily 2013-10-12 18:58:40 UTC
(In reply to Jes Sorensen from comment #11)
> Shawn,
> 
> Are you still seeing this with the latest updates applied? I have been
> running
> a number of tests on Fedora 18+19 and I can no longer reproduce this.
> 
> Thanks,
> Jes

Hi Jes,

I'm not sure if the problem is completely gone, but still with all the latest updates for Fedora 18, the Intel RAID device is not activated upon boot.
I have to do it manually with "sudo mdadm --run /dev/md126".

Regards,
Moti.

Comment 13 Mordechai Butrashvily 2013-10-12 19:04:55 UTC
Well, in fact the problem still persists. I experienced it by mistake by activating the RAID array, mounting it (automatically with fstab), but not executing mdmon --takeover --all.

When shutting down, the system hangs (the screen shows "a stop job is waiting for unmounting ......", with the proper mount of the RAID array).

Sorry,
Moti.

Comment 14 Jes Sorensen 2013-10-14 08:41:10 UTC
Moti,

I don't see your system config listed anywhere in this bug. Can you please
provide your /etc/mdadm.conf, /proc/mdstat, and output from
rpm -q kernel mdadm dracut

What is on top of md126 device? LVM? partitions?

Thanks,
JEs

Comment 15 Mordechai Butrashvily 2013-10-14 16:06:18 UTC
Created attachment 812099 [details]
cat /etc/mdadm.conf

Comment 16 Mordechai Butrashvily 2013-10-14 16:06:53 UTC
Created attachment 812100 [details]
cat /proc/mdstat

Comment 17 Mordechai Butrashvily 2013-10-14 16:07:48 UTC
Created attachment 812101 [details]
sudo rpm -q kernel mdadm dracut

Obviously running with the latest kernel (3.10.14-100).

Comment 18 Mordechai Butrashvily 2013-10-14 16:09:16 UTC
(In reply to Jes Sorensen from comment #14)
> Moti,
> 
> I don't see your system config listed anywhere in this bug. Can you please
> provide your /etc/mdadm.conf, /proc/mdstat, and output from
> rpm -q kernel mdadm dracut
> 
> What is on top of md126 device? LVM? partitions?
> 
> Thanks,
> JEs

Correct, now they are attached.
The cat /proc/mdstat is before activating the array and mounting any partition.
In fact, the RAID has only a single partition over the disk. It's an NTFS volume.

Comment 19 Jes Sorensen 2013-10-14 16:19:06 UTC
Any reason why you are explicitly configuring your IMSM array in mdadm.conf
and not use leaving say:

AUTO +imsm +1.x -all

?

I haven't tried specifying IMSM arrays like this manually, so I am not sure if
that would have an impact on how it gets configured. In particular if there is
any impact on the order of specifying the container versus the array itself.

Could you try commenting out the two ARRAY lines and just enabling the AUTO
line?

Jes

Comment 20 Mordechai Butrashvily 2013-10-14 16:32:21 UTC
Yes, just did to check it out and nothing happens (rebooting, the file system is not mounted and the array not activated, have to do that manually).

It was due to old experiments a year ago, trying to make the array active (assuming it was some configuration issue).

Regards,
Moti.

Comment 21 Fedora End Of Life 2013-12-21 11:35:03 UTC
This message is a reminder that Fedora 18 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 18. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '18'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 18's end of life.

Thank you for reporting this issue and we are sorry that we may not be 
able to fix it before Fedora 18 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior to Fedora 18's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 22 Mordechai Butrashvily 2013-12-21 16:20:07 UTC
Can we promote this bug to Fedora 19?
Since it still persists there.

Moti.

Comment 23 Jes Sorensen 2014-01-08 15:49:35 UTC
Moving to F19 so we don't lose track of this

Comment 24 Mordechai Butrashvily 2014-06-03 06:49:52 UTC
Hi,

I've installed CentOS 6.5 x64 on a system with Intel RAID configured.

Some issues to consider:
1) When the RAID (1) array contains both a NTFS and ext4 partitions, the anaconda installed didn't start the array during installation (had to do it manually in shell, and even after that the installer failed loading the partition scheme because of ntfs).

2) When a new array (RAID 1, similar) was created in the "BIOS", completely empty, the installer recognized it properly, allowed to create any partitions scheme and the array is started when the system boots automatically (no manual configuration whatsoever).
Even though it's a data partition and not the root/boot filesystem.

Maybe it will provide further insight to track this down as the behavior is pretty similar to Fedora.

Regards,
Moti.

Comment 25 Fedora End Of Life 2015-01-09 17:42:04 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 26 Mordechai Butrashvily 2015-01-11 10:59:39 UTC
This issue still persists with new Fedora versions.
Guess it is worth to keep it open until solved.

Comment 27 Fedora End Of Life 2015-11-04 14:12:23 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 28 Mordechai Butrashvily 2015-11-04 14:26:04 UTC
Well, an important notification since the problem still persists.
I have recently upgraded to Fedora 22, and now the system completely hangs upon shutdown (if mdadm devices were activated).

Comment 29 Fedora End Of Life 2015-12-02 02:43:58 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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