1.9 KiB
1.9 KiB
zfs_dkms
Ansible Role for ZFS on Fedora, Red Hat/derivatives, Debian, or Ubuntu. For pools/volumes, see:
Role Variables
Variable | Description | Role Default | Upstream Default |
---|---|---|---|
zfs_dkms_arc_pct_min |
Minimum physical memory (%) for ARC. (Adaptive Read Cache) |
0 |
0 |
zfs_dkms_arc_pct_max |
Peak physical memory (%) for ARC. | 16 |
0 |
zfs_dkms_timeout |
Seconds to wait while rebooting Fedora , RHEL , or derivatives for kernel/header currency. Not applicable to Debian or Ubuntu .Skipped when zfs is already loaded. |
3600 |
N/A |
Dependencies
community.general
:rhsm_repository
,dnf_config_manager
, andmodprobe
Example Playbook
---
- name: ZFS + Pool
hosts: exporter # group in inventory
roles:
- name: zfs_dkms
vars:
zfs_dkms_arc_pct_max: 33
tasks:
- name: Pool ('rust', mirror)
community.general.zpool:
name: rust
pool_properties:
ashift: 12
filesystem_properties:
compression: lz4
vdevs:
- type: mirror
disks:
- /dev/disk/by-id/ata-WDC_WD120EFBX-ABCDEFG_12345678
- /dev/disk/by-id/ata-WDC_WD120EFBX-HIJKLMN_87654321