fix monitor disk used space underreported for spun-down disks

Unraid API returns fsUsed=0 when a disk's filesystem is unmounted (spun
down). disks.ini keeps the last-known value in KB even after spindown —
use it as fallback when isSpinning=false and fsUsed=0. Also remove the
mounted-only guard in the ini fallback path (vv_disk_entry) for the same
reason. Stale comments in user_script_plug-in.sh and partnership_manager.sh
also cleaned up.
This commit is contained in:
Gmer4Lfe
2026-06-27 23:08:51 -04:00
parent 75f2a4e3fd
commit b314aa4aff
4 changed files with 30 additions and 9 deletions
+1 -3
View File
@@ -347,9 +347,7 @@
# A reboot between the 14th and 15th will defer maintenance — which is intentional;
# heavy tasks (ZFS scrub, SMART long test) should not run on a freshly rebooted system.
#
# Configure via master.conf MONTHLY_MAINTENANCE_SCRIPTS. Scripts planned but not yet built:
# zfs_pool_scrub.sh ZFS pool integrity scrub (Tools/)
# smart_long_test.sh SMART extended drive health test (Tools/)
# Configure via master.conf MONTHLY_MAINTENANCE_SCRIPTS — see Tools/zfs_pool_scrub.sh and Tools/smart_long_test.sh.
#
# bash /boot/config/plugins/varaverk/Orchestrators/monthly_maintenance.sh
# bash /boot/config/plugins/varaverk/Orchestrators/monthly_maintenance.sh --dry-run