From: Alfredo Deza Date: Tue, 24 Oct 2017 20:26:03 +0000 (-0400) Subject: ceph-volume lvm.activate check if lv device is mounted at path X-Git-Tag: v12.2.2~83^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=76fb5fec94a9bbfed1163a23faf87e19d5617bd4;p=ceph.git ceph-volume lvm.activate check if lv device is mounted at path Signed-off-by: Alfredo Deza (cherry picked from commit 1ead135bef801280e7cec21283c95c7ba440d84b) --- diff --git a/src/ceph-volume/ceph_volume/devices/lvm/activate.py b/src/ceph-volume/ceph_volume/devices/lvm/activate.py index d4abb944a61..7d626a09301 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/activate.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/activate.py @@ -37,7 +37,7 @@ def activate_filestore(lvs): # mount the osd source = osd_lv.lv_path destination = '/var/lib/ceph/osd/%s-%s' % (conf.cluster, osd_id) - if not system.is_mounted(source, destination=destination): + if not system.device_is_mounted(source, destination=destination): process.run(['sudo', 'mount', '-v', source, destination]) # always re-do the symlink regardless if it exists, so that the journal