From a76352ecf01c27504881edb7b81a4849a2d3ddf5 Mon Sep 17 00:00:00 2001 From: Dan van der Ster Date: Mon, 30 Jul 2018 14:55:38 +0200 Subject: [PATCH] ceph-volume: enable ceph-osd during lvm activation Enable the ceph-osd@ unit during lvm activate to link these units to the ceph-osd.target. Signed-off-by: Dan van der Ster Fixes: http://tracker.ceph.com/issues/24152 (cherry picked from commit 261d8ac94d0008f57ac194718e9277c126e096b5) --- src/ceph-volume/ceph_volume/devices/lvm/activate.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ceph-volume/ceph_volume/devices/lvm/activate.py b/src/ceph-volume/ceph_volume/devices/lvm/activate.py index 5e9376e5dde48..79203e636f2aa 100644 --- a/src/ceph-volume/ceph_volume/devices/lvm/activate.py +++ b/src/ceph-volume/ceph_volume/devices/lvm/activate.py @@ -74,6 +74,9 @@ def activate_filestore(lvs, no_systemd=False): # enable the ceph-volume unit for this OSD systemctl.enable_volume(osd_id, osd_fsid, 'lvm') + # enable the OSD + systemctl.enable_osd(osd_id) + # start the OSD systemctl.start_osd(osd_id) terminal.success("ceph-volume lvm activate successful for osd ID: %s" % osd_id) @@ -173,6 +176,9 @@ def activate_bluestore(lvs, no_systemd=False): # enable the ceph-volume unit for this OSD systemctl.enable_volume(osd_id, osd_fsid, 'lvm') + # enable the OSD + systemctl.enable_osd(osd_id) + # start the OSD systemctl.start_osd(osd_id) terminal.success("ceph-volume lvm activate successful for osd ID: %s" % osd_id) -- 2.39.5