Add ZFS config

This commit is contained in:
Benoit S 2022-01-29 20:45:58 +09:00
parent 8eca9c8c1b
commit 2da19becf1
2 changed files with 18 additions and 0 deletions

4
files/zfs.conf Normal file
View file

@ -0,0 +1,4 @@
# 4GB
options zfs zfs_arc_max=4294967296
# 2GB
options zfs zfs_arc_min=2147483648

View file

@ -79,3 +79,17 @@ systemd.service(
enabled=True, enabled=True,
) )
files.put(
name='Push ZFS kernel config',
src='files/zfs.conf',
dest='/etc/modprobe.d/zfs.conf',
user='root',
group='root',
mode='644',
)
server.shell(
name='Update initramfs',
commands=['update-initramfs -u -k all']
)