05-10-2019, 11:47 AM
(05-10-2019, 11:19 AM)Thatoo Wrote: I asked for help on #rock64:matrix.org matrix room chat but couldn't get any help there.
If I understand well, you setup the RAID1 correctly, then you partition and format it, and finally you installed armbian script to install it in order to boot on SD and have the system on SATA/
Am I correct?
Sort of. With btrfs, you create the partition first, on one drive, and format it, before adding the second drive. With just one drive, and letting nand-sata-install format the partition as btrfs, booting worked fine. After the nand-sata-install script is when I turned the one-drive btrfs partition into a two-drive RAID1 btrfs partition. (That's one of the advantages that btrfs has over mdraid: it's super easy to add drives to an existing configuration.)
Quote:And after all that, when you reboot it, it didn't work.
What didn't work?
It didn't boot at all? or does it boot from SD but don't reach system on the RAID1 SATA?
Are both of your drive correctly powered? I could read many people talking about power problem, need of external power supply and stuff, a button to push to power SATA drives... [I can't find back these threads...].
At this point, I just know it didn't boot up completely. The white LED turns on for a bit, and then turns off. I can't connect to it on the network. There's no monitor attached, so I don't know if it's displaying any error messages. But I will hook up a monitor if necessary to debug this.
Some research suggests that there is some special configuration that needs to be done to the bootloader for booting multi-drive btrfs partitions. I'm still looking into it. Unfortunately, there isn't as much knowledge out there on btrfs compared to mdraid, since btrfs isn't as mature.
Quote:Right now I found that thread : https://forum.pine64.org/showthread.php?...ight=raid1
I hope you'll manage to make it work and do a beautiful tutorial for other newbies.
Thank you.
I saw that thread. I think the power supply issue depends on the exact drives in use. So far, I don't suspect that, because the RAID1 configuration works fine until I reboot.
Anyway, I'm continuing to work on this.