ceph报错总结

  • Post author:
  • Post category:其他


1、Error EINVAL: New host node2 (node2) failed check: [‘podman|docker (/bin/docker) is present’, ‘systemctl is present’, ‘lvcreate is present’, “No time sync service is running; checked for [‘chrony.service’, ‘chronyd.service’, ‘systemd-timesyncd.service’, ‘ntpd.service’, ‘ntp.service’, ‘ntpsec.service’]”, ‘Hostname “node2” matches what is expected.’, ‘ERROR: No time synchronization is active’]


报错原因

:node2主机的chronyd服务没有开启


解决办法

:在node2上开启chronyd服务。命令:systemctl  start chronyd


2、 Error EINVAL: Can’t communicate with remote host `node2`, possibly because python3 is not installed there: cannot send (already closed?)


报错原因:

node2主机没有安装python3


解决办法:

在node2主机上安装python3,命令:yum -y install python3


3、 Slow OSD heartbeats on back (longest 1549.580ms)

Slow OSD heartbeats on front (longest 1104.882ms)


报错原因

:cpu异常


解决办法

: 重启系统,然后再等等。命令:reboot


4、Error EPERM: WARNING: this will *PERMANENTLY DESTROY* all data stored in pool cephrbd.  If you are *ABSOLUTELY CERTAIN* that is what you want, pass the pool name *twice*, followed by –yes-i-really-really-mean-it.

Error EPERM: pool deletion is disabled; you must first set the mon_allow_pool_delete config option to true before you can destroy a pool


5、Traceback (most recent call last):

File “/usr/bin/ceph-deploy”, line 5, in <module>

from pkg_resources import load_entry_point

ImportError: No module named pkg_resources



报错原因

:缺少模块


解决办法

:安装模块,命令:yum install -y python-setuptools


6、[ceph_deploy][ERROR ] ConfigError: Cannot load config: [Errno 2] No such file or directory: ‘ceph.conf’; has `ceph-deploy new` been run in this directory?

报错原因:表明在当前目录下找不到

ceph.conf

配置文件

解决办法: 切换到有ceph.conf配置文件的目录中,然后再执行ceph-deploy命令或者用 ceph-deploy new <ceph-admin-node> 命令,在当前目录下来生成

ceph.conf

配置文件。其中,

<ceph-admin-node>

是 Ceph 存储集群中的一个节点,用于管理和配置集群。确保你在命令中指定了正确的节点名称。



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