From 7f766846328aac82d75175ed2c1c0bf3438a99e0 Mon Sep 17 00:00:00 2001 From: Jan Fajerski Date: Mon, 7 Sep 2020 14:54:01 +0200 Subject: ceph-volume: make --journal optional, add --journal-slots Signed-off-by: Jan Fajerski --- src/ceph-volume/ceph_volume/devices/lvm/common.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/ceph-volume/ceph_volume/devices/lvm/common.py') diff --git a/src/ceph-volume/ceph_volume/devices/lvm/common.py b/src/ceph-volume/ceph_volume/devices/lvm/common.py index e8d976540b3..2ad8562ae61 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/common.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/common.py @@ -128,13 +128,19 @@ filestore_args = { 'help': 'Use the filestore objectstore', }, '--journal': { - 'help': '(REQUIRED) A logical volume (vg_name/lv_name), or path to a device', + 'help': 'A logical volume (vg_name/lv_name), or path to a device', }, '--journal-size': { 'help': 'Size of journal LV in case a raw block device was passed in --journal', 'default': '0', 'type': disk.Size.parse }, + '--journal-slots': { + 'help': ('Intended number of slots on journal device. The new OSD gets one' + 'of those slots or 1/nth of the available capacity'), + 'type': int, + 'default': 1, + }, } def get_default_args(): -- cgit v1.2.3