I have a small server (Debian Buster) containing 2 WD RED hard disk which I have encrypted with LUKS and on which I set up a ZFS datapool with RAID 1.
As the server is not used to frequently I have created a autoshutdown script which checks for services etc. and if the data drives are active or in standby. If data drives are in standby for 40 minutes the server shuts down. This worked until recently where the drives are not staying in standby longer than 5 minutes.
With `iotop` I figured out that this is related to a `txg_sync` command by ZFS which wakes up my drives. Can I reduce the frequency of this command running to allow my drives to go to standby again? Like I said it worked before and I don't know why not now anymore.
As the server is not used to frequently I have created a autoshutdown script which checks for services etc. and if the data drives are active or in standby. If data drives are in standby for 40 minutes the server shuts down. This worked until recently where the drives are not staying in standby longer than 5 minutes.
With `iotop` I figured out that this is related to a `txg_sync` command by ZFS which wakes up my drives. Can I reduce the frequency of this command running to allow my drives to go to standby again? Like I said it worked before and I don't know why not now anymore.