Ceph 守護進程

Ceph 守護進程

Operating a Cluster — Ceph Documentationnode

使用系統運行 CEPH

對於支持系統化的全部分發(CentOS 七、Fedora、Debian Jessie 8 及更晚,SUSE),如今使用本機系統文件而不是舊式系統腳本進行託管。例如:shell

sudo systemctl start ceph.target       # start all daemons
sudo systemctl status ceph-osd@12      # check status of osd.12

若要在節點上列出 Ceph 系統單元,請執行:ide

sudo systemctl status ceph\*.service ceph\*.target

啓動全部守護程序

若要在 Ceph 節點上啓動全部守護進程(不管類型如何),請執行如下操做:code

sudo systemctl start ceph.target

中止全部守護進程

若要中止 Ceph 節點上的全部守護進程(不管類型如何),請執行如下操做:server

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 節點上特定類型的全部守護進程,請執行如下操做之一:get

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 節點上啓動特定的守護進程實例,請執行如下操做之一:it

sudo systemctl start ceph-osd@{id}
sudo systemctl start ceph-mon@{hostname}
sudo systemctl start ceph-mds@{hostname}

例如:io

sudo systemctl start ceph-osd@1
sudo systemctl start ceph-mon@ceph-server
sudo systemctl start ceph-mds@ceph-server

中止守護進程

若要中止 Ceph 節點上的特定守護進程實例,請執行如下操做之一:class

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
相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息