2.6. 启动、停止和重启容器中运行的 Ceph 守护进程

使用 systemctl 命令启动、停止或重启容器中运行的 Ceph 守护进程。

前提条件

  • 安装 Red Hat Ceph Storage 软件。
  • 节点的根级别访问权限。

流程

  1. 要启动、停止或重启容器中运行的 Ceph 守护进程,请以以下格式组成的 root 命令运行 systemctl 命令:

    systemctl ACTION ceph-DAEMON@ID
    替换
    • ACTION 是要执行的操作;start, stop, 或 restart
    • DAEMON 是守护进程; osdmonmdsrgw
    • ID 是其中之一:

      • 运行 ceph-monceph-mdsceph-rgw 守护进程的短主机名。
      • ceph-osd 守护进程的 ID (如果部署)。

    例如,要重启 ID 为 osd01ceph-osd 守护进程:

    [root@osd ~]# systemctl restart ceph-osd@osd01

    要启动 ceph-mon demon,在 ceph-monitor01 主机上运行:

    [root@mon ~]# systemctl start ceph-mon@ceph-monitor01

    停止在 ceph-rgw01 主机上运行的 ceph-rgw 守护进程:

    [root@rgw ~]# systemctl stop ceph-radosgw@ceph-rgw01
  2. 验证操作是否已成功完成。

    systemctl status ceph-DAEMON@ID

    例如:

    [root@mon ~]# systemctl status ceph-mon@ceph-monitor01

其它资源