- Joined
- Jul 12, 2022
- Messages
- 3,222
So you don't run SMART tests on your boot drive?I'm sure its sensible information to know but I have no intention of acting on it for my boot drive.
So you don't run SMART tests on your boot drive?I'm sure its sensible information to know but I have no intention of acting on it for my boot drive.
I do. And I am.So you don't run SMART tests on your boot drive?
The simple answer is no, you cannot ignore a single drive type.Hi, thanks for the script. Is there anyway to ignore "Last Age Test" for my SSD. I can't find a setting for this in the config. I'm sure its sensible information to know but I have no intention of acting on it for my boot drive.
testAgeWarn=2
sets the value for all drives. I expect all drives to be SMART Tested at some periodicity. if [[ $testAge -gt $testAgeWarn ]]; then testAgeColor=$warnColor; else testAgeColor=$bgColor; fi if [[ $testAge -gt $testAgeWarn ]]; then printf "Drive: "$serial" - Test Age = "$testAge" Days<br>" >> "$logfile_warning"; fi
if [[ $detail_level != "SSD" ]] && [[ $testAge -gt $testAgeWarn ]]; then testAgeColor=$warnColor; else testAgeColor=$bgColor; fi if [[ $detail_level != "SSD" ]] && [[ $testAge -gt $testAgeWarn ]]; then printf "Drive: "$serial" - Test Age = "$testAge" Days<br>" >> "$logfile_warning"; fi
LOL, no, Test Age is how many days (24 hour periods) since the last SMART Long or Short Test was run.I’m aware the ssd is old. I assume that is what the result is telling me.
Nope, not normal at all.The only other thing that might be part of this is the lifetime hours appears to have reset as its currently 177 but was 3066. But I think this is normal behaviour for the hours to reset.
So we took this situation offline and the Samsung 840 EVO drive is reporting some odd values. The drive has over 88565 hours (about 10 years) on it and the self-tests are unable to report numbers that high so they are reporting an odd number which is generating the warning message. This is not the first time I've seen this happen so I updated the script to add a new custom setup which should work fine now to ignore the Test Age for this one drive. I only provided the new script to @snowlucas2022 but it will be included in the next official version. This update only affects @snowlucas2022. He was using the script correctly so no error on his part.So I was a little confused as all drives are set to run smart tests. The result I'm getting for my SSD is a warning "Test Age = 952 Days"
Send me a message, run the script with the -dump parameter which will generate and attach two files per drive (and "a" and "x" file) to your email report. I need drive data files for the SATADOM to examine them and see what I can do to fix it for you. If you have more than one SATADOM, send all of them. If you want to send me all your files, I'm good with that.FWIW, I also had this issue with my Supermicro SATADOM boot drive. Even though my short and long SMART tests were completed I was getting the old test age warning. I wound up ignoring the boot drive in the script. I'd also like to get this fixed.
N54LNAS% sudo ./multi_report_v1.6e_11_Nov_2022.sh Multi-Report v1.6e dtd:2022-11-11 (TrueNAS Core 13.0-U3.1) Configuration File Version Date: 2022-11-11 Failed conversion of ``2020-Oct-19_03:58:30'' using format ``%Y-%b-%e_%H:%M:%S'' date: illegal time format usage: date [-jnRu] [-I[date|hours|minutes|seconds]] [-f input_fmt] [-r filename|seconds] [-v[+|-]val[y|m|w|d|H|M|S]] [[[[[[cc]yy]mm]dd]HH]MM[.SS] | new_date] [+output_fmt] Failed conversion of ``2022-Aug-28_19:37:29'' using format ``%Y-%b-%e_%H:%M:%S'' date: illegal time format usage: date [-jnRu] [-I[date|hours|minutes|seconds]] [-f input_fmt] [-r filename|seconds] [-v[+|-]val[y|m|w|d|H|M|S]] [[[[[[cc]yy]mm]dd]HH]MM[.SS] | new_date] [+output_fmt] ./multi_report_v1.6e_11_Nov_2022.sh: line 2414: [[: ---: syntax error: operand expected (error token is "-") ./multi_report_v1.6e_11_Nov_2022.sh: line 2415: [[: ---: syntax error: operand expected (error token is "-")
I started working on it yesterday but it will be at least a week or more before I have it working properly. Then after a few folks try it, I get some feedback, then put the finishing touches on it.+1 for the feature to ignore specific alarms
The script works fine at least on one of my devices, but another one has issues.
I'm not sure to be honest. All I know is there is some date conversion that is not working. I will PM you to collect more data so we can see where it's failing. Did a previous version work and just verison 1.6e failed?So what's going on here? What can I do to investigate it?
Multi-Report v1.6e dtd:2022-11-11 (TrueNAS Core FreeNAS-11.3-U5)
Configuration File Version Date: 2022-11-11
date: illegal option -- I
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format]
LANG="en_US.UTF-8"
and that should fix it. I provided @emk2203 the fix a few days ago but it took time to identify the root cause.Per joeschmuck, this version adds a new drive model and also adds the ability to customize alarm settings for individual drives. It fixes a Date issue with FreeNAS 11, and date calculation issue for foreign languages (German was the issue it came up in).
Enjoy.