From: Alfredo Deza Date: Mon, 16 Apr 2018 16:40:27 +0000 (-0400) Subject: ceph-volume lvm.prepare detect vdo from device for mounting filestore X-Git-Tag: v13.1.0~209^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6b87580d4fe8e86de958ac258971cb2f90a70455;p=ceph.git ceph-volume lvm.prepare detect vdo from device for mounting filestore Signed-off-by: Alfredo Deza --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/prepare.py b/src/ceph-volume/ceph_volume/devices/lvm/prepare.py index 575131973e3b0..167f5fcce92ef 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/prepare.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/prepare.py @@ -56,12 +56,14 @@ def prepare_filestore(device, journal, secrets, tags, osd_id, fsid): device = prepare_dmcrypt(key, device, 'data', tags) journal = prepare_dmcrypt(key, journal, 'journal', tags) + # vdo detection + is_vdo = api.is_vdo(device) # create the directory prepare_utils.create_osd_path(osd_id) # format the device prepare_utils.format_device(device) # mount the data device - prepare_utils.mount_osd(device, osd_id) + prepare_utils.mount_osd(device, osd_id, is_vdo=is_vdo) # symlink the journal prepare_utils.link_journal(journal, osd_id) # get the latest monmap