How do I stop HDD activity every ~5 second on hdd - TrueNAS SCALE 22.02.4 with ZFS? #14421
Replies: 5 comments 2 replies
-
5 seconds indeed sounds like a maximum TXG commit timeout, used if pool is minimally modified. If atime property is enabled (default), it may even be caused by read accesses. If disabled (should usually be possible), then it must be some write. If you are saying the system dataset is on a boot poll, then it should not be the TrueNAS itself, but something that is running on top, like the Jellyfin. Just find what is writing. If nothing else, may be you could add another small SSD pool to mount it over the place that is getting the writes to remove them from the HDD pool. |
Beta Was this translation helpful? Give feedback.
-
Ok, so maybe another angle. Anyone know where is zfs.conf in TrueNAS SCALE 22.02.4? It is not in /etc/modprobe.d/ Where can I change zfs_txg_timeout=300? |
Beta Was this translation helpful? Give feedback.
-
AFAIK, this can be changed even after the zfs module is loaded. On linux I
simply do in one of startup scripts:
echo 120 > /sys/module/zfs/parameters/zfs_txg_timeout
…On Wed, Feb 1, 2023 at 10:41 AM Dozelr ***@***.***> wrote:
Ok, so maybe another angle. Anyone know where is zfs.conf in TrueNAS SCALE
22.02.4? It is not in /etc/modprobe.d/ Where can I change
zfs_txg_timeout=300?
—
Reply to this email directly, view it on GitHub
<#14421 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABXQ6HP6TEV275KDL4YT2L3WVGPMLANCNFSM6AAAAAAUEGH7UE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thank you Ivan. I have tested echo 5000 at night, and now I'm using script with echo 600 >/sys/module/zfs/parameters/zfs_txg_timeout It is a huge difference. Nevertheless I'm working on a hardware solution at my workshop. |
Beta Was this translation helpful? Give feedback.
-
It means there are disk activities going on. Even with 5 seconds zfx_txg_timeout, my hard drives would spin down after 20 minutes in idle. You probably need to check what is constantly writing data. |
Beta Was this translation helpful? Give feedback.
-
I have TrueNAS SCALE 22.02.4 with Jellyfin. System Dataset Pool is on boot-pool - SSD drive, but sound from my Toshiba N300 12TB is still on every 5 seconds. I just wanna keep my Jellyfin and that's it. Constant sound from HDD is driving me and my family crazy, server is in another room, but sound from HDD writes/reads is very loud, especially at night ~46dB. No one seems to know how to solve this issue. It is probably flushing of ZFS TXGs to the underlying storage media. Is there any solution for stopping it?
Beta Was this translation helpful? Give feedback.
All reactions