After a lot more screwing around than I care to admit, I got the stress-ng results from a live Arch run:
stress-ng: info: [1246] skipped: 0
stress-ng: info: [1246] passed: 4: cpu (4)
stress-ng: info: [1246] failed: 0
stress-ng: info: [1246] metrics untrustworthy: 0
stress-ng: info: [1246] successful run completed in 57499.36 sec
stress-ng --cpu 0 --cpu-method all --timeout 4h 57499.36s user 0.82s system 399% cpu 4:00:00.02 total
Is that enough to say that the motherboard is okay? Worth mentioning that I haven’t gotten a storage error since the last one I mentioned, although I haven’t gotten any daily reports since November 10th, since the server has been down at 7:00pm every day.
Yes. The purpose of the CPU Stress Test and for running it for at least 4 hours (some run it for a solid month for corporate hardware) is to heat soak the motherboard to identify cold solder joints and intermittent problems heat related, not just test the CPU itself.
You could setup a daily SCRUB to occur during your operating hours.
Run zpool status -v Main and look for scan: scrub repaired line. Here is mine for example: scan: scrub repaired 0B in 00:53:55 with 0 errors on Sun Oct 25 00:53:56 2026
This tells me that it took 53 minutes and 55 seconds to perform a SCRUB.
If I were to do as I’m suggesting to you, maybe I turn my server on a 7AM. I could setup the SCRUB to run once at 7:30AM (letting my server have time to warm up) and then the system will run that SCRUB, and 1 hour later if there are any alarms, TrueNAS would report them to you. Any PASSES would not be reported to you.
My preferred method to setup a temporary SCRUB is to use the CRON Job. Use the same command that you would use from the CLI. Go into a Custom Schedule, Select Daily (not sure you need to do this, I just do), then select the minute and hour, select run as root. Make sure “Enable” is checked. I prefer to uncheck the other two boxes as I like feedback for troubleshooting.
If your SCRUB takes a lot of time, try to pick a time that works the best for you. But do not choose several hours from the time you plan to shutdown the server. If you have a SCRUB running long, possibly due to finding an error or a few hundred, you want the SCRUB to finish. My choice in shortly after your normal turn-on time. If you turn the machine on after your CRON Job time, then it will not run of course.
I went and created a short script that you can run to easily test your pool and send you an email with the results. Just run this script once a day and you can keep track of the pool status.
I would not run this script every day for months on end. Run it maybe every day for 2 weeks, then change it to once every Monday, Wednesday, and Friday.
#!/bin/bash
#
# Instructions:
# 1. Make changes to the two lines to reflect the name of your pool and your email address to send the message.
# 2. Run the script, make sure it works.
# 3. Once the script has been verified to work, then setup a CRON Job to run this script as desired.
# Example Below:
# My pool name is "Pool1"
# My email address is "joeschmuck@hotmail.com" (not really but for this purpose it is).
Pool_Name="Pool1"
Email_Address="joeschmuck@hotmail.com"
SECONDS=0
echo "Running SCRUB"
zpool scrub -w $Pool_Name
Error_Code=$?
if [[ $Error_Code != 0 ]]; then
message="RUNNING A SCRUB ERROR on Pool '$Pool_Name', Error Code:$Error_Code"
midclt call --job mail.send "{ \"subject\": \"SCRUB TEST Status for Pool '$Pool_Name'\", \"text\": \"${message}\", \"to\": [\"$Email_Address\"] }"
else
echo "SCRUB Completed"
sleep 2 # Adding a short pause for any really fast pools, like my practically empty pool.
duration=$SECONDS
echo "SCRUB Duration in Seconds="$duration
message=$(zpool status -v $Pool_Name | grep "scan:")
if [[ $message =~ "0B" ]]; then message="Scrub Good for '$Pool_Name' - 0B Repaired in $duration seconds"; else message="Bad for '$Pool_Name' - Something was repaired in $duration seconds"; fi
echo "Message: $message"
midclt call --job mail.send "{ \"subject\": \"SCRUB TEST Status for Pool '$Pool_Name'\", \"text\": \"${message}\", \"to\": [\"$Email_Address\"] }"
fi
Good Luck.
EDIT: The script will not exit until the SCRUB has completed. It waits until it is done and then send the message. Also, if you get an error code, look up the error codes for the zpool scrub command. Error Code 1 means you likely have a scrub already in progress.
Since I set up the server I’ve had it do a weekly scrub at midnight on Sundays. Not sure where I got that frequency; it might’ve just been a guess at what sounded good.
If your server is running at midnight that works too but I was under the impression that ypu turn it off at night which is why you do not get any reports.
The script is only there to make it easy to setup scrubs and get a report until you feel the problem has been fixef.
The scrub default is once a month at midnight on a Sunday. Maybe you just changed it to weekly?