Persist arc size

Modprobe only loads the module, it doesn't ensure the ARC value persists correctly.
This commit is contained in:
Jake Howard 2021-01-09 22:25:29 +00:00
parent 0c6e9969bc
commit d87ec89887
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 7 additions and 5 deletions

View file

@ -0,0 +1 @@
options zfs zfs_arc_max={{ zfs_arc_size }}

View file

@ -1,8 +1,9 @@
- name: Enable zfs module
modprobe:
name: zfs
state: present
params: zfs_arc_max={{ zfs_arc_size }}
- name: Set module options
template:
src: files/zfs-modprobe.conf
dest: /etc/modprobe.d/zfs.conf
mode: "0644"
become: true
- name: ZFS Scrub
cron: