PINE64
Install OS on RAID1 thanks to dual SATA board? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: General (https://forum.pine64.org/forumdisplay.php?fid=1)
+--- Forum: Getting Started (https://forum.pine64.org/forumdisplay.php?fid=21)
+--- Thread: Install OS on RAID1 thanks to dual SATA board? (/showthread.php?tid=7472)

Pages: 1 2


RE: Install OS on RAID1 thanks to dual SATA board? - markb1 - 05-13-2019

It was a busy weekend, so no real progress. But I'm thinking the bootloader doesn't support this configuration, or needs to be configured differently. Some cursory examination of the filesystem didn't reveal what bootloader is being used. (Perhaps having a monitor attached will help! I will be doing that, when I get a chance.)

My understanding of bootloaders is limited, I guess, because I don't understand why the bootloader needs to understand the root filesystem. It just loads the kernel and passes some information about where to look, and then the kernel decodes the filesystem, or so I thought. Or maybe that's true, and any bootloader can be configured to pass the correct information to the kernel.


RE: Install OS on RAID1 thanks to dual SATA board? - markb1 - 05-15-2019

I figured it out! I updated the list of steps above with the fix.

The gist of it is that "btrfs device scan" must be run before a multi-device btrfs filesystem can be mounted. I don't know why this is the case, but it is. See: https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices#Device_scanning

From there, it was just a matter of figuring out how to get this command to be run before the root filesystem is mounted. I used initramfs-tools to cause a simple script to be run on bootup to do this. For that to take effect, the initramfs image has to be updated. See the updated steps in my earlier post for exactly how to do it.

If you follow my steps, please let me know how it turns out!


RE: Install OS on RAID1 thanks to dual SATA board? - Thatoo - 05-15-2019

Thank you.
I hope it will helps many.
I'll let you know when I'll try.