无法启动 ceph 服务
Can't start ceph service
我在 CentOS7 上工作,我通过手动构建安装 ceph
./autogen.sh
./configure
make
make install
并按照此 link http://ceph.com/docs/master/install/manual-deployment/
手动部署
但是 ceph 在目录 /etc/rc.d/init.d/[=14 中不存在=]
Failed to issue method call: Unit ceph.service failed to load: No such
file or directory
所以,我无法启动服务。
在手动部署的文档中说我必须使用命令
sudo /etc/rc.d/init.d/ceph start mon.node1
在 CentOS7 中使用 systemd
所以,使用命令sudo systemctl start ceph-osd@0
就可以了!!!
您可以 运行 systemctl status ceph*
作为在框中显示任何服务的快捷方式,或者 systemctl list-units --type=service | grep ceph
服务名称语法为 ceph-mon@<hostname>.service
或 ceph-osd@<osd_num>.service
请 运行 systemctl list-unit-files
你可以列出所有的 ceph 服务,你必须用 ceph osd tree
找到 OSD 编号并输入这个命令 systemctl status ceph-osd@{OSD_NUM}.target
我在 CentOS7 上工作,我通过手动构建安装 ceph
./autogen.sh
./configure
make
make install
并按照此 link http://ceph.com/docs/master/install/manual-deployment/
手动部署但是 ceph 在目录 /etc/rc.d/init.d/[=14 中不存在=]
Failed to issue method call: Unit ceph.service failed to load: No such file or directory
所以,我无法启动服务。
在手动部署的文档中说我必须使用命令
sudo /etc/rc.d/init.d/ceph start mon.node1
在 CentOS7 中使用 systemd
所以,使用命令sudo systemctl start ceph-osd@0
就可以了!!!
您可以 运行 systemctl status ceph*
作为在框中显示任何服务的快捷方式,或者 systemctl list-units --type=service | grep ceph
服务名称语法为 ceph-mon@<hostname>.service
或 ceph-osd@<osd_num>.service
请 运行 systemctl list-unit-files
你可以列出所有的 ceph 服务,你必须用 ceph osd tree
找到 OSD 编号并输入这个命令 systemctl status ceph-osd@{OSD_NUM}.target