1 |
On 9 Aug 2015 17:15, "Jeremi Piotrowski" <jeremi.piotrowski@×××××.com> |
2 |
wrote: |
3 |
> |
4 |
> On Wed, Jul 29, 2015 at 12:53 PM, Bruce Schultz <brulzki@×××××.com> wrote: |
5 |
> > On 29 July 2015 6:18:43 AM AEST, Neil Bothwick <neil@××××××××××.uk> |
6 |
wrote: |
7 |
> >> On Wed, 29 Jul 2015 05:29:18 +1000, Bruce Schultz wrote: |
8 |
> >>> But I think you do if your btrfs is raid 1. The kernel can't mount |
9 |
> >>> multidisk btrfs until it done a btrfs device scan in userspace, run |
10 |
> >>> from initramfs. |
11 |
> >> |
12 |
> >> According to the btrfs wiki you can pass |
13 |
> >> device=/dev/sda1,device=/dev/sdb1 on the kernel boot line. |
14 |
> > |
15 |
> > I'd forgotten that option. Btrfs wiki also says this though: |
16 |
> > |
17 |
> > "Using device is not recommended, as it is sensitive to device names |
18 |
> > changing. You should really be using a initramfs. Most modern |
19 |
distributions |
20 |
> > will do this for you automatically if you install their own btrfs-progs |
21 |
> > package." |
22 |
> |
23 |
> I was wondering if *anyone* has actually seen this work. I'm referring to |
24 |
> booting a raid1 btrfs volume without performing a user-space device scan, |
25 |
> using only the kernel `rootflags=device` setting. I have been struggling |
26 |
with |
27 |
> this in various settings and am slowly starting to believe that this |
28 |
scenario |
29 |
> is simply broken. |
30 |
|
31 |
It works, but a patched kernel is needed. Take a look at |
32 |
https://forums.gentoo.org/viewtopic-p-7275724.html The patch there was |
33 |
still working on the latest kernel a while ago. I used it on 2 of my |
34 |
systems, but I moved on and now using dracut everywhere. |