Bug 538079

Summary: dracut built initramfs hanging while activating volume groups
Product: [Fedora] Fedora Reporter: Jeff Layton <jlayton>
Component: dracutAssignee: Harald Hoyer <harald>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 13CC: greenrd, harald, rtresidd, steved, vesa.ruokonen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dracut-005-5.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-27 22:55:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
console output from hung dracut boot
none
dracut debug output
none
udevadm info and dmsetup ls output none

Description Jeff Layton 2009-11-17 15:02:11 UTC
Created attachment 369897 [details]
console output from hung dracut boot

Patched up my rawhide KVM guest today and it installed kernel-2.6.32-0.48.rc7.git1.fc13.x86_64. When booting, dracut gets to the point where it's bringing up the root LVM volume group and then just hangs.

When I rebuilt the initrd with mkinitrd instead, it boots all the way up without any issue.

Relevant package versions:

dracut-002-22.git200e5914.fc13.noarch
mkinitrd-6.0.93-1.fc12.x86_64
kernel-2.6.32-0.48.rc7.git1.fc13.x86_64

Comment 1 Harald Hoyer 2009-11-17 16:33:01 UTC
FATAL: Module dm_mod not found.

Comment 2 Harald Hoyer 2009-11-17 16:34:27 UTC
hmm, maybe compiled in the kernel..

can you boot with: "rdinitdebug" added to the kernel command line?

Comment 3 Harald Hoyer 2009-11-17 16:40:52 UTC
oh and maybe also "rdudevinfo"

Comment 4 Jeff Layton 2009-11-17 19:02:40 UTC
Created attachment 369934 [details]
dracut debug output

Here's the requested dracut debug output.

Comment 5 Jeff Layton 2009-11-17 19:05:54 UTC
And yes...dm_mod appears to be built in.

Comment 6 Harald Hoyer 2009-11-26 10:01:57 UTC
udevd-work[86]: RUN '$env{DM_SBIN_PATH}/dmsetup udevcomplete $env{DM_COOKIE}' /etc/udev/rules.d/95-dm-notify.rules:12

udevd-work[245]: program '/usr/sbin/dmsetup' not found


seems like DM_SBIN_PATH is set incorrectly..

Comment 7 Robin Green 2009-12-17 16:43:23 UTC
*** Bug 537944 has been marked as a duplicate of this bug. ***

Comment 8 Harald Hoyer 2010-02-18 12:26:42 UTC
still a problem?

Comment 9 Robin Green 2010-03-05 06:54:42 UTC
Nope, not on F13.

Comment 10 Bug Zapper 2010-03-15 13:03:52 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle.
Changing version to '13'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 11 Vesa Ruokonen 2010-08-12 22:10:51 UTC
My Fedora upgrade (11->13) failed also because LVM based root-fs could not be found. This occurred first with preupgrade, and then with "yum upgrade".
After adding kernel command line parameter "rdshell", I saw the directory /dev/mapper didn't have any volumes. But running "lvm vgchange -a y" initialized them, and booting continued fine.
So it seems like dracut isn't initializing LVM before attempting to mount root-fs.
Is there a way the feed commands for dracut to be executed before mount?

Comment 12 Harald Hoyer 2010-08-13 08:05:39 UTC
(In reply to comment #11)
> My Fedora upgrade (11->13) failed also because LVM based root-fs could not be
> found. This occurred first with preupgrade, and then with "yum upgrade".
> After adding kernel command line parameter "rdshell", I saw the directory
> /dev/mapper didn't have any volumes. But running "lvm vgchange -a y"
> initialized them, and booting continued fine.
> So it seems like dracut isn't initializing LVM before attempting to mount
> root-fs.
> Is there a way the feed commands for dracut to be executed before mount?    

Does it help to recreate the initramfs image after you managed to boot?

# dracut -f

If not, what is your kernel command line?

Comment 13 Vesa Ruokonen 2010-08-14 08:11:54 UTC
(In reply to comment #12)
> Does it help to recreate the initramfs image after you managed to boot?
> # dracut -f

No. The image is created and its size is different, but booting still
fails.
 
> If not, what is your kernel command line?

Kernel command line: ro root=UUID=76cf1bb2-2050-4e4f-a336-ad9b9debc181 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=fi-latin1 rdshell

The result is the same if I boot with only ro & root parameters.

Comment 14 Harald Hoyer 2010-08-16 06:55:47 UTC
(In reply to comment #13)
> (In reply to comment #12)
> > Does it help to recreate the initramfs image after you managed to boot?
> > # dracut -f
> 
> No. The image is created and its size is different, but booting still
> fails.
> 
> > If not, what is your kernel command line?
> 
> Kernel command line: ro root=UUID=76cf1bb2-2050-4e4f-a336-ad9b9debc181
> SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=fi-latin1 rdshell
> 
> The result is the same if I boot with only ro & root parameters.

what is the output of:

# for i in /dev/sd*; do echo $i; udevadm info --query=all --name=$i;done
# dmsetup ls --tree

Comment 15 Vesa Ruokonen 2010-08-16 15:58:25 UTC
Created attachment 438982 [details]
udevadm info and dmsetup ls output

Comment 16 Harald Hoyer 2010-08-16 19:50:40 UTC
E: ID_FS_TYPE=LVM1_member

oh... LVM1 !!! not LVM2!

edit: /usr/share/dracut/modules.d/90lvm/64-lvm.rules

change "LVM2_member" to "LVM?_member" , recreate the dracut image with:

# dracut -f

and it might work.

Or convert your LVM1 to version 2, if that is possible.

Comment 17 Vesa Ruokonen 2010-08-17 16:49:01 UTC
Yes, now it works! I didn't convert to LVM2 yet, but only changed the "LVM?_member" in 64-lvm.rules.
Instead of giving up after last sr line, I now get;

sr 1:0:1:0: Attached scsi generic sg2 type 5
dracut: Scanning devices sda2  for LVM volume groups 
dracut: Reading all physical volumes. This may take a while...
dracut: Found volume group "Volume00" using metadata type lvm1
dracut: 7 logical volume(s) in volume group "Volume00" now active
kjournald starting.  Commit interval 5 seconds
EXT3-fs (dm-0): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/mapper/Volume00-LogVol00

Comment 18 Fedora Update System 2010-09-23 15:32:15 UTC
dracut-005-4.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/dracut-005-4.fc13

Comment 19 Fedora Update System 2010-09-23 15:33:37 UTC
dracut-005-4.fc12 has been submitted as an update for Fedora 12.
https://admin.fedoraproject.org/updates/dracut-005-4.fc12

Comment 20 Fedora Update System 2010-09-24 20:39:19 UTC
dracut-005-4.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dracut'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/dracut-005-4.fc12

Comment 21 Richard Tresidder 2010-10-16 17:12:54 UTC
Just like to report that I encountered this problem during a Fedora 14 Beta install. 
Follwed instructions as per comment 16..
edit: /usr/share/dracut/modules.d/90lvm/64-lvm.rules

change "LVM2_member" to "LVM?_member" , recreate the dracut image with:

# dracut -f

and all was well again..
Though I was rather annoyed by the time I found this..

Situation was
  LVM root on an md raid (mirrored between sd[ab]1)
  /boot on md raid sd[ab]0

Nothing I've not done in the past..

I'm not sure exactly how to retest the installer before it goes to release...??

Cheers
  Richard

Comment 22 Fedora Update System 2010-10-27 22:54:12 UTC
dracut-005-5.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 23 Fedora Update System 2010-10-30 23:38:48 UTC
dracut-005-5.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.