Add disk usage detection based on access counters

This commit is contained in:
Andrea Mazzoleni 2025-12-25 00:49:58 +01:00
parent 75b6170b79
commit 986d7464b4
7 changed files with 222 additions and 1 deletions

View file

@ -1592,6 +1592,18 @@ read.
.B attr:<device_file>:<disk_name>[/<split_index>]:power:down
Logs a successful spin\-down operation initiated via the
smartctl command.
.TP
.B attr:<device_file>:<disk_name>[/<split_index>]:stat:<access_number>
Logs the total number of read and write accesses done on the disk.
Comparing this number at different times, you can detect if the
disk was used during that time.
.RS 4
.PD 0
.HP 4
.I <access_number>
Total number of accesses (int64).
.PD
.RE
.SS Summary
Tags logging the overall failure probabilities for the array.
.TP

View file

@ -1016,6 +1016,13 @@ Command Smart Tags
Logs a successful spin-down operation initiated via the
smartctl command.
=attr:<device_file>:<disk_name>[/<split_index>]:stat:<access_number>
Logs the total number of read and write accesses done on the disk.
Comparing this number at different times, you can detect if the
disk was used during that time.
<access_number> - Total number of accesses (int64).
Summary
Tags logging the overall failure probabilities for the array.

View file

@ -1058,6 +1058,13 @@ Tags logging specific disk identification and attribute values.
Logs a successful spin-down operation initiated via the
smartctl command.
attr:<device_file>:<disk_name>[/<split_index>]:stat:<access_number>
Logs the total number of read and write accesses done on the disk.
Comparing this number at different times, you can detect if the
disk was used during that time.
<access_number> - Total number of accesses (int64).
---- 14.0.2 Summary ----
Tags logging the overall failure probabilities for the array.