Hi fine folks,
I need some advice on how to best repair a corrupted filesystem on my Disk 2 (md2/sdc) drive, and what happened that caused the issue in the first place. It's a new hard drive that I replaced less than 2 weeks ago, due to the old disk had more and more bad sectors. The new disk was initialized by doing a rebuild of the array.
Everything seemed to work fine until today, when suddenly all shares were in read-only mode. This surprised me since the web dashboard didn't show any alerts/errors as far as I could tell, and it was only when I looked at the logs I noticed that there was something going on.
I then ran a scan-only of the main drives in my system (minus the parity drive) by using:
xfs_repair -nv /dev/mdY (where Y = [1..3])
No issues were found on md1 and md3, but md2 had a scary long list of issue. See the attached file md2-xfs-scan.zip to see the output.
Is my best option to try to rebuild disk 2 again, or should I try xfs_repair -v /dev/md2? My understanding is that by using /dev/md2 parity will be preserved, and that's not the case if I use /dev/sdc. According to the SMART data (fresh report attached), the physical drive itself seems to be fine. I ran a parity check 11 days ago, and 0 errors were found then. So I'm hoping that my parity data is still intact. I currently have the array in maintenance mode to avoid further damage. I have not had a thorough look at the shares to see if anything is missing, but I'm pretty sure I'm missing some files in the appdata share.
Hardware:
PC: Dell Optiplex 9020 w/ Intel Core i7-4770 CPU and 24 GiB DDR3 RAM
Parity drive: Seagate IronWolf 10TB
Disk 1: Western Digital 10TB WD Red Plus NAS
Disk 2: Western Digital 10TB WD Red Plus NAS
Disk 3: Seagate Exos x10 10TB Enterprise
Unassigned drive: Seagate Exos x10 10TB Enterprise
I/O Crest 4 Port SATA III PCI-e 2.0 x1 Controller Card Marvell 9215 Non-Raid with Low Profile Bracket SI-PEX40064 (not 100% sure about this one, but it's Marvell based at least).
Unraid version 6.9.2 (Plus license). Been using Unraid since late 2015, and love it! 😊
As for why this happened, I have a hunch that it's due to my cheap SATA controller. Initially I only used it for the unassigned drives (I had 2 before), but when my drives started dying one by one and I replaced them with newer drives, some of them did not show up when I used the SATA ports on the motherboard. So for the array I have to drives hooked up to the motherboard, and two to the PCI Express SATA controller card. I recall reading on this forum that cards based on this chip was not recommended by the professionals, so I guess I was asking for trouble by doing so anyway 😣 Things seemed to work fine though with that setup for a long time.
tower2-diagnostics-20230209-1405.zip
md2-xfs-scan.zip
tower2-smart-20230209-1709.zip