Add ZFS config
This commit is contained in:
parent
8eca9c8c1b
commit
2da19becf1
2 changed files with 18 additions and 0 deletions
4
files/zfs.conf
Normal file
4
files/zfs.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
# 4GB
|
||||
options zfs zfs_arc_max=4294967296
|
||||
# 2GB
|
||||
options zfs zfs_arc_min=2147483648
|
|
@ -79,3 +79,17 @@ systemd.service(
|
|||
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']
|
||||
)
|
||||
|
||||
|
|
Reference in a new issue