ansible: zfs tuning
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 3 Aug 2023 14:53:25 +0000 (10:53 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 8 Aug 2023 15:15:36 +0000 (11:15 -0400)
Performance tuning on zfs 'tank', set atime=off and xattr=sa.

Add a dataset for libvirt images with a recordsize of 64k which matches
the default cluster size of qcow2 images.

Change-Id: I4c697f4b984821e4f856daeca569ac07db33cb93
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
automation/ansible/roles/zfs/tasks/main.yml

index 447224f49a9f52056efd127703cf34f85a90ea32..6e237fe8427999927eecee6b47647b0ba87704f6 100644 (file)
@@ -14,6 +14,8 @@
     state: present
     extra_zfs_properties:
       compression: zstd
+      atime: 'off'
+      xattr: 'sa'
 - name: Create datasets
   community.general.zfs:
     name: "tank/{{item}}"
     state: present
     extra_zfs_properties:
       mountpoint: '/var/lib/iso'
+- name: Create libvirt/images dataset
+  community.general.zfs:
+    name: 'tank/libvirt/images'
+    state: present
+    extra_zfs_properties:
+      mountpoint: '/var/lib/libvirt/images'
+      recordsize: '64k'
This page took 0.024132 seconds and 4 git commands to generate.