I’m guessing here based on what little you have said, but this could be hardware related; Either bad RAM or a failing boot drive.
Check and post the smart details of the boot drive with sudo smartctl -a /dev/sdX Replacing the X with whatever letter your boot drive currently has.
It would also be good if you run memtest to verify stability, at least overnight.
If that doesn’t lead you to the cause then you’re really going to need to post full hardware details. Without that it’s difficult to offer constructive input.
Important SMART attributes:
Reallocated NAND blocks: 0
Reported uncorrectable: 0
Current pending ECC: 0
Offline uncorrectable: 0
UDMA CRC errors: 0
Program fail count: 0
Erase fail count: 0
Write error rate: 0
Temperature: 26 C
Percent lifetime used: about 3 %
There is a warning:
“ATA error count 0 inconsistent with error log pointer”
but ATA Error Count is 0 and the log entry appears to be from power-on lifetime 0 hours.
Boot drive does not appear to show obvious SMART problems. I will plan an overnight memtest next.
Boot pool has plenty of free space:
freenas-boot 464G size, 30.5G allocated, 433G free, 6% capacity, ONLINE.
Boot drive SMART:
Crucial MX500 500 GB
SMART PASSED
Short self-test completed without error
Extended self-test completed without error
No reallocated NAND blocks
No reported uncorrectable errors
No pending ECC errors
No offline uncorrectable errors
No UDMA CRC errors
So the boot drive and boot pool do not currently show obvious issues.
I agree that to blame error on memory RAM is not logical. The system is othervise stabie. No errors at all. Some few checksum-errors on disks have occured.
Any data that passes through failing zones of memory can get silently corrupted, that includes any data the system processes as it prepares a new boot environment. If that happens the data will be corrupt every time it’s read, because it was corrupt as before it was committed to disk. This will as far as I know not show up as ZFS errors. This is how bad memory can kill ZFS pools.
Given how little effort is required to set up and test the RAM it’s a no-brainer to run a test overnight. But I have no horse in this particular race, you spend your troubleshooting time however you like.
It was RAM failure!! 6 errors on first pass.
Changed RAM and runed a new test: Result: FAIL
4 pass körda
48/48 tester genomförda
47/48 godkända
1 fel hittades
Felet kom i Test 9 – Modulo 20, random pattern
Feladressen var cirka 21275 MB, alltså runt 21 GB in i minnet
Testet kördes på 32 GB Crucial DDR3 1600, 4 × 8 GB, i ASUS P8Z68-V PRO
According to Chatgpt I cannot run a Truenas-server even on only one failure.
I shall try to change from 1600 to 1333 Mhz (if the Motherboard allows that) and run a new test.
I am pointing at you and laughing. Again. At this point I think you’re trolling since you have this overzealous response anytime someone suggests a memtest.
It’s likely that the failing RAM is behind your update issues, but it’s not a sure thing. Sometimes errors have multiple layers.
In your case you now know that you have (had?) RAM issues, likely for some time. That leaves you with the delicate issue of dealing with the fallout; you don’t really know what data has been corrupted by the faulty RAM.
When you finally get working RAM in the system that passes extended testing, I recommend that you get a fresh TrueNAS config saved and that you then reinstall TrueNAS. You simply don’t know what havoc the RAM has caused in the OS. (careful not to overwrite your data drives during install!)
The other issue is with the data-pools. That’s more precarious since the width of corruption there can be more difficult to get a grasp on, much less address. Unfortunately, if you have backups and those backups are based of the server with bad RAM, you may find that all copies of some data may exhibit corruption.
There’s also the possibility that you may have future “exciting” file system errors sitting around waiting for you to trip on when just the right read or write happens.
I changed RAM Mhz from 1600 to 1333. And after Memtest runed 4 pass I got PASSED.
Now I have updated Truenas from Fangtooth to Goldeye 25.10.4 with success. And also migrated the apps-pool from Tank1 (harddisks) to ssd_apps (SSD-disks) with the new feature in Goldeye with success. From now on I think its very important to test RAM before using it, specially if you have bought used ones.
This is possible, especially without ECC RAM that can catch bit flips before allowing new data to be written to disk.
I show an illustration of “hidden” corruption that not even ZFS or scrubs will detect. According to ZFS, the JPEG with garbled pixels or random lines is “healthy” because it matches the stored checksum on the disk.
At least you’ve found the issue, and have a temporary fix with downclocking. This being DDR3, it should hopeflly be possible to replace it at acceptable cost.