linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Confusing...
@ 2011-04-30 20:42 A. James Lewis
  2011-04-30 22:30 ` Confusing Hugo Mills
  0 siblings, 1 reply; 2+ messages in thread
From: A. James Lewis @ 2011-04-30 20:42 UTC (permalink / raw)
  To: linux-btrfs


After completing an installation of Ubuntu 11.04 with a separate /boot
partition and BTRFS as the main filesystem (Ubuntu creates subvolumes for
/ and /home).

sda1 being the GPT stuff
sda2 being most of the disk as BTRFS
sda3 being /boot
sda4 being swap

sdb having an identical partition table...

I patched everything up to date, rebooted to make sure that all was ok..
and then ran:-

btrfs device add /dev/sdb2 /
sync
reboot

The system stops in initrd unable to find the root filesystem...

It's my understanding that nothing should change here, am I missing
something, I don't see how it can even tell I've added more storage, let
alone fail to boot.

-- 
A. James Lewis (james@fsck.co.uk)
"Engineering does not require science. Science helps a lot but people built
perfectly good brick walls long before they knew why cement works."



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Confusing...
  2011-04-30 20:42 Confusing A. James Lewis
@ 2011-04-30 22:30 ` Hugo Mills
  0 siblings, 0 replies; 2+ messages in thread
From: Hugo Mills @ 2011-04-30 22:30 UTC (permalink / raw)
  To: A. James Lewis; +Cc: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 1750 bytes --]

On Sat, Apr 30, 2011 at 09:42:39PM +0100, A. James Lewis wrote:
> 
> After completing an installation of Ubuntu 11.04 with a separate /boot
> partition and BTRFS as the main filesystem (Ubuntu creates subvolumes for
> / and /home).
> 
> sda1 being the GPT stuff
> sda2 being most of the disk as BTRFS
> sda3 being /boot
> sda4 being swap
> 
> sdb having an identical partition table...
> 
> I patched everything up to date, rebooted to make sure that all was ok..
> and then ran:-
> 
> btrfs device add /dev/sdb2 /
> sync
> reboot
> 
> The system stops in initrd unable to find the root filesystem...
> 
> It's my understanding that nothing should change here, am I missing
> something, I don't see how it can even tell I've added more storage, let
> alone fail to boot.

   In order to mount a multi-volume btrfs filesystem, the kernel needs
to know all of the devices that make up the filesystem. It can't do
that itself, so it needs some userspace assistance. Your system needs
to run "btrfs dev scan" from the initrd before attempting to mount the
root filesystem. On Debian, installing btrfs-tools will (I believe)
set that up.

   To get the system booting again temporarily, you could try adding
the option "mount=device=/dev/sda2,device=/dev/sdb2" (I think) to the
kernel command-line parameter in your boot loader. That should give
enough information to the initrd to be able to find the volumes that
your btrfs lives on, and get you enough of a system that you can work
out what's wrong with your initrd.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
                --- If it ain't broke,  hit it again. ---                

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-30 22:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-30 20:42 Confusing A. James Lewis
2011-04-30 22:30 ` Confusing Hugo Mills

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).