Issue with RAID on Rocky

Dear all, I have a serious issue with RAID on Rocky 9.8.

I am running a RAID1 with two 24TB disks.

cat /proc/mdstat

Personalities : [raid1]
md0 : active raid1 sdb1[1] sda1[2]
23437637568 blocks super 1.2 [2/2] [UU]
bitmap: 5/175 pages [20KB], 65536KB chunk

If I REMOVE 1 disk, it all works well. With 2 disks on the RAID1, I get ATA errors and the machine randomly reboots!!!

I even changed one of the disks. So I am convinced it is a motherboard/Rocky compatibility issue.

Here is what the log looks like:

Sep 24 02:06:29 CASGPUserver kernel: ata2: EH complete
Sep 24 02:06:29 CASGPUserver kernel: ata2.00: configured for UDMA/133
Sep 24 02:06:29 CASGPUserver kernel: ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
Sep 24 02:06:29 CASGPUserver kernel: ata2: hard resetting link
Sep 24 02:06:29 CASGPUserver kernel: ata2.00: status: { DRDY }
Sep 24 02:06:29 CASGPUserver kernel: ata2.00: cmd 61/08:90:10:08:00/00:00:00:00:00/40 tag 18 ncq dma 4096 out
res 40/00:01:00:4f:c2/00:00:00:00:00/00 Emask 0x4 (timeout)
Sep 24 02:06:29 CASGPUserver kernel: ata2.00: failed command: WRITE FPDMA QUEUED
Sep 24 02:06:29 CASGPUserver kernel: ata2: SError: { CommWake 10B8B LinkSeq }
Sep 24 02:06:29 CASGPUserver kernel: ata2.00: exception Emask 0x0 SAct 0x40000 SErr 0x8c0000 action 0x6 frozen
Sep 24 02:06:13 CASGPUserver systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Sep 24 02:06:03 CASGPUserver systemd[1]: Started Network Manager Script Dispatcher Service.

I get these ALL THE TIME, ever so often. Testing the disks with SMART shows NO ERRORs.

Is there a fix? Is this a kernel issue? Can I use an external hardware RAID? Which ones are compatible?

Thank you very much for all your help,
Christos.

I expect this problem is exascerbated by the size of the disks and the mount of sync needed. Googling “linux software raid 1 24tb disks performance issues WRITE FPDMA QUEUED”, shows me some stuff like this:

And recommendations:

might be a good place to start. But yeah, if this is software raid connected to your motherboard it probably cannot handle it. You’d be looking at a raid controller no doubt instead. Looking at the RHEL hardware compatibility list should give you an idea of which raid controllers are supported.

You can check and filter for storage here: Search results - Red Hat Ecosystem Catalog