Ceph分布式存储安装部署过程( 六 )


2018-05-23 11:08:38.913953 7fbd0e84d700 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication
2018-05-23 11:08:38.913955 7fbd0e84d700 0 librados: client.admin initialization error (2) No such file or directory
Error connecting to cluster: ObjectNotFound
[sysadmin@admin-node my-cluster]$
[root@admin-node ceph]# cp /home/sysadmin/my-cluster/* /etc/ceph/
cp: overwrite ‘/etc/ceph/ceph.bootstrap-mds.keyring’? y
cp: overwrite ‘/etc/ceph/ceph.conf’? y
[root@admin-node ceph]# chmod 755 *
[root@admin-node ceph]# ll
total 172
-rwxr-xr-x 1 root root 113 May 23 11:08 ceph.bootstrap-mds.keyring
-rwxr-xr-x 1 root root 71 May 23 11:08 ceph.bootstrap-mgr.keyring
-rwxr-xr-x 1 root root 113 May 23 11:08 ceph.bootstrap-osd.keyring
-rwxr-xr-x 1 root root 113 May 23 11:08 ceph.bootstrap-rgw.keyring
-rwxr-xr-x 1 root root 129 May 23 11:08 ceph.client.admin.keyring
-rwxr-xr-x 1 root root 225 May 23 11:08 ceph.conf
-rwxr-xr-x 1 root root 142307 May 23 11:08 ceph-deploy-ceph.log
-rwxr-xr-x 1 root root 73 May 23 11:08 ceph.mon.keyring
-rwxr-xr-x. 1 root root 92 Oct 4 2017 rbdmap
-rwxr-xr-x 1 root root 0 May 23 10:33 tmpAlNIWB
[root@admin-node ceph]#
10、查看集群状态
[sysadmin@admin-node my-cluster]$ ceph -s
cluster 77524d79-bc18-471a-8956-f5045579cc74
health HEALTH_OK
monmap e1: 1 mons at {mon-node1=10.100.50.128:6789/0}
election epoch 3, quorum 0 mon-node1
osdmap e11: 2 osds: 2 up, 2 in
flags sortbitwise,require_jewel_osds
pgmap v19: 64 pgs, 1 pools, 0 bytes data, 0 objects
68400 kB used, 40869 MB / 40936 MB avail
64 active+clean
[sysadmin@admin-node my-cluster]$ ceph osd tree
ID WEIGHT TYPE NAME UP/DOWN REWEIGHT PRIMARY-AFFINITY
-1 0.03897 root default
-2 0.01949 host osd-node1
0 0.01949 osd.0 up 1.00000 1.00000
-3 0.01949 host osd-node2
1 0.01949 osd.1 up 1.00000 1.00000
[sysadmin@admin-node my-cluster]$




推荐阅读