]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
roles/testnode: don't insist on creating XFS V4 filesystem 799/head
authorIlya Dryomov <idryomov@gmail.com>
Mon, 8 Dec 2025 19:38:46 +0000 (20:38 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Dec 2025 19:44:24 +0000 (20:44 +0100)
The V4 format has been deprecated since 2020 and as of 6.18 kernel no
longer compiled in by default.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
roles/testnode/tasks/var_lib.yml

index 324dc681823b6ba97c49f0e618aa556578414519..0781903e3b4a6f07c485dfe072100a2697e6a8b6 100644 (file)
@@ -7,19 +7,11 @@
     path: "/var/lib/ceph"
     state: directory
 
-- name: Set xfs_opts on newer OSes
-  set_fact:
-    xfs_opts: "-m crc=0,finobt=0"
-  when: (ansible_distribution | lower == 'ubuntu' and ansible_distribution_major_version|int >= 16) or
-        (ansible_distribution | lower in ['centos', 'rhel'] and ansible_distribution_major_version|int >= 7)
-
 - name: "Create xfs filesystem on {{ var_lib_partition }}"
   filesystem:
     dev: "{{ var_lib_partition }}"
     fstype: xfs
     force: yes
-    # Don't use a version 5 superblock as it's too new for some kernels
-    opts: "{{ xfs_opts|default('') }}"
 
 - name: "Mount {{ var_lib_partition }} to /var/lib/ceph"
   mount: