I see no READ or WRITE errors, just CKSUM errors. Actually it is happening to all the drives. Read ID 192.
The HBA could also be the problem, if it can command the drive to sleep, the START/STOP count is also extremely high, this does mean the drive is spinning down. Or @luiscaloto has setup TrueNAS to sleep those drives.
With that said, I still have not seen any system specs which I asked for earlier, and is TrueNAS running on bare metal?
It is difficult to give advice when we do not know what all of the hardware is.
Here is a possible theory: The power cycling is coincidental and has nothing to do with the file corruption. The HBA/TrueNAS would not command the drive to power down if a data operation were in progress. When you connected the drive to the motherboard, was the HBA still in the system?
Out of curiosity, what are the power cycle counts on your other drives and power on hours?
With that said, Iād still fix the drives spinning up/down so frequently (Iām omitting using SSH, since it appears you already know how to do this).
- This is something that needs to be monitored.
- Iād remove the HBA and plug into the motherboard.
- Record the the START/STOP count to each drive.
- In TrueNAS, ensure HDD Standby is Always On and APM is Disabled.
- Power Down (actually remove power, not reboot), wait 10 seconds and power back on.
- Record the the START/STOP count to each drive again.
- Delete the corrupt files as listed by
zpool status -v - Clear the CHSUM errors
zpool clear pool-data - Run a SCRUB
zpool scrub pool-data - Periodically check the scrub status using
zpool status -v pool-data - After the scrub, look at the START/STOP count of each drive, did it increase?
- If the START/STOP count did not increase, then step 4 likely fixed it.
- If the pool is no longer corrupt, then I suspect deleting the files fixed it.
- Are these related, I just donāt know at this time. They could be but I canāt imagine file corruption unless the power to the drives is being randomly dropped.
Question: Think really hard, what happened before these errors started? It could be as simple as you rebooted the system or physically did something like move it.
If none of these steps help, and you havenāt already done so, backup the data you want to keep, then you could try these steps, what Iād do if I have a problem like this:
- Export the pool-data vdev.
- Power Off
- Disconnect all the HDDs drives.
- Power On
- Does your system appear to be running normally, with the exception of the one pool being in place?
- Power Down
- Connect a single drive, you can choose, both power and data connector to the motherboard.
- Power On
- Record the Power On Cycle Count.
- Wait several hours and check the Power On Cycle Count again.
- If it is the same, you could let it stay like this overnight to be certain and chack again.
- If the data is unchanged then you need to go back to step 6 and disconnect the drive power and data cables, plug those into the next drive to test. Repeat until you either have a high power cycle count, anything more than 0 with the proper settings is what you are expecting. A few counts I would not worry about but as I said, there should be no change.
- If you find an issue and the counts are high on the first drive tested, swap out the drive for the next drive, go back to step 6 and retest the second drive.
- If the problem seem to occur with a single drive, that is likely the problem. If it happens to all the drives, you has a system setup or hardware issue. I suspect system setup first.
That is a lot to do. these problems are not always an easy fix and require some testing time to identify the issue.
