Bug 678315 - btrfs -- VFS: Cannot open root device
Summary: btrfs -- VFS: Cannot open root device
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: dracut
Version: 6.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Harald Hoyer
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-17 14:56 UTC by Lubos Kocman
Modified: 2011-05-10 11:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-10 11:22:56 UTC
Target Upstream Version:


Attachments (Terms of Use)
Traceback (450.63 KB, image/jpeg)
2011-02-17 14:56 UTC, Lubos Kocman
no flags Details

Description Lubos Kocman 2011-02-17 14:56:38 UTC
Created attachment 479345 [details]
Traceback

Description of problem:

I just updated my kernel to kernel-2.6.32-114.0.1.el6.x86_64 and I'm not able to boot with btrfs root.

2.6.32-71.el6.x86_64 works fine for me


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

kernel-2.6.32-114.0.1.el6.x86_64


How reproducible:


Steps to Reproduce:
1. install kernel-2.6.32-114.0.1.el6.x86_64 on machine with btrfs root
2. reboot
  
Actual results:

See screenshot

Expected results:


Additional info:


bash-4.1$ sudo btrfs filesystem show
failed to read /dev/sr0
Label: none  uuid: 3ac0e1f4-4e3c-414d-bced-c14372590725
	Total devices 1 FS bytes used 4.27GB
	devid    1 size 9.77GB used 6.64GB path /dev/dm-0

Label: none  uuid: 0ab8b872-a236-4d28-82cf-bb6c8e6b6797
	Total devices 1 FS bytes used 393.61MB
	devid    1 size 11.72GB used 3.04GB path /dev/dm-2

Btrfs Btrfs v0.19
bash-4.1$ sudo lvscan 
  ACTIVE            '/dev/rootvg/shared_home' [11.72 GiB] inherit
  ACTIVE            '/dev/rootvg/rhel6x64_root' [9.77 GiB] inherit
  ACTIVE            '/dev/rootvg/swap' [2.00 GiB] inherit
bash-4.1$

Comment 1 Eric Sandeen 2011-02-17 15:22:09 UTC
Have tools such as dracut changed as well since the working kernel was installed?

It would be interesting to grab, say, 2.6.32-72.el6.x86_64 internally, install it (with --oldpackage) and see if you have the same problem.  If so, it's possibly a dracut/mkinitramfs/support tool type change that is causing this...

Comment 2 Lubos Kocman 2011-02-18 10:20:04 UTC
Updated: dracut-004-39.el6.noarch
Updated: dracut-kernel-004-39.el6.noarch

Comment 3 Lubos Kocman 2011-02-18 12:17:03 UTC
Issue does not happen with kernel-2.6.32-117.el6.x86_64

Comment 4 Lubos Kocman 2011-03-03 09:23:12 UTC
Does not happen any more with newer kernels. CURRENTRELEASE?

Comment 5 Lubos Kocman 2011-03-07 12:15:41 UTC
Occured again with kernel-2.6.32-119.el6.x86_64

Comment 6 Lubos Kocman 2011-03-10 21:33:37 UTC
kernel-2.6.32-119.el6.x86_64
dracut-kernel-004-43.el6.noarch
dracut-004-43.el6.noarch


kernel-2.6.32-118.el6.x86_64 works fine. 
Do you have any idea what might be wrong?

Comment 7 Lubos Kocman 2011-03-10 21:35:34 UTC
This is weird:


title Red Hat Enterprise Linux Client (2.6.32-119.el6.x86_64)
	root (hd0,1)
	kernel /vmlinuz-2.6.32-119.el6.x86_64 ro root=/dev/mapper/rootvg-rhel6x64_root rd_LVM_LV=rootvg/rhel6x64_root rd_LVM_LV=rootvg/swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet

title Red Hat Enterprise Linux Client (2.6.32-118.el6.x86_64)
	root (hd0,1)
	kernel /vmlinuz-2.6.32-118.el6.x86_64 ro root=/dev/mapper/rootvg-rhel6x64_root rd_LVM_LV=rootvg/rhel6x64_root rd_LVM_LV=rootvg/swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet
	initrd /initramfs-2.6.32-118.el6.x86_64.img



bash-4.1$ ls /boot/ | grep 119
config-2.6.32-119.el6.x86_64
symvers-2.6.32-119.el6.x86_64.gz
System.map-2.6.32-119.el6.x86_64
vmlinuz-2.6.32-119.el6.x86_64

Initramfs is completely missing

Comment 8 Ric Wheeler 2011-03-22 11:33:30 UTC
We will certainly have a look, but btrfs is a tech preview item so I do not think that this failure will be a blocker.

We will investigate before changing any flags.

Thanks!

Comment 9 Ric Wheeler 2011-04-06 18:32:21 UTC
Josef, can you weigh in here - is this really worth pulling into 6.1? Can it wait for 6.2?

Comment 10 Josef Bacik 2011-04-06 18:44:33 UTC
It doesn't look like a btrfs specific issue to me, it just looks like the initramfs isn't getting created properly, so its either a dracut problem or a problem with the kernel's install post script.

Comment 11 Ric Wheeler 2011-04-06 18:51:25 UTC
Sounds like we need analysis from the dracut side?

Comment 12 Harald Hoyer 2011-04-08 08:10:39 UTC
I need the output of:
# lsinitrd /boot/initramfs-....img

of both images

Then you can add "rdinitdebug rdbreak rdshell" and remove "quiet" and can inspect /init.log.

Maybe mount /boot by hand and copy over /init.log.

Maybe also the output of "dmesg".

Comment 13 Harald Hoyer 2011-04-08 08:11:02 UTC
(In reply to comment #12)
> I need the output of:
> # lsinitrd /boot/initramfs-....img
> 
> of both images
> 
> Then you can add "rdinitdebug rdbreak rdshell" and remove "quiet" and can
> inspect /init.log.

to the kernel command line of the failing kernel...

> 
> Maybe mount /boot by hand and copy over /init.log.
> 
> Maybe also the output of "dmesg".

Comment 15 Phil Knirsch 2011-04-21 13:37:48 UTC
Hi Josef.

Time is running out for RHEL-6.1, so if you could please add the requested information that Harald asked in comment #12 and comment #13 we'd greatly appreciate it.

Thanks & regards, Phil

Comment 16 Eric Sandeen 2011-04-21 14:39:50 UTC
I think that ideally Lubos should respond to these questions, as he was the one with the original problem?  Unless Josef can reproduce...

Comment 21 Lubos Kocman 2011-05-10 11:22:56 UTC
Issue does not occur any more to me. Closing as not a bug.


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