Hi folks,
I have the problem that my NAS is executing a shutdown while a ZFS scrub is running. I tried to change several settings in the autoshutdown-plugin, but I wasn´t successful.
- I have activated 'load average'. But in the autoshutdown log I get 'load average is lower than (40)' => Shutdown
BTW: I have no idea what '40' (the default setting) means. - I have activated 'HDD-IO', because a ZFS scrub generates a heavy disk load. But in the autoshutdown log only /dev/sda (the boot drive) is mentioned. It seems that autoshutdown isn´t respecting a ZFS scrub as HDD-IO. This activity is not "seen" by the plugin.
- Then I wanted to check for a running process. But there is no special process which is responsible for the scrubbing. It is started with zpool scrub <poolname> which terminates immediately.
So I didn´t find a solution to avoid a shutdown while a zfs scrub is running.
I would be happy If someone has an idea how to configure autoshutdown to avoid this.
Thanks in advance.
###################################################################################
Edit 2017-08-17:
Meanwhile I found a solution and wrote a small HowTo, which can be found in post no. 8 to no. 10.