Persist arc size
Modprobe only loads the module, it doesn't ensure the ARC value persists correctly.
This commit is contained in:
parent
0c6e9969bc
commit
d87ec89887
2 changed files with 7 additions and 5 deletions
1
ansible/roles/zfs/files/zfs-modprobe.conf
Normal file
1
ansible/roles/zfs/files/zfs-modprobe.conf
Normal file
|
@ -0,0 +1 @@
|
|||
options zfs zfs_arc_max={{ zfs_arc_size }}
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue