Starting and stopping all 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 all Ceph services on a particular node, execute the systemd manager for the Ceph unit with the start command. This command will start all Ceph services that you have deployed for this node:
# systemctl start ceph.target
- To stop all Ceph services on one particular node, execute the systemd manager for the Ceph unit using the stop command. This command will stop all Ceph services that you have deployed for this node:
# systemctl stop ceph\*.service ceph\*.target
- To start/stop all Ceph services on a remote host, execute the systemd manager with the -H option (specifying the remote hostname) with the start or stop command on the Ceph unit.
- To start all Ceph services for ceph-node2 from ceph-node1 use the following command:
root@ceph-node1 # systemctl -H ceph-node2 start ceph.target
- To stop all Ceph services for ceph-node2 from ceph-node1 use the following command:
root@ceph-node1 # systemctl -H ceph-node2 stop ceph\*.service ceph\*.target
Since your ceph.conf file has all of your Ceph hosts defined and your current node can ssh to all those other nodes you can use the -H option to start and stop all Ceph services for a particular host from another remote host. The ceph.conf file should be identical in all the nodes.