No, the installer is completely unaware. What I was getting at is that
rebalancing (and installing the bootloader) is dead easy, so it doesn't
bug me personally much. It'd be nice to eventually get something in the
installer to make it obvious to the oblivious that it can be done and
how, but in the meantime, it's frankly easier to set up btrfs-raid
WITHOUT installer support than it is to set up mdraid WITH installer support
Install process for 4-drive btrfs-raid10 root on Ubuntu (desktop or server):
1. do single-disk install on first disk, default all the way through
except picking btrfs instead of ext4 for /
2. sfdisk -d /dev/sda | sfdisk /dev/sdb ; sfdisk -d /dev/sda | sfdisk
/dev/sdc ; sfdisk -d /dev/sda | sfdisk /dev/sdd
3. btrfs dev add /dev/sdb1 /dev/sdc1 /dev/sdd1 /
4. btrfs balance start -dconvert=raid10 -mconvert=raid10 /
5. grub-install /dev/sdb ; grub-install /dev/sdc ; grub-install /dev/sdd
Done. The rebalancing takes less than a minute, and the system's
responsive while it happens. Once you've done the grub-install on the
additional drives, you're good to go - Ubuntu already uses the UUID
instead of a device ID for GRUB and fstab, so the btrfs mount will scan
all drives and find any that are there. The only hitch is the need to
mount degraded that I Chicken Littled about earlier so loudly. =)
On 01/06/2014 05:05 PM, Chris Murphy wrote:
On Jan 6, 2014, at 12:25 PM, Jim Salter <jim@xxxxxxxxx> wrote:
FWIW, Ubuntu (and I presume Debian) will work just fine with a single / on btrfs, single or multi disk.
I currently have two machines booting to a btrfs-raid10 / with no separate /boot, one booting to a btrfs single disk / with no /boot, and one booting to a btrfs-raid10 / with an ext4-on-mdraid1 /boot.
Did you create the multiple device layouts outside of the installer first?
What I'm seeing in the Ubuntu 12.03.04 installer is a choice of which disk to put the bootloader. If that's reliable UI, then it won't put it on both disks which means a single point of failure in which case -o degraded not being automatic with Btrfs is essentially pointless if we don't have a bootloader. I also see no way in the UI to even create Btrfs raid of any sort.
Chris Murphy
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html