分享

ceph cluster操作命令

零钱少花 发表于 2016-2-3 10:53:11 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 0 11017
CEPH作为一个服务运行操作

启用所有守护
为了开启你的Ceph集群, 用 start 命令执行 ceph 。使用以下例子:
sudo service ceph [options] [start|restart] [daemonType|daemonID]
下面的操作步骤演示了一个典型的例子:
sudo service ceph -a start
一旦你用 -a (比如, 在所有节点上执行)执行, Ceph应该开始操作。
停止所有守护
为了停止你的Ceph集群, 用 stop 命令执行 ceph 。使用以下例子:
sudo service ceph [options] stop [daemonType|daemonID]
比如:
sudo service ceph -a stop
一旦你用 -a (比如, 在所有节点上执行)执行, Ceph应该关闭。
根据类型启用所有守护
为了在本地Ceph节点上启用一类特定类型的Ceph守护,你可以使用以下命令:
sudo service ceph start {daemon-type}
sudo service ceph start osd

为了在其他节点上启用一类特定类型的Ceph守护,你可以使用以下命令:
sudo service ceph -a start {daemon-type}
sudo service ceph -a start osd
根据类型停止所有守护
为了在本地Ceph节点上停止一类特定类型的Ceph守护,你可以使用以下命令:
sudo service ceph stop {daemon-type}
sudo service ceph stop osd
为了在其他节点上停止一类特定类型的Ceph守护,你可以使用以下命令:
sudo service ceph -a stop {daemon-type}
sudo service ceph -a stop osd

开启一个守护
为了在本地Ceph节点上开启一个特定类型的Ceph集群,你可以使用以下命令:
sudo service ceph start {daemon-type}.{instance}
sudo service ceph start osd.0
为了在其他节点上启用一个特定类型的Ceph守护,你可以使用以下命令:
sudo service ceph -a start {daemon-type}.{instance}
sudo service ceph -a start osd.0
停止一个守护
为了在本地Ceph节点上停止一个特定类型的Ceph集群,你可以使用以下命令:
sudo service ceph stop {daemon-type}.{instance}
sudo service ceph stop osd.0
为了在其他节点上停止一个特定类型的Ceph守护,你可以使用以下命令:
sudo service ceph -a stop {daemon-type}.{instance}
sudo service ceph -a stop osd.0

原文链接:http://ceph.com/docs/master/rados/operations/operating/

没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条