Ceph启动失败: ImportError: No module named rados
三台机器,每台兼任mds和osd,其中一台兼任mon,初始化成功(倒腾了一整天。。。)
然后启动的时候失败,信息如下。。。
# /etc/init.d/ceph -a start
=== mon.00 ===
Starting Ceph mon.00 on ceph00...already running
=== mds.00 ===
Starting Ceph mds.00 on ceph00...already running
=== mds.01 ===
Starting Ceph mds.01 on ceph01...already running
=== mds.02 ===
Starting Ceph mds.02 on ceph02...already running
=== osd.00 ===
Mounting Btrfs on ceph00:/data/osd.00
Scanning for Btrfs filesystems
Traceback (most recent call last):
File "/usr/local/ceph/bin/ceph", line 56, in <module>
import rados
ImportError: No module named rados
failed: 'timeout 10 /usr/local/ceph/bin/ceph --name=osd.00 --keyring=/data/osd.00/keyring osd crush create-or-move -- 00 0.02 root=default host=ceph00 '
root@ceph00:~/.ssh# /etc/init.d/ceph -a start
=== mon.00 ===
Starting Ceph mon.00 on ceph00...already running
=== mds.00 ===
Starting Ceph mds.00 on ceph00...already running
=== mds.01 ===
Starting Ceph mds.01 on ceph01...already running
=== mds.02 ===
Starting Ceph mds.02 on ceph02...already running
=== osd.00 ===
Mounting Btrfs on ceph00:/data/osd.00
Scanning for Btrfs filesystems
Traceback (most recent call last):
File "/usr/local/ceph/bin/ceph", line 56, in <module>
import rados
ImportError: No module named rados
failed: 'timeout 10 /usr/local/ceph/bin/ceph --name=osd.00 --keyring=/data/osd.00/keyring osd crush create-or-move -- 00 0.02 root=default host=ceph00 '
我是用ceph源码编译安装的,我用lsmod命令查看也确实没有rados模块,但是又查不到怎么安装rados模块。。
求助。。。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
应该是ceph或者ceph-deploy的依赖装到了python2.6中,而系统用的是python2.7,求问怎么解决,除了直接用python2.6