To whom it may concern: Software Raid works fine, but with about half speed
Hi, How is your construction? Both sata or aditional controller? how powered? Which raid-level?
which Kernel/Kernel-modules?
Regards Frank
Hi Frank, thereās not much construction anyway. I used both sata connectors for 2 identical 320 GB Notebook Drives which I found in the workshop. The second Drive is indeed powered by the āFanā connector. (Found out by risking an old HDD) I think, the āFanā Label might be wrong.
I use the original Ubuntu image, regularly updated. No modules, no nothing just mdadmin creating a RAID1. I defined 3 mirrored Partitions: /var, /home and /Data. Thus, I can boot from the first SD-Card-Partition, mount / on the single 8GB Partition on the emmc-chip and then /var, /home and /Data from HDD. This gives me the following opportunities: the SD-Card is readonly (longer life ) The System as such is located on the relatively fast EMMC, and having /var and /home on HDD gives me a bit more space on emmc.
Too sad ich canāt append Pictures here, but if you like, you can take a look here:

Hey cool, didnāt know this would work
Have a perfect new year with plenty of free hours for your family and the R2
yours Thomas
I assume that the fan is pwmā¦but i have no oscilloscope here to check that.
did you install to emmc via bpi-copy or manual?
How is the display connected and controlled (gpio seems not connected)?
also a happy new year to you and your family.
If the āFanā was PWM (as I expected too) shouldnāt the HDD die after a couple of days? I really could imagine itās just labelled falsely. But - to make sure - in a final rack-mount I will take care of that and give the drives a serious power-supply. (I already have something in mind)
I didnāt use bpi-copy, I made one linux partition on the EMMC and made it the root partition while booting. With rsync -ax I copied the root partition from the SD there. And ever once in a while I make a Backup of the EMMD back to the SD.
As I couldnāt activate I²C (you remember that other thread) I had to attach the I²C-Display to an Arduino, which is attached to the R2 via USB. On the Arduino there is a simple program listening for a line and displaying it on the first line moving the older lines down. Thus, I must not care about the Display programming and have a simple Python script reading mqtt-messages and serial print the new line to the arduino
Are you are using RAID 1?
Yep, I do But obviously the power-connector labeled āFanā was not a good idea. It worked, but it was never reliable. What I need is the harddisk cabeling for the second power output. As long as it worked, it worked fine
Could you tell me what kind of connector I need for that 4-ping connector? 4x 1.25mm? 4x1.5mm???
Could this one fit? https://www.artekit.eu/products/prototyping/wires/jst-ph-4-pin-cable-with-male-female-connector/
60 Pieces??? Jesus!!!
Okay thank you maybe I get a few somewhere
Iāve just ordered some
I can send you some,but crimping is a bit trickyā¦and i thinks itās not cheaper
No thank you, I found them a bit cheaper, and Iāll need those things ever once i a while
Do you want to use the power supply from 4-pin header on R2, right?
if yes, itās the 4x2.54mm.
And please note that the FAN connector is to connect FAN, and the voltage can be adjusted by PWM, and Iām not sure if itās stable for hard drive.
Thanks Gary
Iāve tried to use the āFanā connector for a Harddisk because the usual HDD cables have those 2-pin connectors. Additionally, when this neat aluminum case was first shown to us, I believe it was cabled like this.
Somehow it worked, but not reliable. Now i have ordered a couple of 4-pin connectors. When they arrive (which will take some time) Iāll give it another try. If raid 1 will prove reliability and performance over time, one could use the R2 as a Nas-system. which might be interesting.
Have you added something to my kernel-config to get raid working?
Sorry, haben“t done it yet. In summer my motorbike and my boat have some attraction too. But when i tried with your 4.14 repo I found i must start from Scratch, because there was no .config file
we needed CONFIG_DM_RAID and CONFIG_MD_RAIDxxx too
see https://github.com/frank-w/BPI-R2-4.14/commit/cd7be06a72433b01d6e343320079aa7d5965f0dc