The problem
- After upgrading NAS system from Buster to Bullseye disks cannot spin down.
My NAS setup
- 5x mechanical disk WD RED, no RAID, ext4 without journaling
- Debian Bullseye, kernel 5.10
- system is loading from sixth SSD disk (not to wake up mechanical ones)
- hd-idle utility to set spin down after 30 mins of inactivity
hd-idle -i 0 -a sda -i 1800 -a sdb -i 1800 -a sdc -i 1800 -a sdd -i 1800 -a sde -i 1800 -l /var/log/hd-idle.log
- no hardware changes in NAS while upgrading to Bullseye, also no changes in config of hd-idle
- NAS is in this hardware setup for 8+ years and also software setup, mainly disks were spinning down after 30 mins for years without any problems
What I have tried
- If I use
hd-idle -t sda
, disk will immediately spin down, but after waking up (due to some regular disk activity), it never fall asleep again. - If disks are forced to spin down with
hd-idle -t
, they are not waking up without regular activity - so no repeating job is waking them. - I was suspicious about smartmontools, if there is some change in Bullseye which is waking them up. I was playing a little with
/etc/smartd.conf
and-n standby
, but no success, so I disabled smartd completely to find if smartmontools are the hidden bad-man, but no luck, looks they aren't. lsof | grep /media
gives nothing (media is mountpoint for all those disks)- I was playing a little with
iotop
also withnmon
. But nothing interesting found, only regular activity with SSD (system) disk. - I cannot run
iosnoop
for some reason. The packgeperf-tools-unstable
is installed properly, but callingiosnoop
ends withbash: iosnoop: command not found
even as a root. I did not find the cause of this.
It is obvious you cannot debug my system, but I will appreciate for any hints how to find the problem, who is preventing disks to spin down :-)