2014-03-10 23:52:31 +08:00
|
|
|
---
|
|
|
|
## SCENARIO 3: N JOURNAL DEVICES FOR N OSDS
|
|
|
|
|
2014-12-17 21:48:03 +08:00
|
|
|
- include: zap_devices.yml
|
2014-09-05 03:14:11 +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-05-16 00:27:41 +08:00
|
|
|
- name: prepare OSD disk(s)
|
2014-09-05 03:14:11 +08:00
|
|
|
command: "ceph-disk prepare {{ item.2 }} {{ item.3 }}"
|
2014-06-26 20:19:09 +08:00
|
|
|
when: (item.0.rc != 0 or item.1.rc != 0) and raw_multi_journal
|
2014-03-10 23:52:31 +08:00
|
|
|
ignore_errors: True
|
|
|
|
with_together:
|
|
|
|
- parted.results
|
2014-06-26 20:19:09 +08:00
|
|
|
- ispartition.results
|
2014-03-10 23:52:31 +08:00
|
|
|
- devices
|
|
|
|
- raw_journal_devices
|
2015-04-09 00:46:54 +08:00
|
|
|
changed_when: False
|
2014-03-10 23:52:31 +08:00
|
|
|
|
2014-09-05 03:14:11 +08:00
|
|
|
- include: activate_osds.yml
|