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

A refactor of the script. #28

Open
wants to merge 169 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
df4e60f
finally merged my local hack with the real thing
fohlsso2 Jun 20, 2018
edf3818
finally merged my local hack with the real thing
fohlsso2 Jun 20, 2018
6edf6dd
cleanup
fohlsso2 Jun 20, 2018
4a5beae
Merge branch 'master' of https://github.com/fohlsso2/FreeNAS-Report
fohlsso2 Jun 20, 2018
7cfb3b5
fixed scrub in progress too
fohlsso2 Jun 20, 2018
e462117
Update README.md
fohlsso2 Jun 20, 2018
398c88d
Update README.md
fohlsso2 Jun 20, 2018
f79c255
Update report.sh
fohlsso2 Jun 21, 2018
413c782
Update README.md
fohlsso2 Jun 21, 2018
800f027
Update README.md
fohlsso2 Oct 11, 2018
c633625
Update report.sh
Feb 3, 2019
9465090
Update README.md
Feb 3, 2019
1443a13
Rebase v1.6 to main repo
aserrallerios Dec 9, 2020
431f38a
Use smart id instead of name.
dak180 Apr 11, 2021
67ea149
Use a config file.
dak180 Apr 11, 2021
fe82ce7
Add a check for commands.
dak180 Apr 11, 2021
bb363f3
Merge remote-tracking branch 'aserrallerios/master' into topic/temp
dak180 Apr 11, 2021
39128d8
Shellcheck pass and general formatting.
dak180 Apr 11, 2021
c5c3636
Make sure the ssd table actually gets displayed.
dak180 Apr 11, 2021
1f51c27
Use either common wear level indicator.
dak180 Apr 11, 2021
e3c272e
Try to make things work for more ssds.
dak180 Apr 12, 2021
b023681
Print NVMe smart data.
dak180 Apr 12, 2021
58efca1
Fix extended self test time parsing.
rotx Apr 12, 2021
fa09d6a
cherry-pick 66d6277
rotx May 29, 2020
7761aa2
Misc updates.
dak180 Apr 17, 2021
0c73fed
Refactor to get rid of awk.
dak180 Apr 17, 2021
cfcf6c1
A better command list.
dak180 Apr 17, 2021
9dd7061
Fix ups.
dak180 Apr 18, 2021
1b50183
Do not skew the current time.
dak180 Apr 18, 2021
cccd88e
Reorg the nvme parsing.
dak180 Apr 18, 2021
e0fa362
Refactor to get rid of awk part 2.
dak180 Apr 18, 2021
c3b6193
Refactor to get rid of awk part 3.
dak180 Apr 18, 2021
28c95d4
More quotes.
dak180 Apr 18, 2021
50d25d7
Less sub-shells.
dak180 May 2, 2021
2b899d1
Put the config backup in a function
dak180 May 15, 2021
0c5b3eb
Make the zpool status into a function.
dak180 May 15, 2021
63aa127
Make the UPS report into a function.
dak180 May 15, 2021
8b2eff5
Consolidate the functions.
dak180 May 15, 2021
2182516
Add to the list of commands.
dak180 May 16, 2021
2507975
Merge branch 'master' into topic/refactor
dak180 May 16, 2021
6bc541e
Use arrays in loops.
dak180 May 16, 2021
4bc6d9b
No need for nested <pre> tags.
dak180 May 16, 2021
79eda04
Set arrays allowing for spaces in items.
dak180 May 16, 2021
27d0c32
Update the ReadMe file.
dak180 May 16, 2021
ec2ec1b
Make sure the selftest info is printed properly.
dak180 May 16, 2021
0b889c6
Support for conveyance test output requires support from smartctl.
dak180 May 16, 2021
29a58a7
New preview image.
dak180 May 16, 2021
a0af399
Support for conveyance test output.
dak180 May 16, 2021
632b107
Reduce calls to smartctl.
dak180 May 17, 2021
03a706d
Add some notes about workarounds.
dak180 May 17, 2021
82c7d1a
Less calls to smartctl is faster.
dak180 May 17, 2021
c099699
Standardize colorizing the rows.
dak180 May 17, 2021
12507b8
Also backup the secret seed.
dak180 Aug 18, 2021
6790c85
Get the whole array.
dak180 Aug 22, 2021
71b4f4a
correct quoting.
dak180 Aug 22, 2021
059e852
Fix math on NVMe write stats.
dak180 Aug 23, 2021
841be1f
Fix units.
dak180 Sep 1, 2021
b7f175f
Support more drives.
dak180 Sep 1, 2021
febe4e7
Add Wear_Leveling_Count for some Samsung SSDs
syserr0r Sep 9, 2021
437393e
use system configured from name and from email
zanechua Sep 20, 2021
9d3a0b1
Update README
zanechua Sep 20, 2021
cc0da0c
Update README about SMART tests
zanechua Sep 20, 2021
a9121e5
Fix resliver output for TrueNAS 12.
dak180 Oct 10, 2021
ff5fb35
More reliable way to get LBAs written.
dak180 Oct 10, 2021
03e1bc2
Account for the case of no tests run.
dak180 Oct 10, 2021
cf76fa8
Update Readme to note first time configuration changes.
dak180 Dec 17, 2021
f286026
Merge remote-tracking branch 'syserr0r/patch-1' into topic/refactor
dak180 Dec 20, 2021
b84ea2a
Use sane defaults for from email.
dak180 Dec 20, 2021
4e65936
Merge branch 'zanechua/topic/refactor' into topic/refactor
dak180 Dec 20, 2021
3596e37
Fail unknown wear leveling gracefully.
dak180 Dec 20, 2021
7ff4bda
Fail unknown temp gracefully.
dak180 Dec 20, 2021
dead41f
Better quoting.
dak180 Dec 20, 2021
5996aaf
Fail unknown temp gracefully for HDDs too.
dak180 Dec 20, 2021
8cccef7
Fail gracefully if the statistics page does not exist.
dak180 Dec 26, 2021
8bd7c14
Account for very new drives.
dak180 Dec 26, 2021
e5930fb
Adjust default drive temps.
dak180 Jan 2, 2022
6906fda
Separate SSD temps from HDD temps.
dak180 Jan 2, 2022
eca1fc3
glabel is not used on scale.
dak180 Mar 7, 2022
26c0af0
First pass at sas compatibility.
dak180 May 1, 2022
e43e83c
Do not care about whitespace variations.
dak180 May 1, 2022
9b36a3c
Get rid of an extraneous %.
dak180 May 1, 2022
251f9b2
Make sure the line gets passed through.
dak180 May 1, 2022
6831f91
Support SAS drives for detailed output.
dak180 May 1, 2022
ffd4e3e
Clean things up a bit.
dak180 May 1, 2022
0c3748c
Update release notes.
dak180 May 1, 2022
77449a2
Accommodate both SSD and HDD temp settings.
dak180 May 2, 2022
790a208
Keep SAS drives in their own section.
dak180 May 2, 2022
fdc2749
Reset vars for each loop.
dak180 May 6, 2022
1c81a30
Update report.sh
mth309 May 7, 2022
13ca372
Remove awk.
dak180 May 8, 2022
e5265dd
Merge branch 'topic/sas' into topic/refactor
dak180 May 8, 2022
7f88351
Apparently some HDDs to not report a rotation rate so test 'Spin up T…
dak180 May 8, 2022
972a18e
Prevent error on nvme drives.
dak180 May 12, 2022
ecfc7e1
Colorize on test failure (HDD & SSD).
dak180 May 13, 2022
1e1638f
Update report.sh
mth309 May 13, 2022
56acf86
Update report.sh
mth309 May 13, 2022
bc574d6
Fix white space and normalize ordering.
dak180 May 13, 2022
f3d841f
Update report.sh
mth309 May 14, 2022
4aecdf9
Update report.sh
mth309 May 14, 2022
9486e6a
Update report.sh
mth309 May 14, 2022
1e42900
Remove the last awk outside of ZpoolSummary.
dak180 May 14, 2022
2666271
Fixed the parsing for when a self test is in progress on a SAS device.
mth309 May 22, 2022
a17f7c5
Try to be more compatible with different mail programs.
dak180 Jun 27, 2022
9f4b629
More consistant sorting.
dak180 Dec 21, 2022
1868d55
Ensure that date functions work consistently.
dak180 Dec 21, 2022
de2084a
Fix shellcheck warnings.
dak180 Dec 23, 2022
057037f
More awk removal.
dak180 Dec 25, 2022
8757129
Use xselftest with fallback to selftest.
dak180 Jan 9, 2023
21a5482
Make sure the blank line is where it should be.
dak180 Jan 9, 2023
0abff90
Fix quotes.
dak180 Jan 9, 2023
9e0be21
Add examples to test against.
dak180 Jan 9, 2023
e67f138
Add an example of long running resilver
mkninc Jan 9, 2023
81d523e
Change to scrubDuration for better clarity and to avoid collisions.
dak180 Jan 9, 2023
1477f69
Add sections.
dak180 Jan 10, 2023
74b4cad
Support multi-day reslivers.
dak180 Jan 10, 2023
9752779
Add more examples.
dak180 Jan 10, 2023
2fb6954
The last of the awk removal.
dak180 Jan 10, 2023
e771d7f
Combine multiple echos into single heredocs.
dak180 Jan 10, 2023
5ece101
Merge branch 'topic/mail'
dak180 Jan 10, 2023
b017cb3
More heredoc conversions.
dak180 Jan 10, 2023
f2159e7
Fix some quotes.
dak180 Jan 10, 2023
583c66f
Use the extended test data if available.
dak180 Jan 10, 2023
98d7dd3
Reduce the number of calls to smartctl.
dak180 Jan 16, 2023
3ba4990
Do not math non-numbers.
dak180 Jan 16, 2023
d22837e
Account for scrubs of indeterminate and multi-day duration.
dak180 Jan 16, 2023
410c86a
First pass at linux changes; untested.
dak180 Jan 16, 2023
a168d43
Add a file dump option for debugging.
dak180 Jan 16, 2023
575e671
Reorder to be more consistent.
dak180 Jan 17, 2023
0db2fdd
Add support for per drive overrides.
dak180 Jan 17, 2023
39d1166
Update release notes.
dak180 Jan 17, 2023
0fcd7f6
Make sure to include the devstat log in the dumps.
dak180 Jan 17, 2023
b689cb1
Another command to test.
dak180 Jan 17, 2023
374b342
Grep out log preamble.
dak180 Jan 18, 2023
9bd6ae9
List NVMe self tests.
dak180 Jan 20, 2023
cad19ce
Remove the unused -o option from sendmail.
dak180 Feb 7, 2023
4807694
Account for different `date` invocations.
dak180 Feb 7, 2023
fbe234a
debain date does not like _
dak180 Feb 7, 2023
1f49f2c
Merge branch 'master' into topic/scale
dak180 Feb 7, 2023
35a8830
Having a date field that takes almost anything is pain.
dak180 Feb 7, 2023
bbe80f6
Better drive list for scale.
dak180 Feb 7, 2023
6df5ab0
nvmecontrol is bsd only.
dak180 Feb 7, 2023
9b2900a
md5sum and sha256sum are on both scale and core.
dak180 Feb 7, 2023
2ab525e
Get a more human readable status dump.
dak180 Feb 7, 2023
6b14d7a
10^ is more portable than 1e.
dak180 Feb 8, 2023
7eb2406
-q does not work on debian.
dak180 Feb 8, 2023
7d0905c
Fix white space.
dak180 Feb 8, 2023
cb1e393
Fix version number.
dak180 Mar 4, 2023
4111872
Use current names.
dak180 Mar 4, 2023
49f487c
Account for NVMe drives not reporting temps.
dak180 Mar 4, 2023
7dbdf0d
Try to handle more situations where we do not get data.
dak180 Mar 4, 2023
bd072ac
Minor edits.
dak180 Mar 7, 2023
e86c4a5
Support SAS drives that do not support json output better.
dak180 Mar 14, 2023
b4026d9
Do not permanently set unknown values.
dak180 Mar 14, 2023
1e52033
Fix nvme drive numbers.
dak180 Mar 20, 2023
acbbfb4
Really fix nvme drive numbers.
dak180 Mar 20, 2023
43447d1
Fallback for apple SSDs that do not have a stats page
dak180 Mar 20, 2023
b414aa2
Add a custom message for a missing `bc`.
dak180 Apr 17, 2023
f636c62
Merge branch 'topic/scale'
dak180 Apr 17, 2023
fa36390
Normalize white space before comparing.
dak180 Apr 25, 2023
0e9fd81
Fallback for seagate SSDs that do not have a stats page.
dak180 Apr 25, 2023
d78d461
Use single quotes where doubles are unnecessary.
dak180 May 16, 2023
0a026cf
Fix quote.
dak180 May 16, 2023
25f35b1
Make sure command are checked where required.
dak180 May 16, 2023
30c92ee
Try to restore compatibility with TrueNAS 12.
dak180 May 16, 2023
4b5c3e2
Mitigate serial numbers with chars that cannot be used in bash vars.
dak180 May 17, 2023
782c4f1
Mitigate serial numbers with chars that cannot be used in bash vars m…
dak180 May 17, 2023
379d336
Create the backup location if it does not already exist.
dak180 May 18, 2023
7492cba
Add a sort for linux that will work with more than 24 drives.
dak180 May 22, 2023
1eb4c04
Allow use of `$(dirname "${configFile}")/usr/bin/` for `bc`.
dak180 Jun 26, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
install.sh
*.sublime*
*.sublime*

report.cfg
102 changes: 88 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,106 @@
# ZPool & SMART status report with FreeNAS config backup
Original script by joeschmuck, modified by Bidelu0hm, then by melp
# ZPool, SMART, and UPS Status Report with TrueNAS Config Backup
Original Script By: joeschmuck<br>
Modified By: bidelu0hm, melp, fohlsso2, onlinepcwizard, ninpucho, isentropik, rotx, dak180<br>
Last Edited By: dak180

Preview of the output here: http://i.imgur.com/t9Mtqyt.png
**Current Version: v1.8**

**At a minimum, you will need to enter your email address in user-definable parameter section.** Feel free to edit other user parameters as needed.
Preview of the output here: https://i.imgur.com/jKwraw4.png
When a resilver is in progress: https://i.imgur.com/CUNUZ7r.png
After the resilver is done: https://i.imgur.com/I43MLLf.png
When a scrub is in progess: https://i.imgur.com/YGmvZT4.png

**Version: v1.3**
# SMART Tests

**Changelog:**
You should also configure your smart tests otherwise the script will not include smart test results and will generate an additional error unless you checked `Hide Standard Error` in the cron job.

*v1.3:*

# Getting Started

Place the script under a user `/home/user` or in one of your pools.

Create a Cron Job with the following configuration:

```
Description: Run Smart Report
Command: /path/to/script/report.sh -c /path/to/script/report.cfg
Run as: root
Schedule: Daily
Hide Standard Output: **Checked**
Hide Standard Error: **Unchecked**
Enabled: **Checked**
```

Click `Submit` and then `Run Now`.

A configuration file will be generated at `/path/to/script/report.cfg`

**At a minimum, enter an email address for the report to be sent to and set `defaultFile` to `0` in the generated config file. Feel free to edit other user parameters as needed. Backup has been disabled by default so if it is required please set to true.**

Once you have updated the config file, click `Run Now` again to generate your first report.


**Changelog**

*v1.8* (dak180)
- Accommodate both SSD and HDD temp settings
- Keep SAS drives in their own section
- Improved support for SAS and NVMe
- Remove all awk
- Add support for per drive overrides

*v1.7.5* (dak180)
- Add initial support for SAS drives

*v1.7* (dak180)
- Refactor to reduce dependence on awk
- Use a separate config file
- Add support for conveyance test

*v1.6.5* (rotx)
- HTML boundary fix, proper message ids, support for dma mailer
- Better support for NVMe and SSD
- Support for new smartmon-tools

*v1.6* (isentropik)
- Actually fixed the broken borders in the tables.
- Split the SMART table into two tables, one for SSDs and one for HDDs.
- Added several options for SSD reporting.
- Modified the SSD table in order to capture relevant (seemingly) SSD data.
- Changed 'include SSD' default to true.
- Cleaned up minor formatting and error handling issues (tried to have the cell fill with "N/A" instead of non-sensical values).

*v1.5* (ninpucho)
- Added Frag%, Size, Allocated, Free for ZPool status report summary.
- Added Disk Size, RPM, Model to the Smart Report
- Added if statment so that if "Model Family" is not present script will use "Device Model"
for brand in the SMART Satus report details.
- Added Glabel Status Report
- Removed Power-On time labels and added ":" as a separator.
- Added Power-On format to the Power-On time Header.
- Changed Backup deafult to false.

*v1.4* (onlinepcwizard)
- fixed the broken border on zpool status summary header
- in statusOutput changed grep to scrub: instead of scrub
- added elif for resilvered/resilver in progress and scrub in progress with (hopefully) som useful info fields
- changed the email subject to include hostname and date & time
- aaand fixed the parser

*v1.3*
- Added scrub duration column
- Fixed for FreeNAS 11.1 (thanks reven!)
- Fixed fields parsed out of zpool status
- Buffered zpool status to reduce calls to script

*v1.2:*
*v1.2*
- Added switch for power-on time format
- Slimmed down table columns
- Fixed some shellcheck errors & other misc stuff
- Added .tar.gz to backup file attached to email
- (Still coming) Better SSD SMART support

*v1.1:*
*v1.1*
- Config backup now attached to report email
- Added option to turn off config backup
- Added option to save backup configs in a specified directory
Expand All @@ -35,9 +113,5 @@ Preview of the output here: http://i.imgur.com/t9Mtqyt.png
- Reformatted user-definable parameters section
- Added more general comments to code

*v1.0:*
*v1.0*
- Initial release

**TODO:**
- Fix SSD SMART reporting
- Add support for conveyance test
29 changes: 29 additions & 0 deletions examples/zfs-2.0.7-1-resilvered-days.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pool: pool1
state: ONLINE
scan: resilvered 2.31T in 1 days 02:55:32 with 0 errors on Sat Dec 24 02:33:08 2022
config:

NAME STATE READ WRITE CKSUM
pool1 ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
gptid/ef161b9c-99fb-11eb-8c44-8cdcd4a82a00 ONLINE 0 0 0
gptid/b2fbf31f-775c-11ea-bfca-8cdcd4a82a00 ONLINE 0 0 0
gptid/dabfaddf-a405-11ea-b106-8cdcd4a82a00 ONLINE 0 0 0
gptid/389c44fd-d75d-11eb-8c44-8cdcd4a82a00 ONLINE 0 0 0
gptid/61a310f2-b648-11eb-8c44-8cdcd4a82a00 ONLINE 0 0 0
gptid/9bbeb65a-5a7d-11ea-bfca-8cdcd4a82a00 ONLINE 0 0 0
raidz2-3 ONLINE 0 0 0
gptid/ddf50f19-3924-11ed-937c-8cdcd4a82a00 ONLINE 0 0 0
gptid/261a8ad5-5d32-11ed-937c-8cdcd4a82a00 ONLINE 0 0 0
gptid/490f137c-c2f2-11ec-937c-8cdcd4a82a00 ONLINE 0 0 0
gptid/3aee2726-8249-11ed-937c-8cdcd4a82a00 ONLINE 0 0 0
gptid/cbf18155-1cbf-11e5-a52f-74d02b98b14b ONLINE 0 0 0
gptid/cc577a01-1cbf-11e5-a52f-74d02b98b14b ONLINE 0 0 0
logs
mirror-1 ONLINE 0 0 0
gptid/5425d823-5d1b-11ed-937c-8cdcd4a82a00 ONLINE 0 0 0
gptid/79af7112-758b-11ec-b210-8cdcd4a82a00 ONLINE 0 0 0
cache
gptid/6f326eed-6dcd-11e6-92ad-74d02b98b14b ONLINE 0 0 0

errors: No known data errors
29 changes: 29 additions & 0 deletions examples/zfs-2.1.6-1-resilver-progress.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pool: data
state: ONLINE
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Sat Dec 31 21:46:04 2022
14.9T scanned at 19.3G/s, 14.9T issued at 19.3G/s, 20.5T total
0B resilvered, 72.80% done, 00:04:56 to go
config:

NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
raidz3-0 ONLINE 0 0 0
gptid/95378d35-7b98-11ed-b486-d05099c13d03 ONLINE 0 0 0
gptid/4b4c3c38-6e06-11ed-a9d5-d05099c13d03 ONLINE 0 0 0
gptid/9b844178-2482-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/f0affe10-321b-11ec-ba66-d05099c13d03 ONLINE 0 0 0
gptid/e5f87be0-27e7-11ec-96bc-d05099c13d03 ONLINE 0 0 0
gptid/e9d6ea26-25dc-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/a02741cb-2527-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/33fe635d-2713-11ec-8714-d05099c13d03 ONLINE 0 0 0
logs
mirror-6 ONLINE 0 0 0
gptid/e2c3914f-8596-11ed-bce6-d05099c13d03 ONLINE 0 0 0
gptid/6f5748eb-897e-11ed-aa49-d05099c13d03 ONLINE 0 0 0
cache
gptid/b2daa313-80d2-11ed-b9fa-d05099c13d03 ONLINE 0 0 0

errors: No known data errors
29 changes: 29 additions & 0 deletions examples/zfs-2.1.6-1-resilvered.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pool: data
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: resilvered 132K in 00:00:02 with 0 errors on Mon Jan 2 17:44:21 2023
config:

NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
raidz3-0 ONLINE 0 0 0
gptid/95378d35-7b98-11ed-b486-d05099c13d03 ONLINE 0 0 0
gptid/4b4c3c38-6e06-11ed-a9d5-d05099c13d03 ONLINE 0 0 0
gptid/9b844178-2482-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/f0affe10-321b-11ec-ba66-d05099c13d03 ONLINE 0 0 0
gptid/e5f87be0-27e7-11ec-96bc-d05099c13d03 ONLINE 0 0 0
gptid/e9d6ea26-25dc-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/a02741cb-2527-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/33fe635d-2713-11ec-8714-d05099c13d03 ONLINE 0 0 0
logs
mirror-7 ONLINE 0 0 0
gptid/5055ae20-8aed-11ed-9195-d05099c13d03 ONLINE 0 0 0
gptid/50543165-8aed-11ed-9195-d05099c13d03 ONLINE 0 0 0
cache
gptid/5052b77e-8aed-11ed-9195-d05099c13d03 ONLINE 0 0 0

errors: No known data errors
31 changes: 31 additions & 0 deletions examples/zfs-2.1.6-1-scrub-progress-days.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
pool: data
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 in progress since Sun Jan 15 23:29:50 2023
12.8T scanned at 45.4G/s, 50.9G issued at 180M/s, 20.7T total
0B repaired, 0.24% done, 1 days 09:15:46 to go
config:

NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
raidz3-0 ONLINE 0 0 0
gptid/95378d35-7b98-11ed-b486-d05099c13d03 ONLINE 0 0 0
gptid/4b4c3c38-6e06-11ed-a9d5-d05099c13d03 ONLINE 0 0 0
gptid/9b844178-2482-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/f0affe10-321b-11ec-ba66-d05099c13d03 ONLINE 0 0 0
gptid/e5f87be0-27e7-11ec-96bc-d05099c13d03 ONLINE 0 0 0
gptid/e9d6ea26-25dc-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/a02741cb-2527-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/33fe635d-2713-11ec-8714-d05099c13d03 ONLINE 0 0 0
logs
mirror-7 ONLINE 0 0 0
gptid/5055ae20-8aed-11ed-9195-d05099c13d03 ONLINE 0 0 0
gptid/50543165-8aed-11ed-9195-d05099c13d03 ONLINE 0 0 0
cache
gptid/5052b77e-8aed-11ed-9195-d05099c13d03 ONLINE 0 0 0

errors: No known data errors
29 changes: 29 additions & 0 deletions examples/zfs-2.1.6-1-scrub-progress-faulted.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
pool: data
state: DEGRADED
status: One or more devices are faulted in response to persistent errors.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Replace the faulted device, or use 'zpool clear' to mark the device
repaired.
scan: scrub in progress since Mon Nov 7 16:49:08 2022
13.0T scanned at 897M/s, 12.3T issued at 844M/s, 19.6T total
0B repaired, 62.53% done, 02:32:21 to go
config:

NAME STATE READ WRITE CKSUM
data DEGRADED 0 0 0
raidz3-0 DEGRADED 0 0 0
gptid/9ad22988-32e1-11ec-ba66-d05099c13d03 ONLINE 0 0 0
gptid/4543d53c-584a-11ed-9456-d05099c13d03 FAULTED 17 134 0 too many errors
gptid/9b844178-2482-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/f0affe10-321b-11ec-ba66-d05099c13d03 ONLINE 0 0 0
gptid/e5f87be0-27e7-11ec-96bc-d05099c13d03 ONLINE 0 0 0
gptid/e9d6ea26-25dc-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/a02741cb-2527-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/33fe635d-2713-11ec-8714-d05099c13d03 ONLINE 0 0 0
logs
gptid/d0e8b937-6a7f-11ec-b0e6-d05099c13d03 ONLINE 0 0 0
cache
gptid/a228d8bb-56ec-11eb-9900-d05099c13d03 ONLINE 0 0 0

errors: No known data errors
31 changes: 31 additions & 0 deletions examples/zfs-2.1.6-1-scrub-progress-no.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
pool: data
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 in progress since Sun Jan 15 23:29:50 2023
3.54G scanned at 117M/s, 3.09M issued at 102K/s, 20.7T total
0B repaired, 0.00% done, no estimated completion time
config:

NAME STATE READ WRITE CKSUM
data ONLINE 0 0 0
raidz3-0 ONLINE 0 0 0
gptid/95378d35-7b98-11ed-b486-d05099c13d03 ONLINE 0 0 0
gptid/4b4c3c38-6e06-11ed-a9d5-d05099c13d03 ONLINE 0 0 0
gptid/9b844178-2482-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/f0affe10-321b-11ec-ba66-d05099c13d03 ONLINE 0 0 0
gptid/e5f87be0-27e7-11ec-96bc-d05099c13d03 ONLINE 0 0 0
gptid/e9d6ea26-25dc-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/a02741cb-2527-11ec-8714-d05099c13d03 ONLINE 0 0 0
gptid/33fe635d-2713-11ec-8714-d05099c13d03 ONLINE 0 0 0
logs
mirror-7 ONLINE 0 0 0
gptid/5055ae20-8aed-11ed-9195-d05099c13d03 ONLINE 0 0 0
gptid/50543165-8aed-11ed-9195-d05099c13d03 ONLINE 0 0 0
cache
gptid/5052b77e-8aed-11ed-9195-d05099c13d03 ONLINE 0 0 0

errors: No known data errors
22 changes: 22 additions & 0 deletions examples/zfs-2.1.6-1-scrub.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
pool: jails
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:37:54 with 0 errors on Thu Dec 15 02:37:58 2022
config:

NAME STATE READ WRITE CKSUM
jails ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
gptid/5af3b112-ae22-11ec-b1df-d05099c13d03 ONLINE 0 0 0
gptid/eb3d01ce-ad8c-11ec-b1df-d05099c13d03 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
gptid/6f46a30c-0366-11ec-9de4-d05099c13d03 ONLINE 0 0 0
gptid/dda6dac8-0382-11ec-9de4-d05099c13d03 ONLINE 0 0 0
cache
gptid/3dce1035-8aea-11ed-b30b-d05099c13d03 ONLINE 0 0 0

errors: No known data errors
Loading