From: Alfredo Deza Date: Mon, 16 Apr 2018 16:38:35 +0000 (-0400) Subject: ceph-volume lvm.activate detect vdo from tags for mounting filestore X-Git-Tag: v13.1.0~209^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0deef5f53c61b4215817008c04589a4f4b5cc3b3;p=ceph.git ceph-volume lvm.activate detect vdo from tags for mounting filestore Signed-off-by: Alfredo Deza --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/activate.py b/src/ceph-volume/ceph_volume/devices/lvm/activate.py index 1c299621188..1a3614808a5 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/activate.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/activate.py @@ -21,6 +21,7 @@ def activate_filestore(lvs): if not osd_lv: raise RuntimeError('Unable to find a data LV for filestore activation') is_encrypted = osd_lv.tags.get('ceph.encrypted', '0') == '1' + is_vdo = osd_lv.tags.get('ceph.vdo', '0') osd_id = osd_lv.tags['ceph.osd_id'] conf.cluster = osd_lv.tags['ceph.cluster_name'] @@ -55,10 +56,11 @@ def activate_filestore(lvs): source = '/dev/mapper/%s' % osd_lv.lv_uuid else: source = osd_lv.lv_path + # mount the osd destination = '/var/lib/ceph/osd/%s-%s' % (conf.cluster, osd_id) if not system.device_is_mounted(source, destination=destination): - process.run(['mount', '-v', source, destination]) + prepare_utils.mount_osd(source, osd_id, is_vdo=is_vdo) # always re-do the symlink regardless if it exists, so that the journal # device path that may have changed can be mapped correctly every time