Merge pull request #1676 from yanyixing/master

fix: osd use filestore
fixes: #1678
pull/1682/head v2.3.0rc2
Guits 2017-07-14 09:37:03 +02:00 committed by GitHub
commit 8f85beece7
1 changed files with 7 additions and 1 deletions

View File

@ -7,8 +7,14 @@
# if you have 64 disks with 4TB each, this will take a while
# since Ansible will sequential process the loop
- set_fact:
osd_type: "--filestore"
when:
- ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous
- osd_objectstore == 'filestore'
- name: prepare filestore osd disk(s) with a dedicated journal device
command: "ceph-disk prepare --cluster {{ cluster }} {{ item.1 }} {{ item.2 }}"
command: "ceph-disk prepare {{ osd_type | default('') }} --cluster {{ cluster }} {{ item.1 }} {{ item.2 }}"
with_together:
- "{{ parted_results.results }}"
- "{{ devices }}"