Hi,
I tried troubleshooting this issue from posts I found on this forum and others too, and with the help of ChatGPT, but nothing helped.
I have a 4TB WD drive that I use for data which I don't access a lot. I also have a 1TB WD drive that is constantly running for Plex, torrents, etc. As I don't use the 4TB one, I always had it configured to spin down after 20 minutes. On my previous server (RPi4, OMV 6, USB HDD enclosures) it worked, but I have another server now (J4125B, OMV 7, SATA connections), and it doesn't work.
After some investigation with btrace I can see that nothing accesses the drive when I don't use it, except pool-udisksd and udisksd.
I tried to apply the OMV settings again (see attached picture), but didn't work. With hdparm -C it is always active/idle. I tried editing /etc/udisks2/udisks2.conf, my config is this now:
[udisks2]
# Comma separated list of modules to load.
# Use asterisk to load all the modules.
modules=*
# Valid options are 'ondemand' or 'onstartup'.
modules_load_preference=ondemand
[defaults]
# Valid options are 'luks1' or 'luks2'
encryption=luks1
[Device wd40]
#PollingInterval=86400
EnableSmart=false
Display More
And you can see, I also tried to set the polling rate to a day. (I restarted udisks after modifications)
I tried editing /etc/smartd.conf, but there is a message that it is OMV generated and changes will be lost.
I need SMART monitoring, for my SSD system drive and 1TB HDD I don't care if they are checked every 5 minutes or so by udisks, but my 4TB drive should be checked less frequently, maybe once a day.
I really hope someone can help me with this.
Thanks in advance for the answers,
Matt