2014-03-10 23:52:31 +08:00
|
|
|
---
|
|
|
|
## SCENARIO 3: N JOURNAL DEVICES FOR N OSDS
|
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- include: ../check_devices.yml
|
2014-03-10 23:52:31 +08:00
|
|
|
|
|
|
|
# NOTE (leseb): the prepare process must be parallelized somehow...
|
|
|
|
# if you have 64 disks with 4TB each, this will take a while
|
|
|
|
# since Ansible will sequential process the loop
|
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: prepare osd disk(s)
|
2016-11-30 18:00:39 +08:00
|
|
|
command: "ceph-disk prepare --cluster {{ cluster }} {{ item.1 }} {{ item.2 }}"
|
2014-03-10 23:52:31 +08:00
|
|
|
with_together:
|
2016-08-17 05:49:30 +08:00
|
|
|
- "{{ parted_results.results }}"
|
|
|
|
- "{{ devices }}"
|
|
|
|
- "{{ raw_journal_devices }}"
|
2015-06-26 06:26:03 +08:00
|
|
|
changed_when: false
|
|
|
|
when:
|
2016-11-30 18:00:39 +08:00
|
|
|
- item.0.get("skipped") or item.0.get("rc", 0) != 0
|
2016-05-09 22:08:33 +08:00
|
|
|
- raw_multi_journal
|
|
|
|
- not osd_auto_discovery
|
2014-03-10 23:52:31 +08:00
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- include: ../activate_osds.yml
|