Closed aardvarkl closed 1 year ago
glabel is a bsd only thing so I will have to figure out what is being used in scale; can you run zpool status
on the command line and paste the result here?
@aardvarkl ping^
Apologies, it turns out that my account on github is linked to an email account I very rarely use now. This has now been corrected and I should get notifications (I hope)
As requested
@aardvarkl could you run zpool status -LP
and paste the result here?
@aardvarkl please try the script in #6 and let me know if there are any errors.
@aardvarkl please try the script in #6 and let me know if there are any errors.
This version removes glabel
errors. Assuming bc
is manually added to TrueNAS-SCALE-22.12.0
the following errors remain:
root@scale[~]# /mnt/scaletest/scripts/report.sh -c /mnt/scaletest/scripts/report.conf
date: 1675696489: No such file or directory
date: 1675696489: No such file or directory
date: 1675696489: No such file or directory
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
date: invalid option -- 'j'
Try 'date --help' for more information.
Init SSL without certificate database
root@scale[~]#
@aardvarkl please try the script in #6 and let me know if there are any errors.
Email output:
ZPool Status Report Summary
--
scaletest | ONLINEResilvered | 219T | 205T | 13.7T | 14% | 93% | 0 | 0 | 0 | 309M | 0 | 19395 | 00:00:10
boot-pool | ONLINE | 448G | 66.4G | 382G | 6% | 14% | 0 | 0 | 0 | 0 | 0 | 19395 | 00:04:50
ixapps | ONLINE | 1.81T | 1.17T | 654G | 56% | 64% | 0 | 0 | 0 | 0 | 0 | 19395 | 02:15:31
scratch | ONLINE | 928G | 208G | 720G | 3% | 22% | 0 | 0 | 0 | 0 | 0 | 19395 | 00:06:47
scratch-nvme | ONLINE | 1.81T | 1.60T | 216G | 16% | 88% | 0 | 0 | 0 | 0 | 0 | 19395 | 00:13:00
xch01 | ONLINE | 16.4T | 16.2T | 156G | 0% | 99% | 0 | 0 | 0 | 0 | 0 | 19395 | 23:44:11
xch02 | ONLINE | 16.4T | 16.2T | 157G | 1% | 99% | 0 | 0 | 0 | 0 | 0 | 19395 | 23:53:34
xch03 | ONLINE | 16.4T | 16.2T | 190G | 0% | 98% | 0 | 0 | 0 | 0 | 0 | 19395 | 23:58:49
xch04 | ONLINE | 16.4T | 16.2T | 157G | 0% | 99% | 0 | 0 | 0 | 0 | 0 | 19395 | 23:49:28
xch05 | ONLINE | 16.4T | 16.1T | 220G | 0% | 98% | 0 | 0 | 0 | 0 | 0 | 19395 | 1 days 00:02:18
xch06 | ONLINE | 16.4T | 16.2T | 214G | 0% | 98% | 0 | 0 | 0 | 0 | 0 | 19395 | 1 days 00:09:15
xch07 | ONLINE | 16.4T | 16.2T | 156G | 0% | 99% | 0 | 0 | 0 | 0 | 0 | 19395 | 1 days 00:19:10
xch08 | ONLINE | 16.4T | 16.2T | 157G | 0% | 99% | 0 | 0 | 0 | 0 | 0 | 19395 | 23:46:22
xch09 | ONLINE | 16.4T | 16.2T | 152G | 0% | 99% | 0 | 0 | 0 | 0 | 0 | 19395 | 1 days 00:02:00
xch10 | ONLINE | 16.4T | 16.2T | 156G | 0% | 99% | 0 | 0 | 0 | 0 | 0 | 19395 | 1 days 00:11:56
xch11 | ONLINE | 16.4T | 16.2T | 157G | 1% | 99% | 0 | 0 | 0 | 0 | 0 | 19395 | 23:57:51
xch12 | ONLINE | 16.4T | 16.2T | 157G | 0% | 99% | 0 | 0 | 0 | 0 | 0 | 19395 | 1 days 00:48:48
xch13 | ONLINE | 16.4T | 16.2T | 157G | 0% | 99% | 0 | 0 | 0 | 0 | 0 | 19395 | 1 days 00:01:48
xch14 | ONLINE | 16.4T | 16.2T | 128G | 0% | 99% | 0 | 0 | 0 | 0 | 0 | 19395 | 1 days 00:06:29
<br style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; line-height: 1.5; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: system-ui, sans-serif; font-size: 14px;"><br style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; line-height: 1.5; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: system-ui, sans-serif; font-size: 14px;"><pre style="font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; font-size: 14px; line-height: 1.5; margin: 0px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; white-space: pre-wrap; overflow-wrap: break-word; background-color: rgba(0, 0, 0, 0); caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><b style="font-weight: bold; line-height: 1.5;">########## UPS status report ##########</b>
=== , model , serial number ===
Name: ups
Status:
Output Load: %
Battery Runtime: s
Battery Charge: %
Battery Voltage: V
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for scaletest ##########</b>
pool: scaletest
state: ONLINE
scan: resilvered 309M in 00:00:10 with 0 errors on Wed Feb 1 13:58:06 2023
config:
NAME STATE READ WRITE CKSUM
scaletest ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
sdz2 ONLINE 0 0 0
sdy2 ONLINE 0 0 0
sdaa2 ONLINE 0 0 0
sdac2 ONLINE 0 0 0
sdab2 ONLINE 0 0 0
sdad2 ONLINE 0 0 0
sdae2 ONLINE 0 0 0
sdx2 ONLINE 0 0 0
raidz2-1 ONLINE 0 0 0
sdaj2 ONLINE 0 0 0
sdaq2 ONLINE 0 0 0
sdam2 ONLINE 0 0 0
sdal2 ONLINE 0 0 0
sdq2 ONLINE 0 0 0
sdar2 ONLINE 0 0 0
sdap2 ONLINE 0 0 0
sdag2 ONLINE 0 0 0
raidz2-3 ONLINE 0 0 0
sde2 ONLINE 0 0 0
sda2 ONLINE 0 0 0
sdd2 ONLINE 0 0 0
sdn2 ONLINE 0 0 0
sdc2 ONLINE 0 0 0
sdi2 ONLINE 0 0 0
sdb2 ONLINE 0 0 0
sdf2 ONLINE 0 0 0
special
mirror-4 ONLINE 0 0 0
sdu1 ONLINE 0 0 0
sdv1 ONLINE 0 0 0
sdw1 ONLINE 0 0 0
logs
sdav1 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for boot-pool ##########</b>
pool: boot-pool
state: ONLINE
status: Some supported and requested features are not enabled on the pool.
The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(7) for details.
scan: scrub repaired 0B in 00:04:50 with 0 errors on Fri Feb 3 03:49:52 2023
config:
NAME STATE READ WRITE CKSUM
boot-pool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sdat3 ONLINE 0 0 0
sdau3 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for ixapps ##########</b>
pool: ixapps
state: ONLINE
scan: scrub repaired 0B in 02:15:31 with 0 errors on Sat Jan 7 02:15:44 2023
config:
NAME STATE READ WRITE CKSUM
ixapps ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sdt2 ONLINE 0 0 0
sdr2 ONLINE 0 0 0
sds2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for scratch ##########</b>
pool: scratch
state: ONLINE
scan: scrub repaired 0B in 00:06:47 with 0 errors on Sun Feb 5 00:06:53 2023
config:
NAME STATE READ WRITE CKSUM
scratch ONLINE 0 0 0
sdas2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for scratch-nvme ##########</b>
pool: scratch-nvme
state: ONLINE
scan: scrub repaired 0B in 00:13:00 with 0 errors on Sun Jan 15 00:13:05 2023
config:
NAME STATE READ WRITE CKSUM
scratch-nvme ONLINE 0 0 0
nvme0n1p2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch01 ##########</b>
pool: xch01
state: ONLINE
scan: scrub repaired 0B in 23:44:11 with 0 errors on Sun Feb 5 23:44:16 2023
config:
NAME STATE READ WRITE CKSUM
xch01 ONLINE 0 0 0
sdah2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch02 ##########</b>
pool: xch02
state: ONLINE
scan: scrub repaired 0B in 23:53:34 with 0 errors on Sun Feb 5 23:53:40 2023
config:
NAME STATE READ WRITE CKSUM
xch02 ONLINE 0 0 0
sdj2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch03 ##########</b>
pool: xch03
state: ONLINE
scan: scrub repaired 0B in 23:58:49 with 0 errors on Sun Feb 5 23:58:54 2023
config:
NAME STATE READ WRITE CKSUM
xch03 ONLINE 0 0 0
sdm2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch04 ##########</b>
pool: xch04
state: ONLINE
scan: scrub repaired 0B in 23:49:28 with 0 errors on Sun Feb 5 23:49:33 2023
config:
NAME STATE READ WRITE CKSUM
xch04 ONLINE 0 0 0
sdp2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch05 ##########</b>
pool: xch05
state: ONLINE
scan: scrub repaired 0B in 1 days 00:02:18 with 0 errors on Mon Feb 6 00:02:23 2023
config:
NAME STATE READ WRITE CKSUM
xch05 ONLINE 0 0 0
sdaf2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch06 ##########</b>
pool: xch06
state: ONLINE
scan: scrub repaired 0B in 1 days 00:09:15 with 0 errors on Mon Jan 23 00:09:22 2023
config:
NAME STATE READ WRITE CKSUM
xch06 ONLINE 0 0 0
sdl2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch07 ##########</b>
pool: xch07
state: ONLINE
scan: scrub repaired 0B in 1 days 00:19:10 with 0 errors on Mon Jan 23 00:19:17 2023
config:
NAME STATE READ WRITE CKSUM
xch07 ONLINE 0 0 0
sdk2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch08 ##########</b>
pool: xch08
state: ONLINE
scan: scrub repaired 0B in 23:46:22 with 0 errors on Sun Feb 5 23:46:28 2023
config:
NAME STATE READ WRITE CKSUM
xch08 ONLINE 0 0 0
sdh2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch09 ##########</b>
pool: xch09
state: ONLINE
scan: scrub repaired 0B in 1 days 00:02:00 with 0 errors on Mon Feb 6 00:02:05 2023
config:
NAME STATE READ WRITE CKSUM
xch09 ONLINE 0 0 0
sdo2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch10 ##########</b>
pool: xch10
state: ONLINE
scan: scrub repaired 0B in 1 days 00:11:56 with 0 errors on Mon Jan 23 00:12:03 2023
config:
NAME STATE READ WRITE CKSUM
xch10 ONLINE 0 0 0
sdg2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch11 ##########</b>
pool: xch11
state: ONLINE
scan: scrub repaired 0B in 23:57:51 with 0 errors on Sun Jan 8 23:57:56 2023
config:
NAME STATE READ WRITE CKSUM
xch11 ONLINE 0 0 0
sdak2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch12 ##########</b>
pool: xch12
state: ONLINE
scan: scrub repaired 0B in 1 days 00:48:48 with 0 errors on Mon Jan 9 00:48:54 2023
config:
NAME STATE READ WRITE CKSUM
xch12 ONLINE 0 0 0
sdan2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch13 ##########</b>
pool: xch13
state: ONLINE
scan: scrub repaired 0B in 1 days 00:01:48 with 0 errors on Mon Jan 16 00:01:54 2023
config:
NAME STATE READ WRITE CKSUM
xch13 ONLINE 0 0 0
sdao2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"><br style="line-height: 1.5;">
<b style="font-weight: bold; line-height: 1.5;">########## ZPool status report for xch14 ##########</b>
pool: xch14
state: ONLINE
scan: scrub repaired 0B in 1 days 00:06:29 with 0 errors on Mon Jan 16 00:06:34 2023
config:
NAME STATE READ WRITE CKSUM
xch14 ONLINE 0 0 0
sdai2 ONLINE 0 0 0
errors: No known data errors
<br style="line-height: 1.5;"></pre><br class="Apple-interchange-newline">```
@rbollar what is the output of the latest version in #6 for you?
@rbollar what is the output of the latest version in #6 for you?
Here you go:
root@scale[/mnt/scaletest/scripts]# /mnt/scaletest/scripts/report.sh -c /mnt/scaletest/scripts/report.conf date: invalid date ‘2023-Feb-3_03:49:52’ date: invalid date ‘2023-Jan-7_02:15:44’ date: invalid date ‘2023-Feb-5_00:06:53’ date: invalid date ‘2023-Jan-15_00:13:05’ date: invalid date ‘2023-Feb-5_23:44:16’ date: invalid date ‘2023-Feb-5_23:53:40’ date: invalid date ‘2023-Feb-5_23:58:54’ date: invalid date ‘2023-Feb-5_23:49:33’ date: invalid date ‘2023-Feb-6_00:02:23’ date: invalid date ‘2023-Jan-23_00:09:22’ date: invalid date ‘2023-Jan-23_00:19:17’ date: invalid date ‘2023-Feb-5_23:46:28’ date: invalid date ‘2023-Feb-6_00:02:05’ date: invalid date ‘2023-Jan-23_00:12:03’ date: invalid date ‘2023-Jan-8_23:57:56’ date: invalid date ‘2023-Jan-9_00:48:54’ date: invalid date ‘2023-Jan-16_00:01:54’ date: invalid date ‘2023-Jan-16_00:06:34’ Init SSL without certificate database
@rbollar what is the output of date -d "2023-Feb-3 03:49:52" '+%s'
? And if that throws an error date -d "2023 Feb 3 03:49:52 '+%s'
.
root@scale[~]# date -d "2023-Feb-3 03:49:52" '+%s'
date: invalid date ‘2023-Feb-3 03:49:52’
and
root@scale[~]# date -d "2023 Feb 3 03:49:52 '+%s'
dquote>
root@scale[~]# date -d "2023 Feb 3 03:49:52" '+%s'
date: invalid date ‘2023 Feb 3 03:49:52’
root@scale[~]#
I assumed a missing " after the date on the second example...
What about date -d "Feb 3 2023 03:49:52" '+%s'
also date --version
?
root@scale[~]# date -d "Feb 3 2023 03:49:52" '+%s'
1675417792
root@scale[~]# date --version
date (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie.
root@scale[~]#
@rbollar what is the output of the latest version in #6 for you?
Hi, This doesn't work on TN Scale. Run the script amd it complains "glabel is missing, please install" as its first error
Happy to test as new versions appear - but be warned I am just about at "Hello World" when it comes to scripting