mirror of https://github.com/ceph/ceph-ansible.git
osd: Add support for multipath disks
Multipath disks have partitions with a different format than what ceph-ansible currently supports, this update makes ceph-ansible aware of that format so multipath disks can be used as OSDs Signed-off-by: Caleb Boylan <caleb.boylan@ormuco.com>pull/2389/head
parent
b4dbc862d6
commit
0be60456ce
|
@ -3,7 +3,7 @@
|
|||
# partition.
|
||||
|
||||
- name: activate osd(s) when device is a disk
|
||||
command: ceph-disk activate "{{ item }}{%- if 'nvme' in item or 'cciss' in item or 'loop' in item %}{{ 'p' }}{%- endif %}{{ '1' }}"
|
||||
command: ceph-disk activate "{{ item }}{%- if 'nvme' in item or 'cciss' in item or 'loop' in item %}{{ 'p' }}{%- endif %}{%- if 'mpath' in item %}{{ '-part' }}{%- endif %}{{ '1' }}"
|
||||
with_items:
|
||||
- "{{ devices|unique }}"
|
||||
changed_when: false
|
||||
|
@ -14,7 +14,7 @@
|
|||
- item != '/dev/dead'
|
||||
|
||||
- name: activate osd(s) when device is a disk (dmcrypt)
|
||||
command: ceph-disk activate --dmcrypt "{{ item }}{%- if 'nvme' in item or 'cciss' in item or 'loop' in item %}{{ 'p' }}{%- endif %}{{ '1' }}"
|
||||
command: ceph-disk activate --dmcrypt "{{ item }}{%- if 'nvme' in item or 'cciss' in item or 'loop' in item %}{{ 'p' }}{%- endif %}{%- if 'mpath' in item %}{{ '-part' }}{%- endif %}{{ '1' }}"
|
||||
with_items:
|
||||
- "{{ devices|unique }}"
|
||||
changed_when: false
|
||||
|
|
Loading…
Reference in New Issue