mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 12:26:38 -05:00
Rename error counters
This commit is contained in:
parent
2cbc172fd3
commit
622b796208
7 changed files with 326 additions and 271 deletions
|
|
@ -956,7 +956,7 @@ Also the error tags are possible.
|
|||
.SS Summary Tags
|
||||
These tags provide summary statistics at the end of the command.
|
||||
.TP
|
||||
.B hash_summary:error_file:<count>
|
||||
.B hash_summary:error_soft:<count>
|
||||
Logs the total count of file\-related errors that caused a
|
||||
block to be skipped during the hashing phase. These are often
|
||||
due to file changes (missing, size/time change) during the
|
||||
|
|
@ -969,7 +969,7 @@ Total number of file errors (uint).
|
|||
.PD
|
||||
.RE
|
||||
.TP
|
||||
.B summary:error_file:<count>
|
||||
.B summary:error_soft:<count>
|
||||
Logs the total count of file\-related errors encountered during
|
||||
the process (e.g., missing files, file attribute changes).
|
||||
.RS 4
|
||||
|
|
@ -1013,8 +1013,8 @@ one of the following:
|
|||
No issues. The array is fully synchronized and healthy.
|
||||
.HP 4
|
||||
.I warning
|
||||
Some files were skipped due to modifications during
|
||||
execution or permission issues. No hardware risk.
|
||||
Some files were skipped due to likely intentional
|
||||
modifications. No hardware risk.
|
||||
.HP 4
|
||||
.I error
|
||||
Critical failure. Indicates serious issues like I/O failures
|
||||
|
|
@ -1023,7 +1023,8 @@ or filesystem inspection.
|
|||
.PD
|
||||
.RE
|
||||
.SH COMMAND CHECK/FIX TAGS
|
||||
Tags specific for the \`check\` and \`fix\` commands.
|
||||
Tags specific for the \`check\` and \`fix\` commands. For \`audit\` mode,
|
||||
it\'s inteded \`check\` with the \`\-\-audit\-only\` option.
|
||||
Also the error tags are possible.
|
||||
.SS Fixed/Recovered Tags
|
||||
These tags log successful repairs during fix operations.
|
||||
|
|
@ -1184,7 +1185,7 @@ These tags log the final status of files after processing.
|
|||
.TP
|
||||
.B status:unrecoverable:<disk_name>:<file_path>
|
||||
Indicates that a file has unrecoverable errors and was renamed to
|
||||
\`.unrecoverable\` (in fix mode) or cannot be recovered (in check mode).
|
||||
\`.unrecoverable\` (fix) or cannot be recovered (check).
|
||||
.RS 4
|
||||
.PD 0
|
||||
.HP 4
|
||||
|
|
@ -1209,21 +1210,9 @@ The file path relative to disk root (escaped).
|
|||
.PD
|
||||
.RE
|
||||
.TP
|
||||
.B status:damaged:<disk_name>:<file_path>
|
||||
Indicates that a file is damaged (in audit\-only mode, e.g., using \`check\`).
|
||||
.RS 4
|
||||
.PD 0
|
||||
.HP 4
|
||||
.I <disk_name>
|
||||
The name of the disk.
|
||||
.HP 4
|
||||
.I <file_path>
|
||||
The file path relative to disk root (escaped).
|
||||
.PD
|
||||
.RE
|
||||
.TP
|
||||
.B status:recoverable:<disk_name>:<file_path>
|
||||
Logs that a file has errors but could be recovered in fix mode.
|
||||
Logs that a file has errors but could be recovered with a
|
||||
\`fix\` (check).
|
||||
.RS 4
|
||||
.PD 0
|
||||
.HP 4
|
||||
|
|
@ -1236,7 +1225,7 @@ The file path relative to disk root (escaped).
|
|||
.RE
|
||||
.TP
|
||||
.B status:correct:<disk_name>:<file_path>
|
||||
Indicates that a file passed all checks successfully (verbose mode only).
|
||||
Indicates that a file passed all checks successfully (verbose).
|
||||
.RS 4
|
||||
.PD 0
|
||||
.HP 4
|
||||
|
|
@ -1250,18 +1239,42 @@ The file path relative to disk root (escaped).
|
|||
.SS Summary Tags
|
||||
These tags provide summary statistics at the end of the command.
|
||||
.TP
|
||||
.B summary:error:<error_count>
|
||||
Logs the total number of errors encountered.
|
||||
.B summary:error_soft:<count>
|
||||
Logs the total count of file\-related errors encountered during
|
||||
the process (e.g., missing files, file attribute changes).
|
||||
.RS 4
|
||||
.PD 0
|
||||
.HP 4
|
||||
.I <error_count>
|
||||
Total number of errors (uint).
|
||||
.I <count>
|
||||
The total number of file errors encountered (uint).
|
||||
.PD
|
||||
.RE
|
||||
.TP
|
||||
.B summary:error_io:<count>
|
||||
Logs the total count of input/output errors encountered on
|
||||
data or parity disks.
|
||||
.RS 4
|
||||
.PD 0
|
||||
.HP 4
|
||||
.I <count>
|
||||
The total number of I/O errors encountered (uint).
|
||||
.PD
|
||||
.RE
|
||||
.TP
|
||||
.B summary:error_data:<count>
|
||||
Logs the total count of \`silent data errors\` (data blocks
|
||||
not matching their expected hash) encountered during the sync
|
||||
process.
|
||||
.RS 4
|
||||
.PD 0
|
||||
.HP 4
|
||||
.I <count>
|
||||
The total number of silent data errors encountered (uint).
|
||||
.PD
|
||||
.RE
|
||||
.TP
|
||||
.B summary:error_recovered:<recovered_count>
|
||||
Logs the total number of errors successfully recovered (fix mode only).
|
||||
Logs the total number of errors successfully recovered (fix).
|
||||
.RS 4
|
||||
.PD 0
|
||||
.HP 4
|
||||
|
|
@ -1270,8 +1283,18 @@ Number of recovered errors (uint).
|
|||
.PD
|
||||
.RE
|
||||
.TP
|
||||
.B summary:error_recoverable:<recoverable_count>
|
||||
Logs the total number of errors that can be recovered (check).
|
||||
.RS 4
|
||||
.PD 0
|
||||
.HP 4
|
||||
.I <recoverable_count>
|
||||
Number of recoverable errors (uint).
|
||||
.PD
|
||||
.RE
|
||||
.TP
|
||||
.B summary:error_unrecoverable:<unrecoverable_count>
|
||||
Logs the total number of unrecoverable errors (not in audit\-only mode).
|
||||
Logs the total number of unrecoverable errors (fix/check).
|
||||
.RS 4
|
||||
.PD 0
|
||||
.HP 4
|
||||
|
|
@ -1287,22 +1310,29 @@ the following:
|
|||
.PD 0
|
||||
.HP 4
|
||||
.I ok
|
||||
Indicates that the operation completed with no errors.
|
||||
Indicates that the operation completed with no errors (audit).
|
||||
.HP 4
|
||||
.I warning
|
||||
Some files were different than expected, likely caused
|
||||
by intentional modification of the files.
|
||||
No hardware risk (audit).
|
||||
.HP 4
|
||||
.I error
|
||||
Critical failure. Indicates serious issues like I/O failures
|
||||
or silent data corruption. Requires immediate hardware
|
||||
or filesystem inspection (audit).
|
||||
.HP 4
|
||||
.I recovered
|
||||
Indicates that the operation completed with all
|
||||
errors successfully recovered (fix mode only).
|
||||
errors successfully recovered (fix).
|
||||
.HP 4
|
||||
.I recoverable
|
||||
Indicates that errors were found but are all
|
||||
recoverable (check mode only).
|
||||
recoverable (check).
|
||||
.HP 4
|
||||
.I unrecoverable
|
||||
Indicates that unrecoverable errors were
|
||||
found.
|
||||
.HP 4
|
||||
.I error
|
||||
Indicates that errors were found (audit\-only mode).
|
||||
found (check/fix).
|
||||
.PD
|
||||
.RE
|
||||
.SH COMMAND LIST TAGS
|
||||
|
|
@ -1801,30 +1831,6 @@ The integer exit status returned by the
|
|||
process (int).
|
||||
.PD
|
||||
.RE
|
||||
.SH STATUS TAGS
|
||||
These tags log the recovery status of files after a \`check\` or \`fix\`
|
||||
command.
|
||||
.TP
|
||||
.B status:unrecoverable:<disk_name>:<file_path>
|
||||
The file is not recoverable. If a \`fix\` command was run, it
|
||||
was also renamed with the \`.unrecoverable\` extension.
|
||||
.RS 4
|
||||
.PD 0
|
||||
.HP 4
|
||||
.I <disk_name>
|
||||
The name of the disk.
|
||||
.HP 4
|
||||
.I <file_path>
|
||||
The file path relative to disk root (escaped).
|
||||
.PD
|
||||
.RE
|
||||
.TP
|
||||
.B status:recovered:<disk_name>:<file_path>
|
||||
The file was recovered by a \`fix\` command.
|
||||
.TP
|
||||
.B status:recoverable:<disk_name>:<file_path>
|
||||
The file is recoverable, and will be recovered by a \`fix\`
|
||||
command.
|
||||
.SH ERROR TAGS
|
||||
These tags report specific errors that occur on data disks during the
|
||||
commands that access files and parities.
|
||||
|
|
|
|||
|
|
@ -636,7 +636,7 @@ Command Sync/Scrub Tags
|
|||
Summary Tags
|
||||
These tags provide summary statistics at the end of the command.
|
||||
|
||||
=hash_summary:error_file:<count>
|
||||
=hash_summary:error_soft:<count>
|
||||
Logs the total count of file-related errors that caused a
|
||||
block to be skipped during the hashing phase. These are often
|
||||
due to file changes (missing, size/time change) during the
|
||||
|
|
@ -644,7 +644,7 @@ Command Sync/Scrub Tags
|
|||
|
||||
<count> - Total number of file errors (uint).
|
||||
|
||||
=summary:error_file:<count>
|
||||
=summary:error_soft:<count>
|
||||
Logs the total count of file-related errors encountered during
|
||||
the process (e.g., missing files, file attribute changes).
|
||||
|
||||
|
|
@ -668,14 +668,15 @@ Command Sync/Scrub Tags
|
|||
one of the following:
|
||||
|
||||
ok - No issues. The array is fully synchronized and healthy.
|
||||
warning - Some files were skipped due to modifications during
|
||||
execution or permission issues. No hardware risk.
|
||||
warning - Some files were skipped due to likely intentional
|
||||
modifications. No hardware risk.
|
||||
error - Critical failure. Indicates serious issues like I/O failures
|
||||
or silent data corruption. Requires immediate hardware
|
||||
or filesystem inspection.
|
||||
|
||||
Command Check/Fix Tags
|
||||
Tags specific for the `check` and `fix` commands.
|
||||
Tags specific for the `check` and `fix` commands. For `audit` mode,
|
||||
it's inteded `check` with the `--audit-only` option.
|
||||
Also the error tags are possible.
|
||||
|
||||
Fixed/Recovered Tags
|
||||
|
|
@ -761,7 +762,7 @@ Command Check/Fix Tags
|
|||
|
||||
=status:unrecoverable:<disk_name>:<file_path>
|
||||
Indicates that a file has unrecoverable errors and was renamed to
|
||||
`.unrecoverable` (in fix mode) or cannot be recovered (in check mode).
|
||||
`.unrecoverable` (fix) or cannot be recovered (check).
|
||||
|
||||
<disk_name> - The name of the disk.
|
||||
<file_path> - The file path relative to disk root (escaped).
|
||||
|
|
@ -772,20 +773,15 @@ Command Check/Fix Tags
|
|||
<disk_name> - The name of the disk.
|
||||
<file_path> - The file path relative to disk root (escaped).
|
||||
|
||||
=status:damaged:<disk_name>:<file_path>
|
||||
Indicates that a file is damaged (in audit-only mode, e.g., using `check`).
|
||||
|
||||
<disk_name> - The name of the disk.
|
||||
<file_path> - The file path relative to disk root (escaped).
|
||||
|
||||
=status:recoverable:<disk_name>:<file_path>
|
||||
Logs that a file has errors but could be recovered in fix mode.
|
||||
Logs that a file has errors but could be recovered with a
|
||||
`fix` (check).
|
||||
|
||||
<disk_name> - The name of the disk.
|
||||
<file_path> - The file path relative to disk root (escaped).
|
||||
|
||||
=status:correct:<disk_name>:<file_path>
|
||||
Indicates that a file passed all checks successfully (verbose mode only).
|
||||
Indicates that a file passed all checks successfully (verbose).
|
||||
|
||||
<disk_name> - The name of the disk.
|
||||
<file_path> - The file path relative to disk root (escaped).
|
||||
|
|
@ -793,33 +789,57 @@ Command Check/Fix Tags
|
|||
Summary Tags
|
||||
These tags provide summary statistics at the end of the command.
|
||||
|
||||
=summary:error:<error_count>
|
||||
Logs the total number of errors encountered.
|
||||
=summary:error_soft:<count>
|
||||
Logs the total count of file-related errors encountered during
|
||||
the process (e.g., missing files, file attribute changes).
|
||||
|
||||
<count> - The total number of file errors encountered (uint).
|
||||
|
||||
<error_count> - Total number of errors (uint).
|
||||
=summary:error_io:<count>
|
||||
Logs the total count of input/output errors encountered on
|
||||
data or parity disks.
|
||||
|
||||
<count> - The total number of I/O errors encountered (uint).
|
||||
|
||||
=summary:error_data:<count>
|
||||
Logs the total count of `silent data errors` (data blocks
|
||||
not matching their expected hash) encountered during the sync
|
||||
process.
|
||||
|
||||
<count> - The total number of silent data errors encountered (uint).
|
||||
|
||||
=summary:error_recovered:<recovered_count>
|
||||
Logs the total number of errors successfully recovered (fix mode only).
|
||||
Logs the total number of errors successfully recovered (fix).
|
||||
|
||||
<recovered_count> - Number of recovered errors (uint).
|
||||
|
||||
=summary:error_recoverable:<recoverable_count>
|
||||
Logs the total number of errors that can be recovered (check).
|
||||
|
||||
<recoverable_count> - Number of recoverable errors (uint).
|
||||
|
||||
=summary:error_unrecoverable:<unrecoverable_count>
|
||||
Logs the total number of unrecoverable errors (not in audit-only mode).
|
||||
Logs the total number of unrecoverable errors (fix/check).
|
||||
|
||||
<unrecoverable_count> - Number of unrecoverable errors (uint).
|
||||
|
||||
=summary:exit:<status>
|
||||
Logs the overall exit status of the command. The `status` is one of
|
||||
the following:
|
||||
|
||||
ok - Indicates that the operation completed with no errors.
|
||||
|
||||
ok - Indicates that the operation completed with no errors (audit).
|
||||
warning - Some files were different than expected, likely caused
|
||||
by intentional modification of the files.
|
||||
No hardware risk (audit).
|
||||
error - Critical failure. Indicates serious issues like I/O failures
|
||||
or silent data corruption. Requires immediate hardware
|
||||
or filesystem inspection (audit).
|
||||
recovered - Indicates that the operation completed with all
|
||||
errors successfully recovered (fix mode only).
|
||||
errors successfully recovered (fix).
|
||||
recoverable - Indicates that errors were found but are all
|
||||
recoverable (check mode only).
|
||||
recoverable (check).
|
||||
unrecoverable - Indicates that unrecoverable errors were
|
||||
found.
|
||||
error - Indicates that errors were found (audit-only mode).
|
||||
found (check/fix).
|
||||
|
||||
Command List Tags
|
||||
This section describes the tags output with the `list` command.
|
||||
|
|
@ -1146,24 +1166,6 @@ Device Status Tags
|
|||
<exit_code> - The integer exit status returned by the
|
||||
process (int).
|
||||
|
||||
Status Tags
|
||||
These tags log the recovery status of files after a `check` or `fix`
|
||||
command.
|
||||
|
||||
=status:unrecoverable:<disk_name>:<file_path>
|
||||
The file is not recoverable. If a `fix` command was run, it
|
||||
was also renamed with the `.unrecoverable` extension.
|
||||
|
||||
<disk_name> - The name of the disk.
|
||||
<file_path> - The file path relative to disk root (escaped).
|
||||
|
||||
=status:recovered:<disk_name>:<file_path>
|
||||
The file was recovered by a `fix` command.
|
||||
|
||||
=status:recoverable:<disk_name>:<file_path>
|
||||
The file is recoverable, and will be recovered by a `fix`
|
||||
command.
|
||||
|
||||
Error Tags
|
||||
These tags report specific errors that occur on data disks during the
|
||||
commands that access files and parities.
|
||||
|
|
|
|||
|
|
@ -664,7 +664,7 @@ Also the error tags are possible.
|
|||
---- 9.0.1 Summary Tags ----
|
||||
These tags provide summary statistics at the end of the command.
|
||||
|
||||
hash_summary:error_file:<count>
|
||||
hash_summary:error_soft:<count>
|
||||
Logs the total count of file-related errors that caused a
|
||||
block to be skipped during the hashing phase. These are often
|
||||
due to file changes (missing, size/time change) during the
|
||||
|
|
@ -672,7 +672,7 @@ These tags provide summary statistics at the end of the command.
|
|||
|
||||
<count> - Total number of file errors (uint).
|
||||
|
||||
summary:error_file:<count>
|
||||
summary:error_soft:<count>
|
||||
Logs the total count of file-related errors encountered during
|
||||
the process (e.g., missing files, file attribute changes).
|
||||
|
||||
|
|
@ -696,8 +696,8 @@ These tags provide summary statistics at the end of the command.
|
|||
one of the following:
|
||||
|
||||
ok - No issues. The array is fully synchronized and healthy.
|
||||
warning - Some files were skipped due to modifications during
|
||||
execution or permission issues. No hardware risk.
|
||||
warning - Some files were skipped due to likely intentional
|
||||
modifications. No hardware risk.
|
||||
error - Critical failure. Indicates serious issues like I/O failures
|
||||
or silent data corruption. Requires immediate hardware
|
||||
or filesystem inspection.
|
||||
|
|
@ -706,7 +706,8 @@ These tags provide summary statistics at the end of the command.
|
|||
10 COMMAND CHECK/FIX TAGS
|
||||
=========================
|
||||
|
||||
Tags specific for the `check` and `fix` commands.
|
||||
Tags specific for the `check` and `fix` commands. For `audit` mode,
|
||||
it's inteded `check` with the `--audit-only` option.
|
||||
Also the error tags are possible.
|
||||
|
||||
---- 10.0.1 Fixed/Recovered Tags ----
|
||||
|
|
@ -792,7 +793,7 @@ These tags log the final status of files after processing.
|
|||
|
||||
status:unrecoverable:<disk_name>:<file_path>
|
||||
Indicates that a file has unrecoverable errors and was renamed to
|
||||
`.unrecoverable` (in fix mode) or cannot be recovered (in check mode).
|
||||
`.unrecoverable` (fix) or cannot be recovered (check).
|
||||
|
||||
<disk_name> - The name of the disk.
|
||||
<file_path> - The file path relative to disk root (escaped).
|
||||
|
|
@ -803,20 +804,15 @@ These tags log the final status of files after processing.
|
|||
<disk_name> - The name of the disk.
|
||||
<file_path> - The file path relative to disk root (escaped).
|
||||
|
||||
status:damaged:<disk_name>:<file_path>
|
||||
Indicates that a file is damaged (in audit-only mode, e.g., using `check`).
|
||||
|
||||
<disk_name> - The name of the disk.
|
||||
<file_path> - The file path relative to disk root (escaped).
|
||||
|
||||
status:recoverable:<disk_name>:<file_path>
|
||||
Logs that a file has errors but could be recovered in fix mode.
|
||||
Logs that a file has errors but could be recovered with a
|
||||
`fix` (check).
|
||||
|
||||
<disk_name> - The name of the disk.
|
||||
<file_path> - The file path relative to disk root (escaped).
|
||||
|
||||
status:correct:<disk_name>:<file_path>
|
||||
Indicates that a file passed all checks successfully (verbose mode only).
|
||||
Indicates that a file passed all checks successfully (verbose).
|
||||
|
||||
<disk_name> - The name of the disk.
|
||||
<file_path> - The file path relative to disk root (escaped).
|
||||
|
|
@ -824,18 +820,37 @@ These tags log the final status of files after processing.
|
|||
---- 10.0.4 Summary Tags ----
|
||||
These tags provide summary statistics at the end of the command.
|
||||
|
||||
summary:error:<error_count>
|
||||
Logs the total number of errors encountered.
|
||||
summary:error_soft:<count>
|
||||
Logs the total count of file-related errors encountered during
|
||||
the process (e.g., missing files, file attribute changes).
|
||||
|
||||
<error_count> - Total number of errors (uint).
|
||||
<count> - The total number of file errors encountered (uint).
|
||||
|
||||
summary:error_io:<count>
|
||||
Logs the total count of input/output errors encountered on
|
||||
data or parity disks.
|
||||
|
||||
<count> - The total number of I/O errors encountered (uint).
|
||||
|
||||
summary:error_data:<count>
|
||||
Logs the total count of `silent data errors` (data blocks
|
||||
not matching their expected hash) encountered during the sync
|
||||
process.
|
||||
|
||||
<count> - The total number of silent data errors encountered (uint).
|
||||
|
||||
summary:error_recovered:<recovered_count>
|
||||
Logs the total number of errors successfully recovered (fix mode only).
|
||||
Logs the total number of errors successfully recovered (fix).
|
||||
|
||||
<recovered_count> - Number of recovered errors (uint).
|
||||
|
||||
summary:error_recoverable:<recoverable_count>
|
||||
Logs the total number of errors that can be recovered (check).
|
||||
|
||||
<recoverable_count> - Number of recoverable errors (uint).
|
||||
|
||||
summary:error_unrecoverable:<unrecoverable_count>
|
||||
Logs the total number of unrecoverable errors (not in audit-only mode).
|
||||
Logs the total number of unrecoverable errors (fix/check).
|
||||
|
||||
<unrecoverable_count> - Number of unrecoverable errors (uint).
|
||||
|
||||
|
|
@ -843,14 +858,19 @@ These tags provide summary statistics at the end of the command.
|
|||
Logs the overall exit status of the command. The `status` is one of
|
||||
the following:
|
||||
|
||||
ok - Indicates that the operation completed with no errors.
|
||||
ok - Indicates that the operation completed with no errors (audit).
|
||||
warning - Some files were different than expected, likely caused
|
||||
by intentional modification of the files.
|
||||
No hardware risk (audit).
|
||||
error - Critical failure. Indicates serious issues like I/O failures
|
||||
or silent data corruption. Requires immediate hardware
|
||||
or filesystem inspection (audit).
|
||||
recovered - Indicates that the operation completed with all
|
||||
errors successfully recovered (fix mode only).
|
||||
errors successfully recovered (fix).
|
||||
recoverable - Indicates that errors were found but are all
|
||||
recoverable (check mode only).
|
||||
recoverable (check).
|
||||
unrecoverable - Indicates that unrecoverable errors were
|
||||
found.
|
||||
error - Indicates that errors were found (audit-only mode).
|
||||
found (check/fix).
|
||||
|
||||
|
||||
11 COMMAND LIST TAGS
|
||||
|
|
@ -1196,28 +1216,7 @@ command execution with the `smartctl` command.
|
|||
process (int).
|
||||
|
||||
|
||||
17 STATUS TAGS
|
||||
==============
|
||||
|
||||
These tags log the recovery status of files after a `check` or `fix`
|
||||
command.
|
||||
|
||||
status:unrecoverable:<disk_name>:<file_path>
|
||||
The file is not recoverable. If a `fix` command was run, it
|
||||
was also renamed with the `.unrecoverable` extension.
|
||||
|
||||
<disk_name> - The name of the disk.
|
||||
<file_path> - The file path relative to disk root (escaped).
|
||||
|
||||
status:recovered:<disk_name>:<file_path>
|
||||
The file was recovered by a `fix` command.
|
||||
|
||||
status:recoverable:<disk_name>:<file_path>
|
||||
The file is recoverable, and will be recovered by a `fix`
|
||||
command.
|
||||
|
||||
|
||||
18 ERROR TAGS
|
||||
17 ERROR TAGS
|
||||
=============
|
||||
|
||||
These tags report specific errors that occur on data disks during the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue