找回密码
 注册
查看: 507|回复: 0

Error initializing cluster client: InvalidArgumentError('RADOS invalid argument

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2023-5-3 21:00:04 | 显示全部楼层 |阅读模式
[root@ceph1 ~]# ceph -s
Error initializing cluster client: InvalidArgumentError('RADOS invalid argument (error calling conf_read_file)',)
[root@ceph1 ~]# vim /etc/ceph/ceph.conf
[root@ceph1 ~]# ping ceph1
PING ceph1 (192.168.13.180) 56(84) bytes of data.
64 bytes from ceph1 (192.168.13.180): icmp_seq=1 ttl=64 time=0.388 ms
^C
--- ceph1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.388/0.388/0.388/0.000 ms
[root@ceph1 ~]# ping ceph2
PING ceph2 (192.168.13.181) 56(84) bytes of data.
64 bytes from ceph2 (192.168.13.181): icmp_seq=1 ttl=64 time=2.06 ms
^C
--- ceph2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.062/2.062/2.062/0.000 ms
[root@ceph1 ~]# ping ceph3
PING ceph3 (192.168.13.182) 56(84) bytes of data.
64 bytes from ceph3 (192.168.13.182): icmp_seq=1 ttl=64 time=2.27 ms
^C
--- ceph3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.266/2.266/2.266/0.000 ms
[root@ceph1 ~]# ceph -s
Error initializing cluster client: InvalidArgumentError('RADOS invalid argument (error calling conf_read_file)',)

& ]0 z: r3 a; K3 m* x
检查配置文件吧:

* L4 F7 [1 \9 U. Y$ j" B
[root@ceph1 ~]#
/ e9 \* a3 q3 V
[root@ceph1 ~]# vim /etc/ceph/ceph.conf

+ m4 _$ ]0 E* V+ \& c3 P- w
保证ceph.conf文件格式正确就能连上ceph存储
[root@ceph1 ~]# ceph -s
  cluster:
    id:     9c079a1f-6fc2-4c59-bd4d-e8bc232d33a4
    health: HEALTH_WARN
            OSD count 0 < osd_pool_default_size 3

' `: U$ W' u# T+ v3 W5 W; L, |
  services:
    mon: 1 daemons, quorum ceph1 (age 9h)
    mgr: ceph1.avxupz(active, since 9h)
    osd: 0 osds: 0 up, 0 in
2 u: u5 R/ Z' a, k+ Q
  data:
    pools:   0 pools, 0 pgs
    objects: 0 objects, 0 B
    usage:   0 B used, 0 B / 0 B avail
    pgs:     
9 l! H3 M/ Z% R; m; i

3 A" I, T, _" L: j
( x- f, J3 H; G1 @# w
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:12 , Processed in 0.014815 second(s), 21 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表