I’ve recently noticed that my external hdd doesn’t stay in stand-by mode when the system is idle:
(of course that if a process is using the external disk - reading, writing the disk cannot be in stand-by)
Is there any suggestion on how to trace which process forces the disk out of stand-by ?
There’s nothing logged in journalctl.
And yes, /sbin/hdparm -S 240 /dev/sda
is run at boot.
i’ve tried to force stand.by, but it cames out in 3 or 4 minutes.
This is a recent issue.
I’m trying to trace which process is forcing it out of stand-by
(using lsof - no luck)
putting a small script to run in a separate terminal window:
while [ 1 ]
do
echo $(date +%d/%m/%y\ %T) " " $(hdparm -C /dev/sda)
sleep 2
done
It was very easy to pinpoint the correct time in which the hdd comes out of stand-by. Then a quick look into the journal to find the offending commands:
Now I know it is webmin related - I have disabled it for now - probably will uninstall it, as I don’t use it, but I would like to understand what could be the issue.
Let me add some more information if someone else has the same issues:
Webmin forces the Hdd out of standby because it collects system data in the background, which includes disk usage.
If one pretends to use webmin and keep the hdd in standby is just as easy as disabling that function in webmin configuration panel, followed by a system reboot.