I have backups and no real databases
This commit is contained in:
parent
f05704bdd0
commit
9e88412940
1 changed files with 4 additions and 1 deletions
|
@ -127,10 +127,13 @@ in
|
|||
# tune the ZFS pool for NVMe
|
||||
system.activationScripts.zfsTuning = {
|
||||
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 secondarycache=none zpool
|
||||
|
||||
# I have backups and no real databases
|
||||
${pkgs.zfs}/bin/zfs set sync=disabled zpool
|
||||
|
||||
# use allow direct IO
|
||||
${pkgs.zfs}/bin/zfs set direct=standard zpool
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue