RE: Can anyone boot a system using btrfs root with linux 3.14 or newer? - RESOLVED

2014-04-27 Thread Пламен Петров
The problem reported in this thread has been RESOLVED. It's not BTRFS's fault. Debugging on my part led to the actual problem in do_mounts.c - some filesystems mount routines return error codes other than 0, EACCES and EINVAL and such return codes result in the kernel panicking without trying

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? - RESOLVED

2014-04-27 Thread Martin
On 27/04/14 13:00, Пламен Петров wrote: The problem reported in this thread has been RESOLVED. It's not BTRFS's fault. Debugging on my part led to the actual problem in do_mounts.c - some filesystems mount routines return error codes other than 0, EACCES and EINVAL and such return codes

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-25 Thread Duncan
Chris Mason posted on Thu, 24 Apr 2014 20:08:28 -0400 as excerpted: On 04/24/2014 08:04 PM, Chris Murphy wrote: So I don't think the order is it. The biggest difference I'm seeing between the 3.13.11 and 3.14.1 dmesg's provided: 3.13.11: [1.861740] bio: create slab bio-1 at 1 [

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Fajar A. Nugraha
On Thu, Apr 24, 2014 at 10:23 AM, Chris Murphy li...@colorremedies.com wrote: It sounds like either a grub.cfg misconfiguration, or a failure to correctly build the initrd/initramfs. So I'd post the grub.cfg kernel command line for the boot entry that works and the entry that fails, for

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Chris Mason
On 04/23/2014 04:58 PM, Marc MERLIN wrote: On Wed, Apr 23, 2014 at 10:37:44PM +0300, Пламен Петров wrote: So now, we're kind of guessing. To save us all time, could you capture a serial console boot from the running 3.13 and then the failing 3.14. Well, for the details - see for example

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Chris Mason
On 04/24/2014 08:34 AM, Chris Mason wrote: On 04/23/2014 04:58 PM, Marc MERLIN wrote: On Wed, Apr 23, 2014 at 10:37:44PM +0300, Пламен Петров wrote: So now, we're kind of guessing. To save us all time, could you capture a serial console boot from the running 3.13 and then the failing 3.14.

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Chris Mason [mailto:c...@fb.com] Sent: Thursday, April 24, 2014 3:36 PM To: Marc MERLIN; Пламен Петров Cc: linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On 04/24/2014 08:34 AM, Chris Mason

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Пламен Петров [mailto:pla...@petrovi.no-ip.info] Sent: Wednesday, April 23, 2014 10:38 PM To: 'Marc MERLIN' Cc: 'linux-btrfs@vger.kernel.org' Subject: RE: Can anyone boot a system using btrfs root with linux 3.14 or newer? -Original Message-

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Marc MERLIN
On Thu, Apr 24, 2014 at 08:19:21PM +0300, Пламен Петров wrote: I just realized that the l gave no way for identifying the particular bugzilla entry. Here it is: https://bugzilla.kernel.org/show_bug.cgi?id=74261 Thanks. But to save us a lot more speculation, can you please try booting a linux

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Marc MERLIN [mailto:m...@merlins.org] Sent: Thursday, April 24, 2014 8:33 PM To: Пламен Петров Cc: linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On Thu, Apr 24, 2014 at 08:19:21PM +0300,

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Marc MERLIN
On Thu, Apr 24, 2014 at 09:51:30PM +0300, Пламен Петров wrote: So, here is what I did: My debug VM had: sda sda1 200 MB /boot - ext2 sda2 5 GB / - BTRFS sda3 5 GB / - XFS sda4 One extra partition used for mangling (XFS). sda2 and sda3 were mostly the same, except

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Marc MERLIN [mailto:m...@merlins.org] Sent: Thursday, April 24, 2014 10:31 PM To: Пламен Петров Cc: linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On Thu, Apr 24, 2014 at 09:51:30PM +0300,

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Chris Murphy
On Apr 24, 2014, at 12:51 PM, Пламен Петров pla...@petrovi.no-ip.info wrote: I booted 3.14.1 using sda3 as root, and then tried mounting sda2. It went OK, here is what dmesg said: [ 12.412465] Btrfs loaded For me, with Btrfs not compiled in the kernel, and with an initramfs, on SSD I

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Chris Murphy [mailto:li...@colorremedies.com] Sent: Friday, April 25, 2014 12:06 AM To: Пламен Петров Cc: 'Marc MERLIN'; linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On Apr 24, 2014, at

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Chris Murphy
On Apr 24, 2014, at 2:26 PM, Пламен Петров pla...@petrovi.no-ip.info wrote: -Original Message- From: Marc MERLIN [mailto:m...@merlins.org] You said using rootwait as recommended by Chris Mason did not help. What output are you getting when you use this? The image file attached

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Marc MERLIN
On Fri, Apr 25, 2014 at 01:22:32AM +0300, Пламен Петров wrote: -Original Message- From: Chris Murphy [mailto:li...@colorremedies.com] Sent: Friday, April 25, 2014 12:06 AM To: Пламен Петров Cc: 'Marc MERLIN'; linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Chris Murphy
On Apr 24, 2014, at 5:07 PM, Marc MERLIN m...@merlins.org wrote: In 3.14 the device shows up before btrfs is loaded: sd 2:0:0:0: [sda] Cache data unavailable sd 2:0:0:0: [sda] Assuming drive cache: write through sd 2:0:0:0: [sda] Attached SCSI disk (...) Btrfs loaded Same for me

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Chris Mason
On 04/24/2014 08:04 PM, Chris Murphy wrote: On Apr 24, 2014, at 5:07 PM, Marc MERLIN m...@merlins.org wrote: In 3.14 the device shows up before btrfs is loaded: sd 2:0:0:0: [sda] Cache data unavailable sd 2:0:0:0: [sda] Assuming drive cache: write through sd 2:0:0:0: [sda] Attached SCSI

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Chris Murphy [mailto:li...@colorremedies.com] Sent: Friday, April 25, 2014 3:04 AM To: Marc MERLIN Cc: Пламен Петров; linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On Apr 24, 2014, at 5:07

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-24 Thread Пламен Петров
-Original Message- From: Chris Mason [mailto:c...@fb.com] Sent: Friday, April 25, 2014 3:08 AM To: Chris Murphy; Marc MERLIN Cc: Пламен Петров; linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On 04/24/2014 08:04 PM,

Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Пламен Петров
Can anyone boot a system using btrfs root with linux 3.14 or newer? Because I can't. I'm trying to move some 3.13.x based systems to 3.14.x and the kernel panics during boot. It says to append a correct root=sdaX partition, but the one provided is correct, because if use 3.13.x with the same

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Marc MERLIN
On Wed, Apr 23, 2014 at 08:30:08PM +0300, Пламен Петров wrote: Can anyone boot a system using btrfs root with linux 3.14 or newer? Because I can't. It works fine for me. I'm trying to move some 3.13.x based systems to 3.14.x and the kernel panics during boot. It says to append a correct

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Hugo Mills
On Wed, Apr 23, 2014 at 11:54:13AM -0700, Marc MERLIN wrote: On Wed, Apr 23, 2014 at 08:30:08PM +0300, Пламен Петров wrote: Can anyone boot a system using btrfs root with linux 3.14 or newer? Because I can't. It works fine for me. I'm trying to move some 3.13.x based systems to

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Marc MERLIN
On Wed, Apr 23, 2014 at 10:06:12PM +0300, Пламен Петров wrote: Just to clarify - I am using a monolithic kernel built from source, and it has all the stuff it needs to support built-in, and then some. And no modules. The sources I'm using are the vanilla kernels from Linus and Greg KH

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Kai Krakow
Пламен Петров pla...@petrovi.no-ip.info schrieb: I'm going with the module suggestion from Marc, too. /dev/sda2 / btrfs relatime,compress=zlib 0 0 This line looks kinda useless to me. The compress=zlib option won't be applied at boot and cannot be changed at

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Пламен Петров
-Original Message- From: Marc MERLIN [mailto:m...@merlins.org] Sent: Wednesday, April 23, 2014 10:16 PM To: Пламен Петров Cc: linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On Wed, Apr 23, 2014 at 10:06:12PM +0300,

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Calvin Walton
On Wed, 2014-04-23 at 21:06 +0200, Kai Krakow wrote: Пламен Петров pla...@petrovi.no-ip.info schrieb: I'm going with the module suggestion from Marc, too. /dev/sda2 / btrfs relatime,compress=zlib 0 0 This line looks kinda useless to me. The compress=zlib

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Marc MERLIN
On Wed, Apr 23, 2014 at 10:37:44PM +0300, Пламен Петров wrote: So now, we're kind of guessing. To save us all time, could you capture a serial console boot from the running 3.13 and then the failing 3.14. Well, for the details - see for example here:

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Marc MERLIN
On Thu, Apr 24, 2014 at 12:54:57AM +0300, Пламен Петров wrote: It may help to look up what error -38 translates into for that mount error. My searches so far failed to return anything useful to solving this problem. Yeah, I searched before you :) this would require reading the kernel source

RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Пламен Петров
-Original Message- From: Marc MERLIN [mailto:m...@merlins.org] Sent: Thursday, April 24, 2014 1:03 AM To: Пламен Петров Cc: linux-btrfs@vger.kernel.org Subject: Re: Can anyone boot a system using btrfs root with linux 3.14 or newer? On Thu, Apr 24, 2014 at 12:54:57AM +0300,

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Chris Murphy
On Apr 23, 2014, at 1:06 PM, Kai Krakow hurikhan77+bt...@gmail.com wrote: Пламен Петров pla...@petrovi.no-ip.info schrieb: I'm going with the module suggestion from Marc, too. /dev/sda2 / btrfs relatime,compress=zlib 0 0 This line looks kinda useless to

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Hugo Mills
On Wed, Apr 23, 2014 at 03:03:12PM -0700, Marc MERLIN wrote: On Thu, Apr 24, 2014 at 12:54:57AM +0300, Пламен Петров wrote: It may help to look up what error -38 translates into for that mount error. My searches so far failed to return anything useful to solving this problem.

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Chris Murphy
The screen shot provided makes it clear that one of the following kernel parameters is incorrect: root=/dev/mapper/cryptroot rootflags=subvol=root So either the dmcrypt volume hasn't been opened, thus isn't available; or rootfs isn't on a subvolume named root found at the top level of the

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Hugo Mills
On Wed, Apr 23, 2014 at 04:40:33PM -0600, Chris Murphy wrote: The screen shot provided makes it clear that one of the following kernel parameters is incorrect: root=/dev/mapper/cryptroot rootflags=subvol=root So either the dmcrypt volume hasn't been opened, thus isn't available; or

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Marc MERLIN
On Wed, Apr 23, 2014 at 11:43:03PM +0100, Hugo Mills wrote: On Wed, Apr 23, 2014 at 04:40:33PM -0600, Chris Murphy wrote: The screen shot provided makes it clear that one of the following kernel parameters is incorrect: root=/dev/mapper/cryptroot rootflags=subvol=root So

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Hugo Mills
On Wed, Apr 23, 2014 at 03:50:18PM -0700, Marc MERLIN wrote: On Wed, Apr 23, 2014 at 11:43:03PM +0100, Hugo Mills wrote: On Wed, Apr 23, 2014 at 04:40:33PM -0600, Chris Murphy wrote: The screen shot provided makes it clear that one of the following kernel parameters is incorrect:

Re: Can anyone boot a system using btrfs root with linux 3.14 or newer?

2014-04-23 Thread Chris Murphy
It sounds like either a grub.cfg misconfiguration, or a failure to correctly build the initrd/initramfs. So I'd post the grub.cfg kernel command line for the boot entry that works and the entry that fails, for comparison. And then also check and see if whatever utility builds your initrd has