Ceph 启动-停止OSD服务报错

#/etc/init.d/ceph stop osd.1

etc/init.d/ceph: osd.1 not found (/etc/ceph/ceph.conf defines , /var/lib/ceph defines )

该命令出错,需要将 osd.1 加入 ceph.conf 中。在 ceph-admin 上的 ceph.conf 中添加:

[osd]

[osd.1]
host = ceph001

[osd.2]
host = ceph002

[osd.3]
host = ceph003

然后运行 ceph-deploy --overwrite-conf config push ceph2 将它拷贝到 ceph2 上。

就能够 启动和停止 所有的 osd 服务了。

posted @ 2017-02-06 00:45  Vincen_shen  阅读(2496)  评论(0)    收藏  举报