On Fri, Jul 31, 2015 at 11:50 AM, James <wirel...@tampabay.rr.com> wrote:
>
> As many know, I have made many failed attempts to get btrfs in raid 1 working
> on gentoo, and have to this date, failed.
>

Interesting. I've never had any problems with it.  I boot using
grub2+dracut with root on a single-device btrfs, and /usr on a
multi-device raid1 btrfs (and dracut mounts both).

As long as you pass a valid root= dracut should just find and mount
all the devices for your root.  Note that it will attempt to read
/etc/fstab and remount your root using whatever is in that, so make
sure it is valid.

Some relevant config:
from grub.cfg:
linux   /root1/boot/vmlinuz-3.18.19
root=UUID=7d9f3772-a39c-408b-9be0-5fa26eec8342 ro
rootflags=subvol=root1 init=/usr/lib/systemd/systemd
video=1920x1080-32@60 crashkernel=64M net.ifnames=0
libahci.ignore_sss=1
initrd  /root1/boot/initramfs-3.18.19.img

from fstab:
/dev/disk/by-uuid/7d9f3772-a39c-408b-9be0-5fa26eec8342          /
btrfs           noatime,ssd,nodiscard,compress=none     0 0
/dev/disk/by-uuid/cd074207-9bc3-402d-bee8-6a8c77d56959          /data
btrfs           noatime,compress=none           0 0

Compression is transparent - the mount option only affects future
writes to the device, and you don't need anything to correctly mount
the drive.

--
Rich

Reply via email to