I have backups and no real databases

This commit is contained in:
Christoph Cullmann 2025-04-28 16:49:19 +02:00
parent f05704bdd0
commit 9e88412940
No known key found for this signature in database

View file

@ -127,10 +127,13 @@ in
# tune the ZFS pool for NVMe # tune the ZFS pool for NVMe
system.activationScripts.zfsTuning = { system.activationScripts.zfsTuning = {
text = '' text = ''
# only one level of metadata caching # only one level of caching
${pkgs.zfs}/bin/zfs set primarycache=all zpool ${pkgs.zfs}/bin/zfs set primarycache=all zpool
${pkgs.zfs}/bin/zfs set secondarycache=none zpool ${pkgs.zfs}/bin/zfs set secondarycache=none zpool
# I have backups and no real databases
${pkgs.zfs}/bin/zfs set sync=disabled zpool
# use allow direct IO # use allow direct IO
${pkgs.zfs}/bin/zfs set direct=standard zpool ${pkgs.zfs}/bin/zfs set direct=standard zpool
''; '';