In the last recipe, we learned about Ceph service management using sysvinit
; in this recipe, we will understand managing Ceph as a service, that is, using the Linux service
command. Starting from the Ceph Argonaut release, we can manage Ceph daemons using the Linux service
command with the following syntax:
service ceph [options] [command] [daemons]
To start or stop all Ceph daemons, perform the following set of commands.
Let's see how to start and stop all Ceph daemons:
To start your Ceph cluster, execute Ceph with the
start
command. This command will start all Ceph services that you have deployed for all the hosts mentioned in theceph.conf
file. Once you start Ceph with the-a
option, Ceph should begin operating:# service ceph -a start
To stop your Ceph cluster, execute Ceph with the
stop
command. This command will stop all Ceph services that you have deployed for all the hosts mentioned in theceph.conf
file. Once...