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

date parsing in zpool_report.sh fails if scrub takes longer than 24 hrs #16

Open
khorton opened this issue Dec 13, 2020 · 4 comments
Open

Comments

@khorton
Copy link

khorton commented Dec 13, 2020

I have one TrueNAS 12 server with an encrypted pool and a slow CPU which takes more than 24 hours to do a scrub.

zpool status | grep scan
scan: scrub repaired 0B in 1 days 11:56:46 with 0 errors on Wed Dec 9 06:07:04 2020

This results in:

Failed conversion of 9-on-Wed_Dec'' using format %Y-%b-%e_%H:%M:%S''
date: illegal time format
usage: date [-jnRu] [-d dst] [-r seconds|file] [-t west] [-v[+|-]val[ymwdHMS]]

@Spearfoot
Copy link
Owner

Thanks, I'll look into this when I have some spare time.

@Spearfoot
Copy link
Owner

Question: are you using the latest version?

@khorton
Copy link
Author

khorton commented Dec 13, 2020

I cloned from git just a few minutes before testing it.

I had been using a predecessor script which threw the same error with TN12 (it was OK with FN11), found your version when searching and hoped that perhaps it could handle this.

@Spearfoot
Copy link
Owner

I just posted an updated version; let me know how it works for you.

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

2 participants