Replies: 1 comment 2 replies
-
looks like it is updating metadata. i think this is an unrealistic request. and you are increasing the LCC of your hard disks by spinning them down. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use ZFS in my small home server in a single-disk configuration. To save power (and make it less noisy), I spin down the disk after inactivity:
To avoid unnecessary wakups, I zfs-auto-snapshot only takes monthly and weekly snaphots except if the disk is not spun down. For example, I added the following to my /etc/cron.hourly/zfs-auto-snapshot:
smartctl -i -n standby /dev/disk/by-id/ata-ST8000DM004-2CX188_ZCT30YLR >/dev/null; test $? -eq 2 && exit 0
This works mostly and even for extended periods of time. But sometimes, the disk spins up randomly without any purpose whatsoever and without any application requesting disk access.
I activated disk logging and found:
It is the kernel itself that's working on the disk.
There is no process active that should/could cause disk activity.
root and swap is not on ZFS (it is a pure data pool).
I do not think it is the intent log which is written every 5s because a) no user data is written b) most of the time, the disk stays spun down for a very long time.
Are there any maintenance threads that I can disable/tune?
PS: It is not a scheduled zpool scrub either. That happens once a month and is of course OK to spin up the disk.
PPS: Every 30s or so:
Beta Was this translation helpful? Give feedback.
All reactions