Rock Pi 4 2 disks changing

For some reason after I’ve got my raid all set up and mounted 2 of the disks suddenly become re-added as sde and sdf when they were sdc and sdd when I made the raid. Now it’s obviously broken…

I don’t even know where to start with this? :distorted_face:

When I reboot they’re back to normal, but the raid can no longer be mounted:

$>sudo mount /dev/md0 /mnt/raid10
mount: /mnt/raid10: can't read superblock on /dev/md0.
       dmesg(1) may have more information after failed mount system call.

dmesg:

[  227.608355] mount: attempt to access beyond end of device
               md0: rw=4096, sector=2, nr_sectors = 2 limit=0
[  227.608400] EXT4-fs (md0): unable to read superblock

Rebuild your raid. Metadata might be corrupted.

So I’ve set it up from new twice now and both times two of the disks disappeared and got new letters.

As it’s two of four disks in the raid10 array there’s no way to recover it (luckily no data on there to speak of yet - only tests)

Both times this has happened it’s been sdc and sdd become sde and sdf.

Could this somehow be power related? I am using the 12V 5A adapter that was an optional inclusion from the store where I ordered the kit from…

The drives I got apparently operate at about 1.4 to 1.55 W (Crucial BX500 2TB)

There’s nothing else plugged into the pi but the Quad Sata hat and the drives…

Distributor ID:	Debian
Description:	Debian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

$ uname -r
6.12.75+rpt-rpi-v8

They got new letters because the original device name was still used by RAID device.

This sounds like some kind of power stability issue. Can you try using each disks normally without setting up the raid? It might be caused by spin up current is too high for your power supply, when RAID brings them up at the same time. Can you share the disk model as well?

Wait, this kernel version does not match ROCK Pi 4. What you are actually using?

Rockpi quad sata hat like the details found here: Dual Quad SATA HAT - Radxa Wiki

Is there another product I’ve managed to match the name there?

I’m talking about this. This is not a kernel version we use on our system. What device are you using with Quad HAT?

Ah so - I’m using a normal rpi 4b with a kit.

I had been having some issues with the os installation from a previous project so I figured a fresh install may help. I installed the latest Trixie version from the raspi installer app and discovered quickly that it wasn’t well supported. After building some things and updating some code things have been working better than before and I’m yet to see the same behaviour, but I haven’t stress tested it properly yet either.

I also was following some incomplete instructions for creating the raid array previously and the new steps I’m following are possibly making things better too?

I’m might try and fork the repo and provide a Trixie compatible version if I get the time?

I will update here if the os upgrade and refresh has improved the stability.

Edit: more than 24 hours later and still seems stable. :blush: