* "No filesystem could mount root" after adding a second device to fs
@ 2009-11-30 11:41 Leszek Ciesielski
2009-11-30 14:51 ` Josef Bacik
0 siblings, 1 reply; 2+ messages in thread
From: Leszek Ciesielski @ 2009-11-30 11:41 UTC (permalink / raw)
To: linux-btrfs
Hi,
after adding a second device to a btrfs filesystem (kernel 2.6.31)
used for root fs, I am getting a "No filesystem could mount root"
message upon reboot. Is the caveat
"btrfsctl -a is used to scan all of the block devices under /dev and
probe for Btrfs volumes. This is required after loading the btrfs
module if you're running with more than one device in a filesystem. "
still true? If yes, is there a technical reason for it - am I wrong to
assume that btrfs could execute the scan upon mount request when the
filesystem requires it for assembling?
Regards,
Leszek 'skolima' Ciesielski
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "No filesystem could mount root" after adding a second device to fs
2009-11-30 11:41 "No filesystem could mount root" after adding a second device to fs Leszek Ciesielski
@ 2009-11-30 14:51 ` Josef Bacik
0 siblings, 0 replies; 2+ messages in thread
From: Josef Bacik @ 2009-11-30 14:51 UTC (permalink / raw)
To: Leszek Ciesielski; +Cc: linux-btrfs
On Mon, Nov 30, 2009 at 12:41:29PM +0100, Leszek Ciesielski wrote:
> Hi,
>
> after adding a second device to a btrfs filesystem (kernel 2.6.31)
> used for root fs, I am getting a "No filesystem could mount root"
> message upon reboot. Is the caveat
>
> "btrfsctl -a is used to scan all of the block devices under /dev and
> probe for Btrfs volumes. This is required after loading the btrfs
> module if you're running with more than one device in a filesystem. "
>
> still true? If yes, is there a technical reason for it - am I wrong to
> assume that btrfs could execute the scan upon mount request when the
> filesystem requires it for assembling?
>
The btrfs module needs to have an idea of what devices are available for it to
use. The btrfsctl -a needs to be done in userspace since it scans /dev for
block devices to probe to see if they are btrfs devices. To do it in the kernel
would require calling out to userspace to run btrfsctl -a for the uncommon case
that you are booting from a multi-disk setup. Hopefully as btrfs becomes more
and more common distributions will start putting btrfsctl -a in their initrd's
if they detect you have a mutli-disk root. Thanks,
Josef
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-30 14:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-30 11:41 "No filesystem could mount root" after adding a second device to fs Leszek Ciesielski
2009-11-30 14:51 ` Josef Bacik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox