From: Rodrigo Severo Date: Fri, 10 Jan 2020 14:38:19 +0000 (-0300) Subject: doc/install/upgrading-ceph: using systemd commands in Ubuntu instructions X-Git-Tag: v15.1.0~240^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2422f6df6731fb41d4b15a9ec5bb314cf3669665;p=ceph-ci.git 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 --- diff --git a/doc/install/upgrading-ceph.rst b/doc/install/upgrading-ceph.rst index b55f5c4d734..6fbf43a236d 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::