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 - name: Set module options
modprobe: template:
name: zfs src: files/zfs-modprobe.conf
state: present dest: /etc/modprobe.d/zfs.conf
params: zfs_arc_max={{ zfs_arc_size }} mode: "0644"
become: true
- name: ZFS Scrub - name: ZFS Scrub
cron: cron: