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
|
|
|
|
|
2017-02-01 20:59:35 +08:00
|
|
|
- name: prepare filestore osd disk(s) with a dedicated journal device
|
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
|
2017-06-29 23:34:54 +08:00
|
|
|
- osd_objectstore == 'filestore'
|
|
|
|
- not osd_auto_discovery
|
|
|
|
|
|
|
|
- name: manually prepare bluestore osd disk(s) with a dedicated device for db and wal
|
|
|
|
command: "ceph-disk prepare --bluestore --cluster {{ cluster }} --block.db {{ item.1 }} --block.wal {{ item.2 }} {{ item.3 }}"
|
|
|
|
with_together:
|
|
|
|
- "{{ parted_results.results }}"
|
|
|
|
- "{{ raw_journal_devices }}"
|
|
|
|
- "{{ bluestore_wal_devices }}"
|
|
|
|
- "{{ devices }}"
|
|
|
|
when:
|
|
|
|
- not item.0.get("skipped")
|
|
|
|
- item.0.get("rc", 0) != 0
|
|
|
|
- raw_multi_journal
|
|
|
|
- osd_objectstore == 'bluestore'
|
2016-05-09 22:08:33 +08:00
|
|
|
- not osd_auto_discovery
|
2014-03-10 23:52:31 +08:00
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- include: ../activate_osds.yml
|