环境:centos6,ceph-0.80.5
源码安装。只在10-136-24-101部署了一个mon。

[root@10-136-24-101 ceph]# ceph version 0.80.5 (38b73c67d375a2552d8ed67843c8a65c2c0feba6)

[root@10-136-24-101 ceph]# ceph -s
2017-12-06 10:29:53.564922 7fca208f3700 0 librados: client.admin authentication error (1) Operation not permitted
Error connecting to cluster: PermissionError

================
以下贴上配置。
[root@10-136-24-101 ceph]# cat ceph.conf
[global]
fsid=23fbcf5c-f935-48b5-90b1-afbbfe3fadb5
mon initial members = node101
mon host = 10.136.24.101
auth_cluster_required = cephx
auth_service_required =cephx
auth_client_required = cephx

filestore_xattr_use_omap = true
osd pool default size = 3
public network =10.136.24.101/124

[mon.node101]
host = node101
mon addr = 10.136.24.101

[root@10-136-24-101 ceph]# cat ceph.client.admin.keyring
[client.admin]
key = AQCTvCZaCPG+EBAAQilE3qI7/n75aaH/7DyaZw==
auid = 0
caps mds = "allow"
caps mon = "allow *"
caps osd = "allow *"
2017-12-06 10:49 添加评论 分享
已邀请:

要回复问题请先登录注册

退出全屏模式 全屏模式 回复