解决/etc/init.d/ceph: line 15: /lib/lsb/init-functions: No such file or dir...
解决/etc/init.d/ceph: line 15: /lib/lsb/init-functions: No such file or directory安装ceph监控节点时出现下面报错解决的办法:
# ceph-deploy mon create-initial
found configuration file at: /root/.cephdeploy.conf
Invoked (1.5.3): /usr/bin/ceph-deploy mon create-initial
Deploying mon, cluster ceph hosts node1
detecting platform for host node1 ...
connected to host: node1
detect platform information from remote host
detect machine type
distro info: CentOS 6.4 Final
determining if provided host has same hostname in remote
get remote short hostname
deploying mon to node1
get remote short hostname
remote hostname: node1
write cluster configuration to /etc/ceph/{cluster}.conf
create the mon path if it does not exist
checking for done path: /var/lib/ceph/mon/ceph-node1/done
done path does not exist: /var/lib/ceph/mon/ceph-node1/done
creating keyring file: /var/lib/ceph/tmp/ceph-node1.mon.keyring
create the monitor keyring file
Running command: ceph-mon --cluster ceph --mkfs -i node1 --keyring /var/lib/ceph/tmp/ceph-node1.mon.keyring
ceph-mon: mon.noname-a 10.240.240.211:6789/0 is local, renaming to mon.node1
ceph-mon: set fsid to 369daf5a-e844-4e09-a9b1-46bb985aec79
ceph-mon: created monfs at /var/lib/ceph/mon/ceph-node1 for mon.node1
unlinking keyring file /var/lib/ceph/tmp/ceph-node1.mon.keyring
create a done file to avoid re-doing the mon deployment
create the init path if it does not exist
locating the `service` executable...
Running command: /sbin/service ceph -c /etc/ceph/ceph.conf start mon.node1
/etc/init.d/ceph: line 15: /lib/lsb/init-functions: No such file or directory
RuntimeError: command returned non-zero exit status: 1
Failed to execute command: /sbin/service ceph -c /etc/ceph/ceph.conf start mon.node1
GenericError: Failed to create 1 monitors
解决办法:手动在mon节点上执行下面的命令
# yum install redhat-lsb
页:
[1]