Ceph 守护进程
Operating a Cluster — Ceph Documentation
使用系统运行 CEPH
对于支持系统化的所有分发(CentOS 7、Fedora、Debian Jessie 8 及更晚,SUSE),现在使用本机系统文件而不是旧式系统脚本进行托管。例如:
sudo systemctl start ceph.target # start all daemons
sudo systemctl status ceph-osd@12 # check status of osd.12
若要在节点上列出 Ceph 系统单元,请执行:
sudo systemctl status ceph\*.service ceph\*.target
启动所有守护程序
若要在 Ceph 节点上启动所有守护进程(无论类型如何),请执行以下操作:
sudo systemctl start ceph.target
停止所有守护进程
若要停止 Ceph 节点上的所有守护进程(无论类型如何),请执行以下操作:
sudo systemctl stop ceph\*.service ceph\*.target
按类型启动所有守护进程
若要在 Ceph 节点上启动特定类型的所有守护进程,请执行以下操作之一:
sudo systemctl start ceph-osd.target
sudo systemctl start ceph-mon.target
sudo systemctl start ceph-mds.target
按类型停止所有守护进程
若要停止 Ceph 节点上特定类型的所有守护进程,请执行以下操作之一:
sudo systemctl stop ceph-mon\*.service ceph-mon.target
sudo systemctl stop ceph-osd\*.service ceph-osd.target
sudo systemctl stop ceph-mds\*.service ceph-mds.target
启动守护进程
若要在 Ceph 节点上启动特定的守护进程实例,请执行以下操作之一:
sudo systemctl start ceph-osd@{id}
sudo systemctl start ceph-mon@{hostname}
sudo systemctl start ceph-mds@{hostname}
例如:
sudo systemctl start ceph-osd@1
sudo systemctl start ceph-mon@ceph-server
sudo systemctl start ceph-mds@ceph-server
停止守护进程
若要停止 Ceph 节点上的特定守护进程实例,请执行以下操作之一:
sudo systemctl stop ceph-osd@{id}
sudo systemctl stop ceph-mon@{hostname}
sudo systemctl stop ceph-mds@{hostname}
例如:
sudo systemctl stop ceph-osd@1
sudo systemctl stop ceph-mon@ceph-server
sudo systemctl stop ceph-mds@ceph-server
[root@node1 ~]# ls /usr/lib/systemd/system | grep ceph
ceph-crash.service
ceph-fuse@.service
ceph-fuse.target
ceph-mds@.service
ceph-mds.target
ceph-mgr@.service
ceph-mgr.target
ceph-mon@.service
ceph-mon.target
ceph-osd@.service
ceph-osd.target
ceph-radosgw@.service
ceph-radosgw.target
ceph.target
ceph-volume@.service