From 2422f6df6731fb41d4b15a9ec5bb314cf3669665 Mon Sep 17 00:00:00 2001 From: Rodrigo Severo Date: Fri, 10 Jan 2020 11:38:19 -0300 Subject: [PATCH] doc/install/upgrading-ceph: using systemd commands in Ubuntu instructions Before this change, we were using the "restart" command which is a symlink to initctl(8). and it's offered by upstart. since ubuntu/vivid, ubuntu moved from upstart to systemd. Please see https://lists.ubuntu.com/archives/ubuntu-devel/2016-July/039465.html Signed-off-by: Rodrigo Severo --- doc/install/upgrading-ceph.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/install/upgrading-ceph.rst b/doc/install/upgrading-ceph.rst index b55f5c4d734c..6fbf43a236dc 100644 --- a/doc/install/upgrading-ceph.rst +++ b/doc/install/upgrading-ceph.rst @@ -106,7 +106,7 @@ To upgrade monitors, perform the following steps: #. Restart each monitor. For Ubuntu distributions, use:: - sudo restart ceph-mon id={hostname} + sudo systemctl restart ceph-mon@{hostname}.service For CentOS/Red Hat/Debian distributions, use:: @@ -150,11 +150,11 @@ To upgrade a Ceph OSD Daemon, perform the following steps: #. Restart the OSD, where ``N`` is the OSD number. For Ubuntu, use:: - sudo restart ceph-osd id=N + sudo systemctl restart ceph-osd@{N}.service - For multiple OSDs on a host, you may restart all of them with Upstart. :: + For multiple OSDs on a host, you may restart all of them with systemd. :: - sudo restart ceph-osd-all + sudo systemctl restart ceph-osd For CentOS/Red Hat/Debian distributions, use:: @@ -195,7 +195,7 @@ To upgrade a Ceph Metadata Server, perform the following steps: #. Restart the metadata server. For Ubuntu, use:: - sudo restart ceph-mds id={hostname} + sudo systemctl restart ceph-mds@{hostname}.service For CentOS/Red Hat/Debian distributions, use:: -- 2.47.3