ceph command returned non-zero exit status: 1

报错信息:

[node1][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy][ERROR ] RuntimeError: Failed to execute command: ceph –version

原因:官网中也有对应的说明

Add three OSDs. For the purposes of these instructions, we assume you have an unused disk in each node called /dev/vdb. Be sure that the device is not currently in use and does not contain any important data.
链接:官网

也就是ceph节点挂载的硬盘不能初始化。
vmware增加硬盘之后,在linux中使用

dfisk -l

当能看到信息的时候,代表成功。如果格式化+挂载目录后,将无法创建osd
在这里插入图片描述


版权声明:本文为weixin_49328057原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。