1 |
Rich Freeman <rich0 <at> gentoo.org> writes: |
2 |
|
3 |
> > As many know, I have made many failed attempts to get btrfs in raid 1 |
4 |
> > working on gentoo, and have to this date, failed. |
5 |
|
6 |
> Interesting. I've never had any problems with it. I boot using |
7 |
> grub2+dracut with root on a single-device btrfs, and /usr on a |
8 |
> multi-device raid1 btrfs (and dracut mounts both). |
9 |
|
10 |
WE should focus on Peter's needs, as this is his thread. |
11 |
|
12 |
> As long as you pass a valid root= dracut should just find and mount |
13 |
> all the devices for your root. Note that it will attempt to read |
14 |
> /etc/fstab and remount your root using whatever is in that, so make |
15 |
> sure it is valid. |
16 |
|
17 |
> Some relevant config: |
18 |
> from grub.cfg: |
19 |
> linux /root1/boot/vmlinuz-3.18.19 |
20 |
> root=UUID=7d9f3772-a39c-408b-9be0-5fa26eec8342 ro |
21 |
> rootflags=subvol=root1 init=/usr/lib/systemd/systemd |
22 |
> video=1920x1080-32 <at> 60 crashkernel=64M net.ifnames=0 |
23 |
> libahci.ignore_sss=1 |
24 |
> initrd /root1/boot/initramfs-3.18.19.img |
25 |
|
26 |
> from fstab: |
27 |
> /dev/disk/by-uuid/7d9f3772-a39c-408b-9be0-5fa26eec8342 / |
28 |
> btrfs noatime,ssd,nodiscard,compress=none 0 0 |
29 |
> /dev/disk/by-uuid/cd074207-9bc3-402d-bee8-6a8c77d56959 /data |
30 |
> btrfs noatime,compress=none 0 0 |
31 |
|
32 |
> Compression is transparent - the mount option only affects future |
33 |
> writes to the device, and you don't need anything to correctly mount |
34 |
> the drive. |
35 |
|
36 |
I have dozens and dozens of excellent links on btrfs. I've read hundreds and |
37 |
hundreds of postings and docs, some even about other folks successes with |
38 |
btrfs and raid-1. I can install btrfs and put gentoo on it. Successfully |
39 |
configuring the system files, rebooting and enjoying raid-1 on btrfs evades |
40 |
me. I file a bug (bgo 548930) requesting support for btrfs in the |
41 |
gentoo handbook. It's not even assigned to anyone............... |
42 |
|
43 |
So, a smart (and really cool dude like yourself) surely can take the |
44 |
handbook, and edit out an experimental version that only address btrfs-raid |
45 |
one? That way a following of folks could 'monkey see monkey do' install |
46 |
gentoo on raid -1? (You'd be a very popular person with lots of |
47 |
commoners..... (struggling admin types?). |
48 |
|
49 |
The way I see it there are (2) main cases and (2) minor cases:: |
50 |
|
51 |
(1) main case:: efi system with drives >2T |
52 |
(1_a) minor case efi system with drives <2T |
53 |
|
54 |
(2) main case :: mbr/bios system with Drives <2T |
55 |
(2_b) minor case:: mbr/bios system with drive >2T |
56 |
|
57 |
Either of these cases in a format of the gentoo handbook, could |
58 |
simple removed all references to all files systems but btrfs. |
59 |
Hell, I'd be willing to send some dollars to whomever or (whatever charity) |
60 |
for that...... |
61 |
|
62 |
Once that happens, then surely we could get an unofficial install script.... |
63 |
|
64 |
|
65 |
Note:: the OpenSuse-13.2 install does not even need a ext boot partition as |
66 |
it uses btrfs for every partition. I think that sort of doc, is really what |
67 |
Peter, myself and many others need:: and is consistent with 'the gentoo way'? |
68 |
|
69 |
In my mind all new/default gentoo installs should be raid-1 as that would |
70 |
eliminate many postings for help on gentoo_user {imho} YMMV. |
71 |
|
72 |
|
73 |
James |