# - The devices listed in 'devices' will get 2 partitions, one for 'block' and one for 'data'.
# 'data' is only 100MB big and do not store any of your data, it's just a bunch of Ceph metadata.
# 'block' will store all your actual data.
-# - The devices in 'dedicated_devices' will get 1 partition for RocksDB DB, called 'block.db'
-# and one for RocksDB WAL, called 'block.wal'
+# - The devices in 'dedicated_devices' will get one partition for RocksDB DB, called 'block.db'
+# and one for RocksDB WAL, called 'block.wal'. To use a single partition for RocksDB and WAL together
+# set bluestore_wal_devices to [].
#
# By default dedicated_devices will represent block.db
#
# By default, if 'bluestore_wal_devices' is empty, it will get the content of 'dedicated_devices'.
# If set, then you will have a dedicated partition on a specific device for block.wal.
#
+# Set bluestore_wal_devices: [] to use the same partition for RocksDB and WAL.
+#
# Example of what you will get:
# [root@ceph-osd0 ~]# blkid /dev/sd*
# /dev/sda: PTTYPE="gpt"
# - The devices listed in 'devices' will get 2 partitions, one for 'block' and one for 'data'.
# 'data' is only 100MB big and do not store any of your data, it's just a bunch of Ceph metadata.
# 'block' will store all your actual data.
-# - The devices in 'dedicated_devices' will get 1 partition for RocksDB DB, called 'block.db'
-# and one for RocksDB WAL, called 'block.wal'
+# - The devices in 'dedicated_devices' will get one partition for RocksDB DB, called 'block.db'
+# and one for RocksDB WAL, called 'block.wal'. To use a single partition for RocksDB and WAL together
+# set bluestore_wal_devices to [].
#
# By default dedicated_devices will represent block.db
#
# By default, if 'bluestore_wal_devices' is empty, it will get the content of 'dedicated_devices'.
# If set, then you will have a dedicated partition on a specific device for block.wal.
#
+# Set bluestore_wal_devices: [] to use the same partition for RocksDB and WAL.
+#
# Example of what you will get:
# [root@ceph-osd0 ~]# blkid /dev/sd*
# /dev/sda: PTTYPE="gpt"
- not containerized_deployment
- item.0.partitions|length == 0
+- name: manually prepare ceph "{{ osd_objectstore }}" non-containerized osd disk(s) with a dedicated device for db
+ command: "ceph-disk prepare {{ ceph_disk_cli_options }} --block.db {{ item.1 }} {{ item.2 }}"
+ with_together:
+ - "{{ parted_results.results | default([]) }}"
+ - "{{ dedicated_devices }}"
+ - "{{ devices | unique }}"
+ when:
+ - osd_objectstore == 'bluestore'
+ - not containerized_deployment
+ - item.0.partitions|length == 0
+ - bluestore_wal_devices|length == 0
+
- name: manually prepare ceph "{{ osd_objectstore }}" non-containerized osd disk(s) with a dedicated device for db and wal
command: "ceph-disk prepare {{ ceph_disk_cli_options }} --block.db {{ item.1 }} --block.wal {{ item.2 }} {{ item.3 }}"
with_together:
when:
- osd_objectstore == 'bluestore'
- not containerized_deployment
- - item.0.partitions|length == 0
\ No newline at end of file
+ - item.0.partitions|length == 0
+ - bluestore_wal_devices|length > 0
\ No newline at end of file