Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st May 2011, 12:04 AM
PaulDestefano Offline
Registered User
 
Join Date: Oct 2010
Posts: 15
linuxfirefox
F14 dracut cannot find root, "sleeping forever", after growing md raid root VOL

Without changing anything related to grub, the kernel, or dracut, my system no longer boots (by itself) after I added another disk to an existing boot-able single-disk md RAID (Linux RAID) configuration. The boot log looks like this:

...
Autoassembling MD Raid
...

No root device, sleeping forever


Background:
My system has been running for several years with two md RAID (Linux RAID) partitions on a single drive: one for the /boot filesystem and one for an encrypted LVM volume where everything else lives, including the root filesystem.

When I originally built the RAID partitions, I only had one HDD. I anticipated getting another one in the future, so I set up two MD partitions as single-drive RAID1 devices.

Well, I finally got another disk and added it. This process couldn't have gone more smoothly. I added the drive to my computer, partitioned it into two MD partitions, and added the appropriate partition to the corresponding existing RAID device. Immediately the RAID devices started synchronizing to the new drive. Both sync operations completed successfully and the devices were "clean."

The next time I rebooted, I got the error shown above. dracut couldn't find the root partition.

*Okay, here's the part I don't understand*
When I boot with kernel option "rdshell" I can easily assemble both md devices by hand:

mdadm --assemble /dev/md0 <dev1> <dev2>
mdadm --assemble /dev/md1 <dev1> <dev2>

And that's all it takes. I just exit the dracut shell, and the system boots just fine. It prompts me to unlock the encrypted volume and boots up.

So, why can't dracut assemble the RAID devices by itself? Here are some ideas.
1) outdated mdadm.conf: the mdadm.conf in the old initramfs image still shows device-num=1
2) metadata version 0.9 : some people suggest there exists an ambiguity regarding the superblock with v0.9, where as version 1.0 does not have this problem.
3) mdadm.conf: something else is wrong in mdadm.conf.

I can't tell what dracut is doing when it says "Autoassembling MD Raid". It's obviously not doing it correctly. But, I don't know why. The UUID of the devices hasn't changed, the kernel boot parameters haven't changed. The only thing that has changed is the number of devices in the RAID device. But, I don't know why that would affect assembly. All the partitions are correctly labeled id=fd, Linux raid autodetect.

---------- Post added at 03:21 PM ---------- Previous post was at 03:19 PM ----------

Hmm, naturally, found this right after posting. This is *exactly* my problem.

http://forums.fedoraforum.org/showthread.php?t=255964

But, removing the redundant disk isn't really a good solution. I'm going to see if updating the mdadm.conf with the right number of devices will work.

---------- Post added at 04:04 PM ---------- Previous post was at 03:21 PM ----------

Yes, just setting 'num-devices=2' (it was =1, previously) in mdadm.conf *in the initramfs image* fixed everything.

But, from what I can tell, this option isn't even required. I see recommendations to use the output of 'mdadm --examine --scan' for your mdadm.conf. That doesn't seem exactly right, but maybe for the ARRAY lines, at least.

I'm going to simply remove the num-devices= option and seem what happens, but it might be a while before I reboot again. I'll try to remember to update this post with the results.
Reply With Quote
  #2  
Old 1st May 2011, 12:31 AM
diamond_ramsey's Avatar
diamond_ramsey Offline
Registered User
 
Join Date: Aug 2009
Posts: 752
macossafari
Re: F14 dracut cannot find root, "sleeping forever", after growing md raid root VOL

If possible then post your grub.conf file contents.
__________________
2 dual cores, 11 GB RAM, F14 Laughlin - 2.6.35.14-106.fc14.x86_64 & 2.6.35.14-106.fc14.i686.PAE
2 dual cores, 11 GB RAM, F15 Lovelock - 2.6.43.8-2.fc15.x86_64 & 2.6.43.8-2.fc15.i686
3 dual cores, 19 GB RAM, F16 Verne - 3.6.2-1.fc16.x86_64 & 3.6.2-1.fc16.i686
2 dual cores, 11 GB RAM, F17 Beefy Miracle - 3.6.2-4.fc17.x86_64 / .i686
16 x86_64 computing cores,80 GB RAM & 8 SATA Seagate 7200.12 500 GB harddisks
Reply With Quote
  #3  
Old 28th May 2011, 11:45 PM
PaulDestefano Offline
Registered User
 
Join Date: Oct 2010
Posts: 15
linuxfirefox
Re: F14 dracut cannot find root, "sleeping forever", after growing md raid root VOL

As promised, I did test mdadm.conf without the 'num-devices=' option and it works, as expected. So, 'num-devices' is NOT required (at least in F14). That's seems like the best solution to me and I've left it out going forward.

Why it was there and when might it be required is unknown. It's possible that it was put there as a result of the process I used to create a mirror (or RAID 1) array with only one device. That seems possible. But, I still don't know if it is required in that case. I suspect not.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel fake RAID1 rebuild, "boot has failed, sleeping forever" rag Using Fedora 1 22nd March 2011 03:46 PM
What does this mean: "No root device found. Boot has failed, sleeping forever?" Cityscape Using Fedora 1 7th May 2010 06:56 AM
"Warning : cannot find root file system" clare314 Installation and Live Media 3 22nd April 2009 11:08 PM
"WARNING: Cannot find root file system", when F10 Live CD boots. cybercytes Installation and Live Media 1 27th January 2009 09:37 AM
"WARNING: Cannot find root file system!" when booting Live CD Lollan Installation and Live Media 1 5th December 2007 05:14 AM


Current GMT-time: 02:08 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat