Selaa lähdekoodia

Merge pull request #7863 from jmencak/wipefs

Wipe filesystem metadata from CNS block devices.
Vadim Rutkovsky 7 vuotta sitten
vanhempi
commit
cf59931feb

+ 7 - 0
roles/openshift_storage_glusterfs/tasks/glusterfs_uninstall.yml

@@ -139,3 +139,10 @@
   when:
   - glusterfs_wipe
   - item.stdout_lines | count > 0
+
+- name: Wipe filesystem signatures from storage devices
+  command: "wipefs -a {% for device in hostvars[item].glusterfs_devices %}{{ device }} {% endfor %}"
+  delegate_to: "{{ item }}"
+  with_items: "{{ glusterfs_nodes | default([]) }}"
+  failed_when: False
+  when: glusterfs_wipe