ceph-deploy error

[root@node-1 cluster]# ceph-deploy --overwrite-conf mon create-initial
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.37): /usr/bin/ceph-deploy --overwrite-conf mon create-initial
[ceph_deploy.cli][INFO  ] ceph-deploy options:
[ceph_deploy.cli][INFO  ]  username                      : None
[ceph_deploy.cli][INFO  ]  verbose                       : False
[ceph_deploy.cli][INFO  ]  overwrite_conf                : True
[ceph_deploy.cli][INFO  ]  subcommand                    : create-initial
[ceph_deploy.cli][INFO  ]  quiet                         : False
[ceph_deploy.cli][INFO  ]  cd_conf                       : <ceph_deploy.conf.cephdeploy.Conf instance at 0x22b99e0>
[ceph_deploy.cli][INFO  ]  cluster                       : ceph
[ceph_deploy.cli][INFO  ]  func                          : <function mon at 0x22b21b8>
[ceph_deploy.cli][INFO  ]  ceph_conf                     : None
[ceph_deploy.cli][INFO  ]  default_release               : False
[ceph_deploy.cli][INFO  ]  keyrings                      : None
[ceph_deploy.mon][DEBUG ] Deploying mon, cluster ceph hosts node-1 node-2 node-3
[ceph_deploy.mon][DEBUG ] detecting platform for host node-1 ...
[node-1][DEBUG ] connected to host: node-1 
[node-1][DEBUG ] detect platform information from remote host
[node-1][DEBUG ] detect machine type
[node-1][DEBUG ] find the location of an executable
[ceph_deploy.mon][INFO  ] distro info: CentOS Linux 7.2.1511 Core
[node-1][DEBUG ] determining if provided host has same hostname in remote
[node-1][DEBUG ] get remote short hostname
[node-1][DEBUG ] deploying mon to node-1
[node-1][DEBUG ] get remote short hostname
[node-1][DEBUG ] remote hostname: node-1
[node-1][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[node-1][DEBUG ] create the mon path if it does not exist
[node-1][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-node-1/done
[node-1][DEBUG ] create a done file to avoid re-doing the mon deployment
[node-1][DEBUG ] create the init path if it does not exist
[node-1][DEBUG ] locating the `service` executable...
[node-1][INFO  ] Running command: /usr/sbin/service ceph -c /etc/ceph/ceph.conf start mon.node-1
[node-1][WARNIN] /etc/init.d/ceph: line 15: /lib/lsb/init-functions: No such file or directory
[node-1][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy.mon][ERROR ] Failed to execute command: /usr/sbin/service ceph -c /etc/ceph/ceph.conf start mon.node-1
[ceph_deploy.mon][DEBUG ] detecting platform for host node-2 ...
[node-2][DEBUG ] connected to host: node-2 
[node-2][DEBUG ] detect platform information from remote host
[node-2][DEBUG ] detect machine type
[node-2][DEBUG ] find the location of an executable
[ceph_deploy.mon][INFO  ] distro info: CentOS Linux 7.2.1511 Core
[node-2][DEBUG ] determining if provided host has same hostname in remote
[node-2][DEBUG ] get remote short hostname
[node-2][DEBUG ] deploying mon to node-2
[node-2][DEBUG ] get remote short hostname
[node-2][DEBUG ] remote hostname: node-2
[node-2][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[node-2][DEBUG ] create the mon path if it does not exist
[node-2][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-node-2/done
[node-2][DEBUG ] create a done file to avoid re-doing the mon deployment
[node-2][DEBUG ] create the init path if it does not exist
[node-2][DEBUG ] locating the `service` executable...
[node-2][INFO  ] Running command: /usr/sbin/service ceph -c /etc/ceph/ceph.conf start mon.node-2
[node-2][WARNIN] /etc/init.d/ceph: line 15: /lib/lsb/init-functions: No such file or directory
[node-2][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy.mon][ERROR ] Failed to execute command: /usr/sbin/service ceph -c /etc/ceph/ceph.conf start mon.node-2
[ceph_deploy.mon][DEBUG ] detecting platform for host node-3 ...
[node-3][DEBUG ] connected to host: node-3 
[node-3][DEBUG ] detect platform information from remote host
[node-3][DEBUG ] detect machine type
[node-3][DEBUG ] find the location of an executable
[ceph_deploy.mon][INFO  ] distro info: CentOS Linux 7.2.1511 Core
[node-3][DEBUG ] determining if provided host has same hostname in remote
[node-3][DEBUG ] get remote short hostname
[node-3][DEBUG ] deploying mon to node-3
[node-3][DEBUG ] get remote short hostname
[node-3][DEBUG ] remote hostname: node-3
[node-3][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[node-3][DEBUG ] create the mon path if it does not exist
[node-3][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-node-3/done
[node-3][DEBUG ] create a done file to avoid re-doing the mon deployment
[node-3][DEBUG ] create the init path if it does not exist
[node-3][DEBUG ] locating the `service` executable...
[node-3][INFO  ] Running command: /usr/sbin/service ceph -c /etc/ceph/ceph.conf start mon.node-3
[node-3][WARNIN] /etc/init.d/ceph: line 15: /lib/lsb/init-functions: No such file or directory
[node-3][ERROR ] RuntimeError: command returned non-zero exit status: 1
[ceph_deploy.mon][ERROR ] Failed to execute command: /usr/sbin/service ceph -c /etc/ceph/ceph.conf start mon.node-3

ceph-deploy是一个用于部署Ceph集群的工具。它可以简化Ceph集群的安装和配置过程。通过使用ceph-deploy,您可以在目标节点上安装Ceph软件包并设置监视器,管理器和对象存储设备(OSD)。以下是使用ceph-deploy进行Ceph集群部署的一些步骤和命令: 1. 首先,在您选择的目录下执行以下命令: ceph-deploy install ceph0 ceph1 ceph2 这将安装Ceph软件包到名为ceph0、ceph1和ceph2的目标节点。 2. 接下来,在一个合适的位置创建一个文件夹来保存ceph-deploy工具生成的配置文件和日志文件。例如: mkdir /root/ceph-deploy 进入该目录: cd /root/ceph-deploy 3. 在这个目录中执行以下命令: ceph-deploy new ceph0 ceph1 ceph2 这将在目标节点上生成Ceph配置文件,例如ceph.conf。 4. 在完成上述步骤后,执行以下命令以创建初始监视器: ceph-deploy mon create-initial 这将在目标节点上创建Ceph监视器。 5. 您还可以设置管理器(mgr)和对象存储设备(OSD)。执行以下命令创建管理器: ceph-deploy mgr create ceph0 ceph1 ceph2 这将在目标节点上创建Ceph管理器。 完成上述步骤后,您可以使用ceph-deploy工具来管理和维护您的Ceph集群。请注意,ceph-deploy工具还提供了其他命令和选项,以满足特定需求和配置。 引用指向的是在目录下执行安装和设置监视器的命令。 引用指向的是在指定目录中生成Ceph配置文件的命令。 引用指向的是创建管理器的命令。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值