Jeremi Piotrowski <jeremi.piotrowski <at> gmail.com> writes:

> In general I have not had any problems setting up similar gentoo systems
> running pure btrfs in raid1/single mode. Those systems, however, all have
> initramfs' - not that that's a bad thing but see above.

I too am also interested in booting a btrfs-raid1 all btrfs file system
based gentoo, without an interramfs. Some discussions I've read 
seem to indicate this has occurred already; so maybe it's just a situation
where the knowledge and tricks just need to be disseminated more clearly.

> Btw. testing the mentioned patch turned out to be a 5 minute thing.
> qemu-img create to make 2 disk images, qemu boot sysresuecd, create 2
> device btrfs volume, mount, unpack stage3 and shutdown. Patch spare kernel
> in host, compile and boot passing the kernel and cmdline from outside the
> guest. Works nicely for quick testing (forgot to set root passwd? who
> cares, it boots!).


Here [1] on the Btrfs 'gotchas' page are some interesting and related
problems described in some detail. Also in the kernel pages [2] hint at
issues with file systems that may be related; but more digging will is
needed. I hope a documented solution is verified and integrated into Rich's
btrfs, raid-1 install notes: [3] .


The 'printk' comments are very similar to how and why 'netconsole' was
used to diagnose booting issues with the kernel, hardware, fs  etc etc [4].
This use of netconsole to perform a 'fine grained debug'  of the kernel boot
processes is something I hope to figure out and put into an automated gentoo
installer as a integral part of the installation semantics, for gentoo. All
you need is the system's ethernet port up and a second system to receive the
(printk) data stream.

hth,
James

[1] https://btrfs.wiki.kernel.org/index.php/Gotchas

[2]
http://kernelnewbies.org/Linux_4.0#head-6e2ee9e5b7cfdb480861fda324a804734dc14f89

[3] https://docs.google.com/document/
d/1VJlJyYLTZScta9a81xgKOIBjYsG3_VfxxmUSxG23Uxg/edit?pli=1

[4] https://www.kernel.org/doc/Documentation/networking/netconsole.txt






Reply via email to