All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Пламен Петров" <plamen@petrovi.no-ip.info>
To: "'Marc MERLIN'" <marc@merlins.org>
Cc: <linux-btrfs@vger.kernel.org>
Subject: RE: Can anyone boot a system using btrfs root with linux 3.14 or newer?
Date: Thu, 24 Apr 2014 23:26:48 +0300	[thread overview]
Message-ID: <000001cf5ffb$84da9020$8e8fb060$@petrovi.no-ip.info> (raw)
In-Reply-To: <20140424193117.GQ26949@merlins.org>

> -----Original Message-----
> From: Marc MERLIN [mailto:marc@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, Пламен Петров 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 /etc/fstab, for obvious
> reasons.
> >
> > 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
> > [   86.490078] BTRFS: device fsid 2ba08fbc-4b95-46cc-b638-299f16462620
> devid 1 transid 22 /dev/sda2
> > [   86.492947] BTRFS info (device sda2): disk space caching is enabled
> > [   86.579155] BTRFS: creating UUID tree
> > [   86.748681] mount (1899) used greatest stack depth: 2560 bytes left
> 
> Ok, that's good news. It indeed rules out that your new kernel cannot mount
> an older btrfs filesystem.
> 
> At this point, you may have a problem with the device not being available
> when btrfs tries to mount it.

Need a way to pinpoint the actual problem then.

> 
> > From the above - the first obvious thing is that with 3.13.11 BTRFS gets
> loaded much earlier in the boot process - that is why the second dmesg
> dump is much larger, and both start at " Btrfs loaded" - mind you.
> >
> > Next was booting the BTRFS sda2 with 3.14.1.
> > Sadly, it panicked again. So, no dmesg dump - just a screenshot. See the
> attached file.
> > So, what got changed during the 3.14 merge window, that messed up
> booting for BTRFS partitions?
> > Should I try building an "allyesconfig" kernel, in case something is messed
> up with my kernel .configs?
> > What do you think guys and galls?
> > Anything you want me try  - this is entirely disposable VM now, so I'll gladly
> try everything you ask...
> 
> So, I'm not sure how many people use btrfs built it vs as a module. Clearly the
> code works for mounting your partition, but when built in the kernel, there
> seems to be a timing issue.

Yeah, and an issue that just popped up with kernels >= 3.14. If memory serves - I started using BTRFS on linux 3.6.x, and since then I followed exactly the same method of upgrading the kernel - described in this thread and in the bugzilla entry - and it always "Just Works" TM!

> 
> For reference, you said this was the bug where you found the CL that causes
> this change:
> https://bugzilla.kernel.org/show_bug.cgi?id=74261
> 
> 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 to my previous mail applies to both rootwait and no-rootwait cases. Result is always a kernel panic for 3.14.x on BTRFS root. All other filesystem/kernel combos just work either way.

> 
> By the way, you should be able to define a pseudo serial port in your VM and
> specify something like
> console=tty0 console=ttyS0,38400n8
> on your boot command line.
> This will give you serial console output in text that you can cut/paste/diff

I will try and use this the next time.
Thanks!
---------------------------------
Plamen Petrov



  reply	other threads:[~2014-04-24 20:27 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23 17:30 Can anyone boot a system using btrfs root with linux 3.14 or newer? Пламен Петров
2014-04-23 18:33 ` Swâmi Petaramesh
2014-04-23 18:54 ` Marc MERLIN
2014-04-23 19:02   ` Hugo Mills
2014-04-23 19:06   ` Пламен Петров
2014-04-23 19:15     ` Marc MERLIN
2014-04-23 19:37       ` Пламен Петров
2014-04-23 20:58         ` Marc MERLIN
2014-04-23 21:54           ` Пламен Петров
2014-04-23 22:03             ` Marc MERLIN
2014-04-23 22:20               ` Пламен Петров
2014-04-23 22:40                 ` Chris Murphy
2014-04-23 22:43                   ` Hugo Mills
2014-04-23 22:50                     ` Marc MERLIN
2014-04-23 22:53                       ` Hugo Mills
2014-04-23 22:41               ` Hugo Mills
2014-04-24 12:34           ` Chris Mason
2014-04-24 12:36             ` Chris Mason
2014-04-24 17:08               ` Пламен Петров
2014-04-24 17:19       ` Пламен Петров
2014-04-24 17:33         ` Marc MERLIN
2014-04-24 17:44           ` Пламен Петров
2014-04-24 18:51           ` Пламен Петров
2014-04-24 19:31             ` Marc MERLIN
2014-04-24 20:26               ` Пламен Петров [this message]
2014-04-24 21:47                 ` Chris Murphy
2014-04-24 21:06             ` Chris Murphy
2014-04-24 21:23               ` Пламен Петров
     [not found]               ` <000c01cf600b$b01f6cf0$105e46d0$@petrovi.no-ip.info>
2014-04-24 23:07                 ` Marc MERLIN
2014-04-25  0:04                   ` Chris Murphy
2014-04-25  0:08                     ` Chris Mason
2014-04-25  5:04                       ` Пламен Петров
2014-04-25  7:02                       ` Duncan
2014-04-25  5:03                     ` Пламен Петров
2014-04-23 19:06 ` Kai Krakow
2014-04-23 20:25   ` Calvin Walton
2014-04-23 22:34   ` Chris Murphy
2014-04-24  3:23 ` Chris Murphy
2014-04-24  6:27   ` Fajar A. Nugraha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000001cf5ffb$84da9020$8e8fb060$@petrovi.no-ip.info' \
    --to=plamen@petrovi.no-ip.info \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=marc@merlins.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.