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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user