|
[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)',)
& G" {& J. ?5 @, ~# W. y1 |2 P$ [检查配置文件吧: 0 _; r2 k4 S+ v. j* |
[root@ceph1 ~]# 4 R1 i4 B$ Z9 g. O
[root@ceph1 ~]# vim /etc/ceph/ceph.conf
7 s) r9 L# B" N5 @3 h, n2 W; g$ g保证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 " `! B: F. \( l7 t) {$ e
services: mon: 1 daemons, quorum ceph1 (age 9h) mgr: ceph1.avxupz(active, since 9h) osd: 0 osds: 0 up, 0 in
) A+ _2 m& [" B0 Z; q7 J+ @& \+ b data: pools: 0 pools, 0 pgs objects: 0 objects, 0 B usage: 0 B used, 0 B / 0 B avail pgs:
5 h; a1 k& X2 x$ U1 a' N& S; Q2 m$ k$ S! H* K
) y& U3 I, `0 f6 u( w% _ |