From 89f8ea310499a0d337c1a9e4d35e71e1811fa549 Mon Sep 17 00:00:00 2001 From: Hayato Date: Fri, 29 Nov 2024 22:37:29 +0900 Subject: [PATCH] Change skylark task into btrfs --- inventories/host_vars/skylark.yml | 4 ++-- tasks/skylark/mount.yml | 7 +++++++ tasks/skylark/xfs_tuning.yml | 15 --------------- 3 files changed, 9 insertions(+), 17 deletions(-) delete mode 100644 tasks/skylark/xfs_tuning.yml diff --git a/inventories/host_vars/skylark.yml b/inventories/host_vars/skylark.yml index 3a8233b..d569fd4 100644 --- a/inventories/host_vars/skylark.yml +++ b/inventories/host_vars/skylark.yml @@ -1,9 +1,9 @@ --- drives: skylark: - uuid: e456364a-f704-4602-9962-334898e05359 + uuid: 1085e1e0-8f93-44f2-b546-2e7448864338 mountpoint: /skylark - filesystem: "xfs" + filesystem: "btrfs" options: "defaults,noatime" backup: uuid: 77af48a6-5a47-4e06-a106-c5c74b6d1449 diff --git a/tasks/skylark/mount.yml b/tasks/skylark/mount.yml index fa6e11d..84f9a62 100644 --- a/tasks/skylark/mount.yml +++ b/tasks/skylark/mount.yml @@ -1,4 +1,11 @@ --- +- name: "Install btrfs modules" + ansible.builtin.apt: + pkg: + - btrfs-progs + - btrfs-compsize + update_cache: true + - name: Mount up device skylark ansible.posix.mount: path: "{{ drives.skylark.mountpoint }}" diff --git a/tasks/skylark/xfs_tuning.yml b/tasks/skylark/xfs_tuning.yml deleted file mode 100644 index 87b6662..0000000 --- a/tasks/skylark/xfs_tuning.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- - -- name: XFS tuning (Change sync-interval) - ansible.builtin.copy: - src: templates/skylark/etc/sysctl.d/20-xfs-sync-interval.conf - dest: /etc/sysctl.d/20-xfs-sync-interval.conf - owner: root - group: root - mode: '0644' - -- name: XFS tuning (Change syncd_centisec) - ansible.posix.sysctl: - name: fs.xfs.xfssyncd_centisecs - value: '5000' - state: present