Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when self-tests contains "1 of 1 failed self-tests are outdated by newer successful extended offline self-test # 1" #32

Open
lamtt77 opened this issue Sep 4, 2021 · 1 comment

Comments

@lamtt77
Copy link

lamtt77 commented Sep 4, 2021

Hello,

I encountered the same issue as described at "https://www.gitmemory.com/issue/edgarsuit/FreeNAS-Report/24/812802235"

Further error message:
awk: newline in string
newer... at source line 1

Temporary fix (added one more space at the end of "# 1":
lastTestHours=$("$smartctl" -l selftest "$drive" | grep "# 1 " | awk '{print $9}')

@lamtt77
Copy link
Author

lamtt77 commented Sep 4, 2021

An alternative fix would be:
lastTestHours=$("$smartctl" -l selftest "$drive" | grep ^"# 1" | awk '{print $9}')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant