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
|
|
|
|
|
2014-06-26 20:19:09 +08:00
|
|
|
# NOTE (alahouze): if the device is a partition, the parted command below has
|
|
|
|
# failed, this is why we check if the device is a partition too.
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: prepare osd disk(s)
|
2016-03-29 21:37:31 +08:00
|
|
|
command: "ceph-disk prepare --cluster {{ cluster }} {{ item.2 }} {{ item.3 }}"
|
2014-03-10 23:52:31 +08:00
|
|
|
with_together:
|
2016-02-12 07:54:09 +08:00
|
|
|
- combined_parted_results.results
|
|
|
|
- combined_ispartition_results.results
|
2014-03-10 23:52:31 +08:00
|
|
|
- devices
|
|
|
|
- raw_journal_devices
|
2015-06-26 06:26:03 +08:00
|
|
|
changed_when: false
|
|
|
|
when:
|
2016-05-09 22:08:33 +08:00
|
|
|
- not item.0.get("skipped")
|
|
|
|
- not item.1.get("skipped")
|
|
|
|
- item.0.get("rc", 0) != 0
|
|
|
|
- item.1.get("rc", 0) != 0
|
|
|
|
- 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
|