Log new block_unsynced and block_unscrubbed counter

This commit is contained in:
Andrea Mazzoleni 2026-02-02 15:39:39 +01:00
parent c09bdc572e
commit 60bd71d184
9 changed files with 154 additions and 109 deletions

View file

@ -300,16 +300,42 @@ The size of the parity file (uint).
.RE
.TP
.B content_info:<kind>:<counter>
The counters in the content file.
The counters in the content file. The \`kind\` is
one of the following:
.RS 4
.PD 0
.HP 4
.I <kind>
One of file, hardlink, symlink, dir_empty,
block_bad, block_rehash, block.
.I file
The count of files.
.HP 4
.I <counter>
The number of elements (uint)
.I hardlink
The counter of hardlinks.
.HP 4
.I symlink
The counter of symlinks.
.HP 4
.I dir_empty
The counter of empty directories.
.HP 4
.I block_bad
The counter of bad blocks. Bad blocks indicate data
or parity corruption.
.HP 4
.I block_rehash
The counter of blocks needing a rehash, usually
due to hash algorithm change.
.HP 4
.I block_unscrubbed
The counter of blocks that are unscrubbed
(just synced), meaning they have never been verified
since their first sync.
.HP 4
.I block_unsynced
The counter of blocks that are unsynced (need a sync),
meaning their parity data is out of date.
.HP 4
.I block
The total counter of blocks.
.PD
.RE
.SH DIAGNOSTICS TAGS
@ -825,22 +851,6 @@ capacity.
.B summary:total_use_percent:<uint>
Overall array use percentage.
.TP
.B summary:has_unsynced:<uint>
Count of blocks that are unsynced (need a sync), meaning their
parity data is out of date.
.TP
.B summary:has_unscrubbed:<uint>
Count of blocks that are unscrubbed (just synced), meaning they
have never been verified since the last sync.
.TP
.B summary:has_rehash:<uint>
Count of blocks needing a rehash, usually due to a content file
update or hash algorithm change.
.TP
.B summary:has_bad:<count>:<first>:<last>
Count of bad blocks, along with the first and last bad block index.
Bad blocks indicate data or parity corruption.
.TP
.B summary:scrub_oldest_days:<uint>
Days ago the oldest block was last scrubbed.
.TP

View file

@ -192,11 +192,23 @@ Content Tags
<size> - The size of the parity file (uint).
=content_info:<kind>:<counter>
The counters in the content file.
The counters in the content file. The `kind` is
one of the following:
<kind> - One of file, hardlink, symlink, dir_empty,
block_bad, block_rehash, block.
<counter> - The number of elements (uint)
file - The count of files.
hardlink - The counter of hardlinks.
symlink - The counter of symlinks.
dir_empty - The counter of empty directories.
block_bad - The counter of bad blocks. Bad blocks indicate data
or parity corruption.
block_rehash - The counter of blocks needing a rehash, usually
due to hash algorithm change.
block_unscrubbed - The counter of blocks that are unscrubbed
(just synced), meaning they have never been verified
since their first sync.
block_unsynced - The counter of blocks that are unsynced (need a sync),
meaning their parity data is out of date.
block - The total counter of blocks.
Diagnostics Tags
=version:<version>
@ -536,18 +548,6 @@ Command Status Tags
capacity.
=summary:total_use_percent:<uint>
Overall array use percentage.
=summary:has_unsynced:<uint>
Count of blocks that are unsynced (need a sync), meaning their
parity data is out of date.
=summary:has_unscrubbed:<uint>
Count of blocks that are unscrubbed (just synced), meaning they
have never been verified since the last sync.
=summary:has_rehash:<uint>
Count of blocks needing a rehash, usually due to a content file
update or hash algorithm change.
=summary:has_bad:<count>:<first>:<last>
Count of bad blocks, along with the first and last bad block index.
Bad blocks indicate data or parity corruption.
=summary:scrub_oldest_days:<uint>
Days ago the oldest block was last scrubbed.
=summary:scrub_median_days:<uint>

View file

@ -202,11 +202,23 @@ These tags report the information stored in the content file.
<size> - The size of the parity file (uint).
content_info:<kind>:<counter>
The counters in the content file.
The counters in the content file. The `kind` is
one of the following:
<kind> - One of file, hardlink, symlink, dir_empty,
block_bad, block_rehash, block.
<counter> - The number of elements (uint)
file - The count of files.
hardlink - The counter of hardlinks.
symlink - The counter of symlinks.
dir_empty - The counter of empty directories.
block_bad - The counter of bad blocks. Bad blocks indicate data
or parity corruption.
block_rehash - The counter of blocks needing a rehash, usually
due to hash algorithm change.
block_unscrubbed - The counter of blocks that are unscrubbed
(just synced), meaning they have never been verified
since their first sync.
block_unsynced - The counter of blocks that are unsynced (need a sync),
meaning their parity data is out of date.
block - The total counter of blocks.
4 DIAGNOSTICS TAGS
@ -561,18 +573,6 @@ and overall state.
capacity.
summary:total_use_percent:<uint>
Overall array use percentage.
summary:has_unsynced:<uint>
Count of blocks that are unsynced (need a sync), meaning their
parity data is out of date.
summary:has_unscrubbed:<uint>
Count of blocks that are unscrubbed (just synced), meaning they
have never been verified since the last sync.
summary:has_rehash:<uint>
Count of blocks needing a rehash, usually due to a content file
update or hash algorithm change.
summary:has_bad:<count>:<first>:<last>
Count of bad blocks, along with the first and last bad block index.
Bad blocks indicate data or parity corruption.
summary:scrub_oldest_days:<uint>
Days ago the oldest block was last scrubbed.
summary:scrub_median_days:<uint>