ceph rgw 部署记录

1、创建key,部署完ceph后,创建相关key文件:

ceph-authtool --create-keyring   /var/lib/ceph/radosgw/ceph-rgw.obj003/keyring

ceph-authtool -n  client.rgw.obj003  --gen-key /var/lib/ceph/radosgw/ceph-rgw.obj003/keyring

ceph-authtool -n client.rgw.obj003   --cap osd 'allow rwx' --cap mon 'allow rw'  /var/lib/ceph/radosgw/ceph-rgw.obj003/keyring

ceph -k /etc/ceph/ceph.client.admin.keyring    auth add  client.rgw.obj003  -i   /var/lib/ceph/radosgw/ceph-rgw.obj003/keyring
chmod +r /var/lib/ceph/radosgw/ceph-rgw.obj003/keyring

每个RGW节点都需要执行创建相应的keyring文件。

2、ceph.conf中关于rgw部分配置:

[client.rgw.obj002]
keyring = /var/lib/ceph/radosgw/ceph-rgw.obj002/keyring
rgw resolve cname = True
rgw data = /var/lib/ceph/radosgw/ceph-rgw.obj002
host = ceph030
rgw dns name = ceph.stroage.com
log file = /var/log/ceph/ceph-rgw-obj002.log
rgw socket path = /var/run/ceph/ceph.rgw.obj002.sock
rgw frontends = fastcgi
rgw_print_continue = false
rgw_content_length_compat = true

3、RGW服务重启

systemctl restart ceph-radosgw@rgw.obj003
systemctl  status ceph-radosgw@rgw.obj003

你可能感兴趣的:(openstack,文件系统,ceph)