So I've been trying to get this script to work, and it does, for a while.. The thing is every 2 - 2,5 hrs the script seem to start with a new process ID (maybe it's supposed to do this..?) causing first most of, then all my drives to spin up. I started using unRAID just a few days ago so I'm totally new to this but I thought the script was just supposed to start once, then just loop and sleep not start a new process after a while. The script is working fine for a while tho (I would say at least half a day), before this starts and I don't know why it happens.
First I tried the cache_dirs plugin but that didn't work at all, the script would run but once I started browsing the directories the disks would spin up, and I think the same thing happend after a while, were all the disk would spin up after 2 hrs.. Then I disabled the plugin, downloaded the script from here and just started it with cache_dirs -w and it worked!! The disks would not spin up when I was browsing my directories. and I was happy.
Then I learned today that after a while all my disk would spin up again. When I quit cache_dirs all returns to normal. How do I fix it? Maybe it's because I have the plugin installed, would that screw it up? It's disabled but maybe I have to delete it form the plugin folder also? I'm running unRAID 5.0.5 btw. Syslog attached. As you can see from the syslog everything is fine from around 07:00 to 19:19 when disks start spinning up again. And I manually spin down all the disk at 22:25,23:53, killling cache_dir at Aug 25 00:50 and spinning down all the disk for the last time.
syslog-2014-08-25.txt