diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-08 01:40:32 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-08 01:40:32 +0200 |
commit | a12c2fe53f67012e2582ca1e951aa92732c2d144 (patch) | |
tree | faa681ff1b2a92958be0498dc2aca9dfa0fc2d9b | |
parent | zfs/base: better detection if zpool already exists (diff) |
vm/host: configure lvm to ignore zfs volumes
-rw-r--r-- | roles/vm/host/tasks/zfs.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/vm/host/tasks/zfs.yml b/roles/vm/host/tasks/zfs.yml index 00de48a9..b88ee73e 100644 --- a/roles/vm/host/tasks/zfs.yml +++ b/roles/vm/host/tasks/zfs.yml @@ -10,3 +10,10 @@ quota: "{{ item.value.quota | default(omit) }}" canmount: no mountpoint: none + +- name: configure lvm to ignore zfs volumes + lineinfile: + path: /etc/lvm/lvm.conf + backrefs: yes + regexp: '^\s*#?\s*global_filter\s*=' + line: ' global_filter = [ "r|/dev/zd[0-9]+|" ]' |