2017-07-19 23:05:42 +08:00
|
|
|
---
|
2017-07-27 00:23:32 +08:00
|
|
|
- name: use ceph-volume to create filestore osds with dedicated journals
|
2017-08-24 02:43:31 +08:00
|
|
|
command: "ceph-volume lvm create --filestore --data {{ item.data_vg }}/{{ item.data }} --journal {{ item.journal }}"
|
2017-10-25 01:44:11 +08:00
|
|
|
environment:
|
|
|
|
CEPH_VOLUME_DEBUG: 1
|
2017-08-23 21:59:57 +08:00
|
|
|
with_items: "{{ lvm_volumes }}"
|
2017-08-31 04:55:16 +08:00
|
|
|
when:
|
|
|
|
- item.journal_vg is not defined
|
2017-10-24 23:05:58 +08:00
|
|
|
- osd_objectstore == 'filestore'
|
2017-08-31 04:55:16 +08:00
|
|
|
|
|
|
|
- name: use ceph-volume to create filestore osds with dedicated lv journals
|
|
|
|
command: "ceph-volume lvm create --filestore --data {{ item.data_vg }}/{{ item.data }} --journal {{item.journal_vg }}/{{ item.journal }}"
|
2017-10-25 01:44:11 +08:00
|
|
|
environment:
|
|
|
|
CEPH_VOLUME_DEBUG: 1
|
2017-08-31 04:55:16 +08:00
|
|
|
with_items: "{{ lvm_volumes }}"
|
|
|
|
when:
|
|
|
|
- item.journal_vg is defined
|
2017-10-24 23:05:58 +08:00
|
|
|
- osd_objectstore == 'filestore'
|
|
|
|
|
|
|
|
- name: use ceph-volume to create bluestore osds with db and wal
|
|
|
|
command: "ceph-volume lvm create --bluestore --data {{ item.data_vg }}/{{ item.data }} --block.wal {{ item.wal_vg }}/{{ item.wal }} --block.db {{ item.block_vg }}/{{ item.block }}"
|
2017-10-25 01:44:11 +08:00
|
|
|
environment:
|
|
|
|
CEPH_VOLUME_DEBUG: 1
|
2017-10-24 23:05:58 +08:00
|
|
|
with_items: "{{ lvm_volumes }}"
|
|
|
|
when:
|
|
|
|
- osd_objectstore == 'bluestore'
|
|
|
|
- item.wal is defined
|
|
|
|
- item.wal_vg is defined
|
|
|
|
- item.db is defined
|
|
|
|
- item.db_vg is defined
|
|
|
|
|
|
|
|
- name: use ceph-volume to create bluestore osds with db only
|
|
|
|
command: "ceph-volume lvm create --bluestore --data {{ item.data_vg }}/{{ item.data }} --block.db {{ item.block_vg }}/{{ item.block }}"
|
2017-10-25 01:44:11 +08:00
|
|
|
environment:
|
|
|
|
CEPH_VOLUME_DEBUG: 1
|
2017-10-24 23:05:58 +08:00
|
|
|
with_items: "{{ lvm_volumes }}"
|
|
|
|
when:
|
|
|
|
- osd_objectstore == 'bluestore'
|
|
|
|
- item.wal is not defined
|
|
|
|
- item.wal_vg is not defined
|
|
|
|
- item.db is defined
|
|
|
|
- item.db_vg is defined
|
|
|
|
|
|
|
|
- name: use ceph-volume to create bluestore osds with wal only
|
|
|
|
command: "ceph-volume lvm create --bluestore --data {{ item.data_vg }}/{{ item.data }} --block.wal {{ item.wal_vg }}/{{ item.wal }}"
|
2017-10-25 01:44:11 +08:00
|
|
|
environment:
|
|
|
|
CEPH_VOLUME_DEBUG: 1
|
2017-10-24 23:05:58 +08:00
|
|
|
with_items: "{{ lvm_volumes }}"
|
|
|
|
when:
|
|
|
|
- osd_objectstore == 'bluestore'
|
|
|
|
- item.wal is defined
|
|
|
|
- item.wal_vg is defined
|
|
|
|
- item.db is not defined
|
|
|
|
- item.db_vg is not defined
|
|
|
|
|
|
|
|
- name: use ceph-volume to create bluestore osds with just a data device
|
|
|
|
command: "ceph-volume lvm create --bluestore --data {{ item.data_vg }}/{{ item.data }}"
|
2017-10-25 01:44:11 +08:00
|
|
|
environment:
|
|
|
|
CEPH_VOLUME_DEBUG: 1
|
2017-10-24 23:05:58 +08:00
|
|
|
with_items: "{{ lvm_volumes }}"
|
|
|
|
when:
|
|
|
|
- osd_objectstore == 'bluestore'
|
|
|
|
- item.wal is not defined
|
|
|
|
- item.wal_vg is not defined
|
|
|
|
- item.db is not defined
|
|
|
|
- item.db_vg is not defined
|