Radxa Penta Hat on Raspberry Pi 5 Freezing

I’ve been trying to build a NAS with a Raspberry Pi 5 and a Radxa Penta Sata Hat using OMV and LUKS. The disks are 4 x WD Red SA500 1TB in RAID5 format, but I keep getting the errors below. Would anybody have some ideas as to what could be causing the errors ?

SYSLOG
2024-11-30T08:00:01+0000 piNAS CRON[2027262]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
2024-11-30T08:00:01+0000 piNAS CRON[2027263]: (root) CMD (/usr/sbin/omv-mkrrdgraph >/dev/null 2>&1)
2024-11-30T08:00:03+0000 piNAS CRON[2027262]: pam_unix(cron:session): session closed for user root
2024-11-30T08:05:01+0000 piNAS CRON[2028746]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
2024-11-30T08:05:01+0000 piNAS CRON[2028747]: (root) CMD ( run-parts /var/lib/openmediavault/borgbackup/hourly.d/)
2024-11-30T08:05:01+0000 piNAS CRON[2028746]: pam_unix(cron:session): session closed for user root
2024-11-30T08:09:01+0000 piNAS CRON[2029137]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
2024-11-30T08:09:01+0000 piNAS CRON[2029138]: (root) CMD ( [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
2024-11-30T08:09:01+0000 piNAS CRON[2029137]: pam_unix(cron:session): session closed for user root
2024-11-30T08:09:04+0000 piNAS systemd[1]: Starting phpsessionclean.service - Clean php session files…
2024-11-30T08:09:04+0000 piNAS systemd[1]: phpsessionclean.service: Deactivated successfully.
2024-11-30T08:09:04+0000 piNAS systemd[1]: Finished phpsessionclean.service - Clean php session files.
2024-11-30T08:09:17+0000 piNAS openmediavault-webgui[2029213]: Authorized login from xxx.xxx.xxx.xxx [username=admin, user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0]
2024-11-30T08:09:50+0000 piNAS kernel: ata3.00: exception Emask 0x52 SAct 0x80000000 SErr 0xffffffff action 0xe frozen
2024-11-30T08:09:50+0000 piNAS kernel: ata3: SError: { RecovData RecovComm UnrecovData Persist Proto HostInt PHYRdyChg PHYInt CommWake 10B8B Dispar BadCRC Handshk LinkSeq TrStaTrns UnrecFIS DevExch }
2024-11-30T08:09:50+0000 piNAS kernel: ata3.00: failed command: READ FPDMA QUEUED
2024-11-30T08:09:50+0000 piNAS kernel: ata3.00: cmd 60/20:f8:80:6b:70/00:00:74:00:00/40 tag 31 ncq dma 16384 in
res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x56 (ATA bus error)
2024-11-30T08:09:50+0000 piNAS kernel: ata3.00: status: { DRDY }
2024-11-30T08:09:50+0000 piNAS kernel: ata3: hard resetting link
2024-11-30T08:09:50+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:09:51+0000 piNAS kernel: ata3: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:09:51+0000 piNAS kernel: ata3: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:09:56+0000 piNAS kernel: ata3: hard resetting link
2024-11-30T08:09:56+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:09:57+0000 piNAS kernel: ata3: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:09:57+0000 piNAS kernel: ata3: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:09:57+0000 piNAS kernel: ata3: limiting SATA link speed to
2024-11-30T08:10:02+0000 piNAS kernel: ata3: hard resetting link
2024-11-30T08:10:02+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:03+0000 piNAS kernel: ata3: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:03+0000 piNAS kernel: ata3: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:03+0000 piNAS kernel: ata3.00: disable device
2024-11-30T08:10:03+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:03+0000 piNAS kernel: sd 2:0:0:0: [sdc] tag#31 UNKNOWN(0x2003) Result: hostbyte=0x03 driverbyte=DRIVER_OK cmd_age=44s
2024-11-30T08:10:03+0000 piNAS kernel: sd 2:0:0:0: [sdc] tag#31 CDB: opcode=0x28 28 00 74 70 6b 80 00 00 20 00
2024-11-30T08:10:03+0000 piNAS kernel: I/O error, dev sdc, sector 1953524608 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
2024-11-30T08:10:03+0000 piNAS kernel: ata3: EH complete
2024-11-30T08:10:03+0000 piNAS kernel: sd 2:0:0:0: rejecting I/O to offline device
2024-11-30T08:10:03+0000 piNAS kernel: ata3.00: detaching (SCSI 2:0:0:0)
2024-11-30T08:10:03+0000 piNAS kernel: device offline error, dev sdc, sector 1953524608 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:03+0000 piNAS kernel: device offline error, dev sdc, sector 1953524616 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:03+0000 piNAS kernel: device offline error, dev sdc, sector 1953524624 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:03+0000 piNAS kernel: device offline error, dev sdc, sector 1953524632 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:03+0000 piNAS omv-engined[2029298]: Executing async process failed: Failed to execute command ‘export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; blockdev --getsize64 ‘/dev/sdc’ 2>&1’ with exit code ‘1’: blockdev: cannot open /dev/sdc: No such file or directory (file=/usr/share/php/openmediavault/system/process.inc, line=247)
2024-11-30T08:10:03+0000 piNAS omv-engined[2029298]: Executing background process failed: Device ‘/dev/sdc’ does not exist. (file=/usr/share/php/openmediavault/system/blockdevice.inc, line=76)
2024-11-30T08:10:03+0000 piNAS omv-engined[2029321]: Executing async process failed: Failed to execute command ‘export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; blockdev --getsize64 ‘/dev/sdc’ 2>&1’ with exit code ‘1’: blockdev: cannot open /dev/sdc: No such file or directory (file=/usr/share/php/openmediavault/system/process.inc, line=247)
2024-11-30T08:10:03+0000 piNAS omv-engined[2029321]: Executing background process failed: Device ‘/dev/sdc’ does not exist. (file=/usr/share/php/openmediavault/system/blockdevice.inc, line=76)
2024-11-30T08:10:03+0000 piNAS kernel: sd 2:0:0:0: [sdc] Synchronizing SCSI cache
2024-11-30T08:10:03+0000 piNAS kernel: sd 2:0:0:0: [sdc] Synchronize Cache(10) failed: Result: hostbyte=0x04 driverbyte=DRIVER_OK
2024-11-30T08:10:08+0000 piNAS kernel: md/raid:md0: Disk failure on sdc, disabling device.
2024-11-30T08:10:08+0000 piNAS kernel: md/raid:md0: Operation continuing on 3 devices.
2024-11-30T08:10:19+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:19+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:19+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:20+0000 piNAS kernel: ata2: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:20+0000 piNAS kernel: ata2: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:25+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:25+0000 piNAS kernel: ata1: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:25+0000 piNAS kernel: ata1: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:30+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:30+0000 piNAS kernel: ata4: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:30+0000 piNAS kernel: ata4: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:35+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:36+0000 piNAS kernel: ata1: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:36+0000 piNAS kernel: ata1: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:36+0000 piNAS kernel: ata1: limiting SATA link speed to
2024-11-30T08:10:41+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:41+0000 piNAS kernel: ata2: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:41+0000 piNAS kernel: ata2: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:41+0000 piNAS kernel: ata2: limiting SATA link speed to
2024-11-30T08:10:47+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:47+0000 piNAS kernel: ata4: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:47+0000 piNAS kernel: ata4: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:47+0000 piNAS kernel: ata4: limiting SATA link speed to
2024-11-30T08:10:52+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:53+0000 piNAS kernel: ata2: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:53+0000 piNAS kernel: ata2: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:53+0000 piNAS kernel: ata2.00: disable device
2024-11-30T08:10:53+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:53+0000 piNAS kernel: ata1: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:53+0000 piNAS kernel: ata1: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:53+0000 piNAS kernel: ata1.00: disable device
2024-11-30T08:10:53+0000 piNAS kernel: sd 1:0:0:0: rejecting I/O to offline device
2024-11-30T08:10:53+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:53+0000 piNAS kernel: ata4: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:53+0000 piNAS kernel: I/O error, dev sdb, sector 1953524608 op 0x0:(READ) flags 0x0 phys_seg 4 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524608 on sdb).
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524616 on sdb).
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524624 on sdb).
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524632 on sdb).
2024-11-30T08:10:53+0000 piNAS kernel: sd 0:0:0:0: rejecting I/O to offline device
2024-11-30T08:10:53+0000 piNAS kernel: I/O error, dev sda, sector 1953524608 op 0x0:(READ) flags 0x0 phys_seg 4 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: ata2.00: detaching (SCSI 1:0:0:0)
2024-11-30T08:10:53+0000 piNAS kernel: I/O error, dev sda, sector 8 op 0x0:(READ) flags 0x800 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: ata1.00: detaching (SCSI 0:0:0:0)
2024-11-30T08:10:53+0000 piNAS kernel: ata4: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:53+0000 piNAS kernel: ata4.00: disable device
2024-11-30T08:10:53+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:53+0000 piNAS kernel: sd 3:0:0:0: rejecting I/O to offline device
2024-11-30T08:10:53+0000 piNAS kernel: I/O error, dev sdd, sector 1953524608 op 0x0:(READ) flags 0x0 phys_seg 4 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524608 on sdd).
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524616 on sdd).
2024-11-30T08:10:53+0000 piNAS kernel: ata4.00: detaching (SCSI 3:0:0:0)
2024-11-30T08:10:53+0000 piNAS kernel: device offline error, dev sda, sector 1953524608 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: device offline error, dev sda, sector 1953524616 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: device offline error, dev sda, sector 1953524624 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: device offline error, dev sda, sector 1953524632 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: device offline error, dev sdb, sector 1953524608 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: device offline error, dev sdb, sector 1953524616 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS omv-engined[2029295]: Executing async process failed: Failed to execute command ‘export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; blockdev --getsize64 ‘/dev/sda’ 2>&1’ with exit code ‘1’: blockdev: cannot open /dev/sda: No such device or address (file=/usr/share/php/openmediavault/system/process.inc, line=247)
2024-11-30T08:10:53+0000 piNAS omv-engined[2029296]: Executing async process failed: Failed to execute command ‘export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; blockdev --getsize64 ‘/dev/sdb’ 2>&1’ with exit code ‘1’: blockdev: cannot open /dev/sdb: No such file or directory (file=/usr/share/php/openmediavault/system/process.inc, line=247)
2024-11-30T08:10:53+0000 piNAS omv-engined[2029296]: Executing background process failed: Device ‘/dev/sdb’ does not exist. (file=/usr/share/php/openmediavault/system/blockdevice.inc, line=76)
2024-11-30T08:10:53+0000 piNAS omv-engined[2029301]: Executing async process failed: Failed to execute command ‘export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; blockdev --getsize64 ‘/dev/sdd’ 2>&1’ with exit code ‘1’: blockdev: cannot open /dev/sdd: No such file or directory (file=/usr/share/php/openmediavault/system/process.inc, line=247)
2024-11-30T08:10:53+0000 piNAS omv-engined[2029301]: Executing background process failed: Device ‘/dev/sdd’ does not exist. (file=/usr/share/php/openmediavault/system/blockdevice.inc, line=76)
2024-11-30T08:10:53+0000 piNAS omv-engined[2029295]: Executing background process failed: Failed to execute command ‘export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; udevadm info --query=property --name=’/dev/sda’ 2>&1’ with exit code ‘1’: Unknown device “/dev/sda”: No such device (file=/usr/share/php/openmediavault/system/process.inc, line=247)
2024-11-30T08:10:53+0000 piNAS omv-engined[2029319]: Executing async process failed: Failed to execute command ‘export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; blockdev --getsize64 ‘/dev/sdb’ 2>&1’ with exit code ‘1’: blockdev: cannot open /dev/sdb: No such file or directory (file=/usr/share/php/openmediavault/system/process.inc, line=247)
2024-11-30T08:10:53+0000 piNAS omv-engined[2029319]: Executing background process failed: Device ‘/dev/sdb’ does not exist. (file=/usr/share/php/openmediavault/system/blockdevice.inc, line=76)
2024-11-30T08:10:53+0000 piNAS kernel: sd 1:0:0:0: [sdb] Synchronizing SCSI cache
2024-11-30T08:10:53+0000 piNAS kernel: sd 1:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=0x04 driverbyte=DRIVER_OK
2024-11-30T08:10:53+0000 piNAS kernel: sd 3:0:0:0: [sdd] Synchronizing SCSI cache
2024-11-30T08:10:53+0000 piNAS kernel: sd 3:0:0:0: [sdd] Synchronize Cache(10) failed: Result: hostbyte=0x04 driverbyte=DRIVER_OK
2024-11-30T08:10:53+0000 piNAS omv-engined[2029324]: Executing async process failed: Failed to execute command ‘export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; blockdev --getsize64 ‘/dev/sdd’ 2>&1’ with exit code ‘1’: blockdev: cannot open /dev/sdd: No such file or directory (file=/usr/share/php/openmediavault/system/process.inc, line=247)
2024-11-30T08:10:53+0000 piNAS omv-engined[2029324]: Executing background process failed: Device ‘/dev/sdd’ does not exist. (file=/usr/share/php/openmediavault/system/blockdevice.inc, line=76)
2024-11-30T08:10:53+0000 piNAS omv-engined[2029318]: Executing async process failed: Failed to execute command ‘export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; blockdev --getsize64 ‘/dev/sda’ 2>&1’ with exit code ‘1’: blockdev: cannot open /dev/sda: No such file or directory (file=/usr/share/php/openmediavault/system/process.inc, line=247)
2024-11-30T08:10:53+0000 piNAS omv-engined[2029318]: Executing background process failed: Device ‘/dev/sda’ does not exist. (file=/usr/share/php/openmediavault/system/blockdevice.inc, line=76)
2024-11-30T08:10:53+0000 piNAS kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
2024-11-30T08:10:53+0000 piNAS kernel: sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x04 driverbyte=DRIVER_OK
2024-11-30T08:10:53+0000 piNAS monit[1260]: ‘piNAS’ cpu I/O wait of 95.3% matches resource limit [cpu I/O wait > 95.0%]
2024-11-30T08:10:57+0000 piNAS kernel: md/raid:md0: Disk failure on sda, disabling device.
2024-11-30T08:10:57+0000 piNAS kernel: md/raid:md0: Cannot continue operation (2/4 failed).
2024-11-30T08:10:57+0000 piNAS (udev-worker)[2035766]: sda: Process ‘/sbin/mdadm -If sda --path platform-1000110000.pcie-pci-0000:01:00.0-ata-1.0’ failed with exit code 1.
2024-11-30T08:10:57+0000 piNAS kernel: md/raid:md0: Disk failure on sdb, disabling device.
2024-11-30T08:10:57+0000 piNAS kernel: md/raid:md0: Cannot continue operation (3/4 failed).
2024-11-30T08:10:57+0000 piNAS (udev-worker)[2035767]: sdb: Process ‘/sbin/mdadm -If sdb --path platform-1000110000.pcie-pci-0000:01:00.0-ata-2.0’ failed with exit code 1.
2024-11-30T08:10:57+0000 piNAS kernel: md/raid:md0: Disk failure on sdd, disabling device.
2024-11-30T08:10:57+0000 piNAS kernel: md/raid:md0: Cannot continue operation (4/4 failed).
2024-11-30T08:10:57+0000 piNAS (udev-worker)[2035774]: sdd: Process ‘/sbin/mdadm -If sdd --path platform-1000110000.pcie-pci-0000:01:00.0-ata-4.0’ failed with exit code 1.

DMESG
2024-11-30T08:09:50+0000 piNAS kernel: ata3.00: exception Emask 0x52 SAct 0x80000000 SErr 0xffffffff action 0xe frozen
2024-11-30T08:09:50+0000 piNAS kernel: ata3: SError: { RecovData RecovComm UnrecovData Persist Proto HostInt PHYRdyChg PHYInt CommWake 10B8B Dispar BadCRC Handshk LinkSeq TrStaTrns UnrecFIS DevExch }
2024-11-30T08:09:50+0000 piNAS kernel: ata3.00: failed command: READ FPDMA QUEUED
2024-11-30T08:09:50+0000 piNAS kernel: ata3.00: cmd 60/20:f8:80:6b:70/00:00:74:00:00/40 tag 31 ncq dma 16384 in
res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x56 (ATA bus error)
2024-11-30T08:09:50+0000 piNAS kernel: ata3.00: status: { DRDY }
2024-11-30T08:09:50+0000 piNAS kernel: ata3: hard resetting link
2024-11-30T08:09:50+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:09:51+0000 piNAS kernel: ata3: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:09:51+0000 piNAS kernel: ata3: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:09:56+0000 piNAS kernel: ata3: hard resetting link
2024-11-30T08:09:56+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:09:57+0000 piNAS kernel: ata3: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:09:57+0000 piNAS kernel: ata3: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:09:57+0000 piNAS kernel: ata3: limiting SATA link speed to
2024-11-30T08:10:02+0000 piNAS kernel: ata3: hard resetting link
2024-11-30T08:10:02+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:03+0000 piNAS kernel: ata3: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:03+0000 piNAS kernel: ata3: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:03+0000 piNAS kernel: ata3.00: disable device
2024-11-30T08:10:03+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:03+0000 piNAS kernel: sd 2:0:0:0: [sdc] tag#31 UNKNOWN(0x2003) Result: hostbyte=0x03 driverbyte=DRIVER_OK cmd_age=44s
2024-11-30T08:10:03+0000 piNAS kernel: sd 2:0:0:0: [sdc] tag#31 CDB: opcode=0x28 28 00 74 70 6b 80 00 00 20 00
2024-11-30T08:10:03+0000 piNAS kernel: I/O error, dev sdc, sector 1953524608 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
2024-11-30T08:10:03+0000 piNAS kernel: ata3: EH complete
2024-11-30T08:10:03+0000 piNAS kernel: sd 2:0:0:0: rejecting I/O to offline device
2024-11-30T08:10:03+0000 piNAS kernel: ata3.00: detaching (SCSI 2:0:0:0)
2024-11-30T08:10:03+0000 piNAS kernel: device offline error, dev sdc, sector 1953524608 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:03+0000 piNAS kernel: device offline error, dev sdc, sector 1953524616 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:03+0000 piNAS kernel: device offline error, dev sdc, sector 1953524624 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:03+0000 piNAS kernel: device offline error, dev sdc, sector 1953524632 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:03+0000 piNAS kernel: sd 2:0:0:0: [sdc] Synchronizing SCSI cache
2024-11-30T08:10:03+0000 piNAS kernel: sd 2:0:0:0: [sdc] Synchronize Cache(10) failed: Result: hostbyte=0x04 driverbyte=DRIVER_OK
2024-11-30T08:10:08+0000 piNAS kernel: md/raid:md0: Disk failure on sdc, disabling device.
2024-11-30T08:10:08+0000 piNAS kernel: md/raid:md0: Operation continuing on 3 devices.
2024-11-30T08:10:19+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:19+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:19+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:20+0000 piNAS kernel: ata2: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:20+0000 piNAS kernel: ata2: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:25+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:25+0000 piNAS kernel: ata1: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:25+0000 piNAS kernel: ata1: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:30+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:30+0000 piNAS kernel: ata4: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:30+0000 piNAS kernel: ata4: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:35+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:36+0000 piNAS kernel: ata1: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:36+0000 piNAS kernel: ata1: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:36+0000 piNAS kernel: ata1: limiting SATA link speed to
2024-11-30T08:10:41+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:41+0000 piNAS kernel: ata2: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:41+0000 piNAS kernel: ata2: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:41+0000 piNAS kernel: ata2: limiting SATA link speed to
2024-11-30T08:10:47+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:47+0000 piNAS kernel: ata4: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:47+0000 piNAS kernel: ata4: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:47+0000 piNAS kernel: ata4: limiting SATA link speed to
2024-11-30T08:10:52+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:53+0000 piNAS kernel: ata2: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:53+0000 piNAS kernel: ata2: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:53+0000 piNAS kernel: ata2.00: disable device
2024-11-30T08:10:53+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:53+0000 piNAS kernel: ata1: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:53+0000 piNAS kernel: ata1: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:53+0000 piNAS kernel: ata1.00: disable device
2024-11-30T08:10:53+0000 piNAS kernel: sd 1:0:0:0: rejecting I/O to offline device
2024-11-30T08:10:53+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:53+0000 piNAS kernel: ata4: failed to resume link (SControl FFFFFFFF)
2024-11-30T08:10:53+0000 piNAS kernel: I/O error, dev sdb, sector 1953524608 op 0x0:(READ) flags 0x0 phys_seg 4 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524608 on sdb).
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524616 on sdb).
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524624 on sdb).
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524632 on sdb).
2024-11-30T08:10:53+0000 piNAS kernel: sd 0:0:0:0: rejecting I/O to offline device
2024-11-30T08:10:53+0000 piNAS kernel: I/O error, dev sda, sector 1953524608 op 0x0:(READ) flags 0x0 phys_seg 4 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: ata2.00: detaching (SCSI 1:0:0:0)
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524608 on sda).
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524616 on sda).
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524624 on sda).
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524632 on sda).
2024-11-30T08:10:53+0000 piNAS kernel: I/O error, dev sda, sector 8 op 0x0:(READ) flags 0x800 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: ata1.00: detaching (SCSI 0:0:0:0)
2024-11-30T08:10:53+0000 piNAS kernel: ata4: SATA link down (SStatus FFFFFFFF SControl FFFFFFFF)
2024-11-30T08:10:53+0000 piNAS kernel: ata4.00: disable device
2024-11-30T08:10:53+0000 piNAS kernel: ahci 0000:01:00.0: AHCI controller unavailable!
2024-11-30T08:10:53+0000 piNAS kernel: sd 3:0:0:0: rejecting I/O to offline device
2024-11-30T08:10:53+0000 piNAS kernel: I/O error, dev sdd, sector 1953524608 op 0x0:(READ) flags 0x0 phys_seg 4 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524608 on sdd).
2024-11-30T08:10:53+0000 piNAS kernel: md/raid:md0: read error not correctable (sector 1953524616 on sdd).
2024-11-30T08:10:53+0000 piNAS kernel: ata4.00: detaching (SCSI 3:0:0:0)
2024-11-30T08:10:53+0000 piNAS kernel: device offline error, dev sda, sector 1953524608 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: device offline error, dev sda, sector 1953524616 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: device offline error, dev sda, sector 1953524624 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: device offline error, dev sda, sector 1953524632 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: device offline error, dev sdb, sector 1953524608 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: device offline error, dev sdb, sector 1953524616 op 0x0:(READ) flags 0x4000 phys_seg 1 prio class 2
2024-11-30T08:10:53+0000 piNAS kernel: sd 1:0:0:0: [sdb] Synchronizing SCSI cache
2024-11-30T08:10:53+0000 piNAS kernel: sd 1:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=0x04 driverbyte=DRIVER_OK
2024-11-30T08:10:53+0000 piNAS kernel: sd 3:0:0:0: [sdd] Synchronizing SCSI cache
2024-11-30T08:10:53+0000 piNAS kernel: sd 3:0:0:0: [sdd] Synchronize Cache(10) failed: Result: hostbyte=0x04 driverbyte=DRIVER_OK
2024-11-30T08:10:53+0000 piNAS kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
2024-11-30T08:10:53+0000 piNAS kernel: sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x04 driverbyte=DRIVER_OK
2024-11-30T08:10:57+0000 piNAS kernel: md/raid:md0: Disk failure on sda, disabling device.
2024-11-30T08:10:57+0000 piNAS kernel: md/raid:md0: Cannot continue operation (2/4 failed).
2024-11-30T08:10:57+0000 piNAS kernel: md/raid:md0: Disk failure on sdb, disabling device.
2024-11-30T08:10:57+0000 piNAS kernel: md/raid:md0: Cannot continue operation (3/4 failed).
2024-11-30T08:10:57+0000 piNAS kernel: md/raid:md0: Disk failure on sdd, disabling device.
2024-11-30T08:10:57+0000 piNAS kernel: md/raid:md0: Cannot continue operation (4/4 failed).

Can you copy lsblk command results ? Seems that your controller doesnt work

Thanks for your reply, ciapciap. The output from lsblk is below.

pi@piNAS:~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 931.5G 0 disk
└─md0 9:0 0 2.7T 0 raid5
└─md0-crypt 253:0 0 2.7T 0 crypt
sdb 8:16 0 931.5G 0 disk
└─md0 9:0 0 2.7T 0 raid5
└─md0-crypt 253:0 0 2.7T 0 crypt
sdc 8:32 0 931.5G 0 disk
└─md0 9:0 0 2.7T 0 raid5
└─md0-crypt 253:0 0 2.7T 0 crypt
sdd 8:48 0 931.5G 0 disk
└─md0 9:0 0 2.7T 0 raid5
└─md0-crypt 253:0 0 2.7T 0 crypt
mmcblk0 179:0 0 59.5G 0 disk
├─mmcblk0p1 179:1 0 512M 0 part /boot/firmware
└─mmcblk0p2 179:2 0 59G 0 part /var/folder2ram/var/cache/samba
/var/folder2ram/var/lib/monit
/var/folder2ram/var/lib/rrdcached
/var/folder2ram/var/spool
/var/folder2ram/var/lib/openmediavault/rrd
/var/folder2ram/var/tmp
/var/folder2ram/var/log
/

I should say that I re-started the Pi this morning before running lsblk. When I get the error described in the original post, the RAID array disappears from the OMV configuration and sometimes come back after a re-start of the OS. I have swapped the ribbon SATA cable and the power supply, but neither of these made a difference.

Seems to be ok…try to post lspci command and a setup photo to see if ahci controller is setted up, i believe that’s a driver problem

Hello ciapciap, thanks again for your replies.

pi@piNAS:~ $ lspci
0000:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 21)
0000:01:00.0 SATA controller: JMicron Technology Corp. JMB58x AHCI SATA controller
0001:00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2712 PCIe Bridge (rev 21)
0001:01:00.0 Ethernet controller: Raspberry Pi Ltd RP1 PCIe 2.0 South Bridge

mmh… try lsmod | grep ahci to see if module is loaded

pi@piNAS:~ $ lsmod | grep ahci
ahci                   65536  4
libahci                65536  1 ahci
libata                376832  2 libahci,ahci

it’s all ok, try to figure out if disk or sectors are damaged, follow these passages:

  1. Install smartmontools
    sudo apt update && sudo apt install smartmontools
  2. Identify the disk name
    lsblk
  3. Check if SMART is supported and enabled
    sudo smartctl -i /dev/sdX
  4. Enable SMART if it is not already enabled
    sudo smartctl -s on /dev/sdX
  5. Get a detailed health report of the disk
    sudo smartctl -a /dev/sdX
  6. Run a quick diagnostic test
    sudo smartctl -t short /dev/sdX
  7. Run a thorough diagnostic test (suggested, takes longer)
    sudo smartctl -t long /dev/sdX
  8. Check the test results
    sudo smartctl -a /dev/sdX

in sdX, X is the disk, try all the disk in lsblk that is sda, sdb, sdc, sdd, and report here.

Hello, ciapciap.

I have run the short and long diagnostic tests. The results from the long tests are below.

pi@piNAS:~ $ sudo smartctl -t long /dev/sda
smartctl 7.3 2022-02-28 r5338 [aarch64-linux-6.6.62+rpt-rpi-2712] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 10 minutes for test to complete.
Test will complete after Sat Dec  7 16:17:55 2024 GMT
Use smartctl -X to abort test.
pi@piNAS:~ $ sudo smartctl -a /dev/sda
smartctl 7.3 2022-02-28 r5338 [aarch64-linux-6.6.62+rpt-rpi-2712] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     WD Blue / Red / Green SSDs
Device Model:     WDC  WDS100T1R0A-68A4W0
Serial Number:    23195C803202
LU WWN Device Id: 5 001b44 8b27397e1
Firmware Version: 411010WR
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available, deterministic, zeroed
Device is:        In smartctl database 7.3/5625
ATA Version is:   ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Dec  7 17:17:41 2024 GMT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (    0) seconds.
Offline data collection
capabilities:                    (0x11) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Suspend Offline collection upon new
                                        command.
                                        No Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        No Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  10) minutes.

SMART Attributes Data Structure revision number: 4
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0032   100   100   ---    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   ---    Old_age   Always       -       4417
 12 Power_Cycle_Count       0x0032   100   100   ---    Old_age   Always       -       71
165 Block_Erase_Count       0x0032   100   100   ---    Old_age   Always       -       3932194
166 Minimum_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       0
167 Max_Bad_Blocks_per_Die  0x0032   100   100   ---    Old_age   Always       -       56
168 Maximum_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       1
169 Total_Bad_Blocks        0x0032   100   100   ---    Old_age   Always       -       436
170 Grown_Bad_Blocks        0x0032   100   100   ---    Old_age   Always       -       0
171 Program_Fail_Count      0x0032   100   100   ---    Old_age   Always       -       0
172 Erase_Fail_Count        0x0032   100   100   ---    Old_age   Always       -       0
173 Average_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       0
174 Unexpected_Power_Loss   0x0032   100   100   ---    Old_age   Always       -       50
184 End-to-End_Error        0x0032   100   100   ---    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   ---    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   ---    Old_age   Always       -       2
194 Temperature_Celsius     0x0022   063   047   ---    Old_age   Always       -       37 (Min/Max 19/47)
199 UDMA_CRC_Error_Count    0x0032   100   100   ---    Old_age   Always       -       0
230 Media_Wearout_Indicator 0x0032   001   001   ---    Old_age   Always       -       0x000500000005
232 Available_Reservd_Space 0x0033   100   100   004    Pre-fail  Always       -       100
233 NAND_GB_Written_TLC     0x0032   100   100   ---    Old_age   Always       -       525
234 NAND_GB_Written_SLC     0x0032   100   100   ---    Old_age   Always       -       546
241 Host_Writes_GiB         0x0030   253   253   ---    Old_age   Offline      -       538
242 Host_Reads_GiB          0x0030   253   253   ---    Old_age   Offline      -       11309
244 Temp_Throttle_Status    0x0032   000   100   ---    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%      4416         -
# 2  Short offline       Completed without error       00%      4414         -

Selective Self-tests/Logging not supported

pi@piNAS:~ $ sudo smartctl -t long /dev/sdb
smartctl 7.3 2022-02-28 r5338 [aarch64-linux-6.6.62+rpt-rpi-2712] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 10 minutes for test to complete.
Test will complete after Sat Dec  7 17:27:48 2024 GMT
Use smartctl -X to abort test.
pi@piNAS:~ $ sudo smartctl -a /dev/sdb
smartctl 7.3 2022-02-28 r5338 [aarch64-linux-6.6.62+rpt-rpi-2712] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     WD Blue / Red / Green SSDs
Device Model:     WDC  WDS100T1R0A-68A4W0
Serial Number:    23195C800907
LU WWN Device Id: 5 001b44 8b27fc184
Firmware Version: 411010WR
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available, deterministic, zeroed
Device is:        In smartctl database 7.3/5625
ATA Version is:   ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Dec  7 18:37:16 2024 GMT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (    0) seconds.
Offline data collection
capabilities:                    (0x11) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Suspend Offline collection upon new
                                        command.
                                        No Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        No Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  10) minutes.

SMART Attributes Data Structure revision number: 4
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0032   100   100   ---    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   ---    Old_age   Always       -       4426
 12 Power_Cycle_Count       0x0032   100   100   ---    Old_age   Always       -       71
165 Block_Erase_Count       0x0032   100   100   ---    Old_age   Always       -       3997729
166 Minimum_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       0
167 Max_Bad_Blocks_per_Die  0x0032   100   100   ---    Old_age   Always       -       118
168 Maximum_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       1
169 Total_Bad_Blocks        0x0032   100   100   ---    Old_age   Always       -       453
170 Grown_Bad_Blocks        0x0032   100   100   ---    Old_age   Always       -       0
171 Program_Fail_Count      0x0032   100   100   ---    Old_age   Always       -       0
172 Erase_Fail_Count        0x0032   100   100   ---    Old_age   Always       -       0
173 Average_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       0
174 Unexpected_Power_Loss   0x0032   100   100   ---    Old_age   Always       -       49
184 End-to-End_Error        0x0032   100   100   ---    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   ---    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   ---    Old_age   Always       -       2
194 Temperature_Celsius     0x0022   059   057   ---    Old_age   Always       -       41 (Min/Max 19/57)
199 UDMA_CRC_Error_Count    0x0032   100   100   ---    Old_age   Always       -       0
230 Media_Wearout_Indicator 0x0032   001   001   ---    Old_age   Always       -       0x000500000005
232 Available_Reservd_Space 0x0033   100   100   004    Pre-fail  Always       -       100
233 NAND_GB_Written_TLC     0x0032   100   100   ---    Old_age   Always       -       516
234 NAND_GB_Written_SLC     0x0032   100   100   ---    Old_age   Always       -       533
241 Host_Writes_GiB         0x0030   253   253   ---    Old_age   Offline      -       525
242 Host_Reads_GiB          0x0030   253   253   ---    Old_age   Offline      -       11382
244 Temp_Throttle_Status    0x0032   000   100   ---    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%      4425         -
# 2  Short offline       Completed without error       00%      4423         -

Selective Self-tests/Logging not supported

pi@piNAS:~ $ sudo smartctl -t long /dev/sdc
smartctl 7.3 2022-02-28 r5338 [aarch64-linux-6.6.62+rpt-rpi-2712] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 10 minutes for test to complete.
Test will complete after Sat Dec  7 18:47:27 2024 GMT
Use smartctl -X to abort test.
pi@piNAS:~ $ sudo smartctl -a /dev/sdc
smartctl 7.3 2022-02-28 r5338 [aarch64-linux-6.6.62+rpt-rpi-2712] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     WD Blue / Red / Green SSDs
Device Model:     WDC  WDS100T1R0A-68A4W0
Serial Number:    230647802288
LU WWN Device Id: 5 001b44 8b2861b00
Firmware Version: 411010WR
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available, deterministic, zeroed
Device is:        In smartctl database 7.3/5625
ATA Version is:   ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Dec  7 19:00:15 2024 GMT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (    0) seconds.
Offline data collection
capabilities:                    (0x11) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Suspend Offline collection upon new
                                        command.
                                        No Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        No Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  10) minutes.

SMART Attributes Data Structure revision number: 4
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0032   100   100   ---    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   ---    Old_age   Always       -       4425
 12 Power_Cycle_Count       0x0032   100   100   ---    Old_age   Always       -       72
165 Block_Erase_Count       0x0032   100   100   ---    Old_age   Always       -       15990939
166 Minimum_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       2
167 Max_Bad_Blocks_per_Die  0x0032   100   100   ---    Old_age   Always       -       64
168 Maximum_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       4
169 Total_Bad_Blocks        0x0032   100   100   ---    Old_age   Always       -       322
170 Grown_Bad_Blocks        0x0032   100   100   ---    Old_age   Always       -       0
171 Program_Fail_Count      0x0032   100   100   ---    Old_age   Always       -       0
172 Erase_Fail_Count        0x0032   100   100   ---    Old_age   Always       -       0
173 Average_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       2
174 Unexpected_Power_Loss   0x0032   100   100   ---    Old_age   Always       -       49
184 End-to-End_Error        0x0032   100   100   ---    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   ---    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   ---    Old_age   Always       -       2
194 Temperature_Celsius     0x0022   058   060   ---    Old_age   Always       -       42 (Min/Max 19/60)
199 UDMA_CRC_Error_Count    0x0032   100   100   ---    Old_age   Always       -       0
230 Media_Wearout_Indicator 0x0032   001   001   ---    Old_age   Always       -       0x001700140017
232 Available_Reservd_Space 0x0033   100   100   004    Pre-fail  Always       -       100
233 NAND_GB_Written_TLC     0x0032   100   100   ---    Old_age   Always       -       2388
234 NAND_GB_Written_SLC     0x0032   100   100   ---    Old_age   Always       -       2429
241 Host_Writes_GiB         0x0030   253   253   ---    Old_age   Offline      -       2394
242 Host_Reads_GiB          0x0030   253   253   ---    Old_age   Offline      -       8765
244 Temp_Throttle_Status    0x0032   000   100   ---    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%      4425         -
# 2  Short offline       Completed without error       00%      4421         -

Selective Self-tests/Logging not supported

pi@piNAS:~ $ sudo smartctl -t long /dev/sdd
smartctl 7.3 2022-02-28 r5338 [aarch64-linux-6.6.62+rpt-rpi-2712] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 10 minutes for test to complete.
Test will complete after Sat Dec  7 19:10:27 2024 GMT
Use smartctl -X to abort test.
pi@piNAS:~ $ sudo smartctl -a /dev/sdd
smartctl 7.3 2022-02-28 r5338 [aarch64-linux-6.6.62+rpt-rpi-2712] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     WD Blue / Red / Green SSDs
Device Model:     WDC  WDS100T1R0A-68A4W0
Serial Number:    230647800952
LU WWN Device Id: 5 001b44 8b2864ec8
Firmware Version: 411010WR
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available, deterministic, zeroed
Device is:        In smartctl database 7.3/5625
ATA Version is:   ACS-4 T13/BSR INCITS 529 revision 5
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Dec  7 19:27:39 2024 GMT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever
                                        been run.
Total time to complete Offline
data collection:                (    0) seconds.
Offline data collection
capabilities:                    (0x11) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Suspend Offline collection upon new
                                        command.
                                        No Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        No Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  10) minutes.

SMART Attributes Data Structure revision number: 4
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0032   100   100   ---    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   ---    Old_age   Always       -       4426
 12 Power_Cycle_Count       0x0032   100   100   ---    Old_age   Always       -       72
165 Block_Erase_Count       0x0032   100   100   ---    Old_age   Always       -       3932195
166 Minimum_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       0
167 Max_Bad_Blocks_per_Die  0x0032   100   100   ---    Old_age   Always       -       86
168 Maximum_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       1
169 Total_Bad_Blocks        0x0032   100   100   ---    Old_age   Always       -       387
170 Grown_Bad_Blocks        0x0032   100   100   ---    Old_age   Always       -       0
171 Program_Fail_Count      0x0032   100   100   ---    Old_age   Always       -       0
172 Erase_Fail_Count        0x0032   100   100   ---    Old_age   Always       -       0
173 Average_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       0
174 Unexpected_Power_Loss   0x0032   100   100   ---    Old_age   Always       -       50
184 End-to-End_Error        0x0032   100   100   ---    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   ---    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   ---    Old_age   Always       -       2
194 Temperature_Celsius     0x0022   059   054   ---    Old_age   Always       -       41 (Min/Max 20/54)
199 UDMA_CRC_Error_Count    0x0032   100   100   ---    Old_age   Always       -       0
230 Media_Wearout_Indicator 0x0032   001   001   ---    Old_age   Always       -       0x000500000005
232 Available_Reservd_Space 0x0033   100   100   004    Pre-fail  Always       -       100
233 NAND_GB_Written_TLC     0x0032   100   100   ---    Old_age   Always       -       530
234 NAND_GB_Written_SLC     0x0032   100   100   ---    Old_age   Always       -       554
241 Host_Writes_GiB         0x0030   253   253   ---    Old_age   Offline      -       546
242 Host_Reads_GiB          0x0030   253   253   ---    Old_age   Offline      -       10624
244 Temp_Throttle_Status    0x0032   000   100   ---    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%      4425         -
# 2  Short offline       Completed without error       00%      4422         -

Selective Self-tests/Logging not supported

all alright, try

  1. lspci -k | grep -A 3 -i sata
  2. sudo apt update && sudo apt upgrade -y
  3. shutdown device
  4. disassemble all devices and clean it with compressed air or something like this
  5. reassemble it
  6. sudo modprobe ahci
  7. lspci -k | grep -A 3 -i sata
    and report the pre and post lspci command