I have an EON running Raspberry Pi OS (64-bit). I’m booting from a Micro SD card and using mdadm to create a RAID1 array using two WD Red 4 TB drives. I have the array (md0) formatted as ext4.
Sometimes, when rebooting the EON, it does a lengthy fsck on the md0 array. It takes 30-40 minutes to come up after the reboot.
Is there something that would trigger this to happen on certain reboots but not others? I’m just running a “sudo reboot” from a terminal. Am I supposed to be doing something to unmount/stop the array before rebooting?
WD Red (not Plus, not Pro) are SMR drives. They’re slow to write and depending on a number of factors, can cause no end of problems with any sort of RAID array.
Best advice is to avoid using them in a RAID of any kind.
Make sure you are asking the system to shutdown nicely… i.e. use shutdown… Drives that are slow may not take a reboot request nicely… shutdown does just that, shutdown and expect to flush everything needed.
A reboot may not allow the drive to preserve data… I suspect the file system (on top of the raid device) is not being marked clean, hence the long fsck on a restart.