2.6. 启动、停止和重启容器中运行的 Ceph 守护进程
使用 systemctl 命令启动、停止或重启容器中运行的 Ceph 守护进程。
前提条件
- 安装 Red Hat Ceph Storage 软件。
- 节点的根级别访问权限。
流程
要启动、停止或重启容器中运行的 Ceph 守护进程,请以以下格式组成的
root命令运行systemctl命令:systemctl ACTION ceph-DAEMON@ID- 替换
-
ACTION 是要执行的操作;
start,stop, 或restart。 -
DAEMON 是守护进程;
osd、mon、mds或rgw。 ID 是其中之一:
-
运行
ceph-mon、ceph-mds或ceph-rgw守护进程的短主机名。 -
ceph-osd守护进程的 ID (如果部署)。
-
运行
例如,要重启 ID 为
osd01的ceph-osd守护进程:[root@osd ~]# systemctl restart ceph-osd@osd01要启动
ceph-mondemon,在ceph-monitor01主机上运行:[root@mon ~]# systemctl start ceph-mon@ceph-monitor01停止在
ceph-rgw01主机上运行的ceph-rgw守护进程:[root@rgw ~]# systemctl stop ceph-radosgw@ceph-rgw01-
ACTION 是要执行的操作;
验证操作是否已成功完成。
systemctl status ceph-DAEMON@ID例如:
[root@mon ~]# systemctl status ceph-mon@ceph-monitor01
其它资源
- 如需更多信息,请参阅 Red Hat Ceph Storage 管理指南中的了解 Ceph 的进程管理部分。