From 1ead135bef801280e7cec21283c95c7ba440d84b Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 24 Oct 2017 16:26:03 -0400 Subject: [PATCH] ceph-volume lvm.activate check if lv device is mounted at path Signed-off-by: Alfredo Deza --- src/ceph-volume/ceph_volume/devices/lvm/activate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-volume/ceph_volume/devices/lvm/activate.py b/src/ceph-volume/ceph_volume/devices/lvm/activate.py index d4abb944a61d8..7d626a093019c 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 -- 2.39.5