SYSVINIT is a traditional yet recommended method of managing Ceph daemons on Red-Hat-based systems as well as for some older Debian/Ubuntu-based distributions. The general syntax for managing Ceph daemons using sysvinit
is /etc/init.d/ceph [options] [command] [daemons]
.
Let's see how to start and stop all Ceph daemons:
start
command. This command will start all Ceph services that you have deployed for all the hosts mentioned in the ceph.conf
file:# /etc/init.d/ceph -a start
stop
command. This command will stop all Ceph services that you have deployed for all the hosts mentioned in the ceph.conf
file. The -a
option is to execute on all nodes:# /etc/init.d/ceph -a stop
Let's see how to start and stop daemons by type:
start
command followed by the daemon type:# /etc/init.d/ceph start mon
-a
option:# /etc/init.d/ceph -a start mon
osd
, mds
, and ceph-radosgw
:# /etc/init.d/ceph start osd # /etc/init.d/ceph start mds # /etc/init.d/ceph start ceph-radosgw
stop
command followed by the daemon type:# /etc/init.d/ceph stop mon
-a
option:# /etc/init.d/ceph -a stop mon
osd
, mds
, and ceph-radosgw
:# /etc/init.d/ceph stop osd # /etc/init.d/ceph stop mds # /etc/init.d/ceph stop ceph-radosgw
Let's see how to start and stop specific daemons.
To start a specific daemon on localhost, execute Ceph with the start
command followed by {daemon_type}.{instance}
, for example:
To stop a specific Ceph daemon on localhost, execute Ceph with the stop
command followed by {daemon_type}.{instance}
, for example:
mon.0
daemon:# /etc/init.d/ceph start mon.ceph-node1
# /etc/init.d/ceph stop osd.1 # /etc/init.d/ceph stop -a mds.ceph-node2 # /etc/init.d/ceph stop ceph-radosgw.gateway1
3.149.234.188