【ceph运维】部署rgw
方法一
生成ceph-radosgw服务对应的用户和key:
ceph-authtool /etc/ceph/ceph.client.radosgw.keyring -n client.rgw.node1 --gen-key
添加用户访问权限:
ceph-authtool -n client.rgw.node1 --cap osd 'allow rwx' --cap mon 'allow rwx' /etc/ceph/ceph.client.radosgw.keyring
将keyring导入集群中:
ceph -k /etc/ceph/ceph.client.admin.keyring auth add client.rgw.node1 -i /etc/ceph/ceph.client.radosgw.keyring
方法二
1. 执行命令:
ceph auth get-or-create client.rgw.cephqaxx.rgw1 mon "allow rw" osd "allow rwx"
2. 修改ceph.conf 文件
3. 启动radosgw进程:
systemctl start ceph-radosgw@rgw.cephqaxx.rgw1