用官网写的语句进行部署:
ceph orch apply rgw myorg us-east-1 --placement="2 myhost1 myhost2"
这里要注意下面的一句话:
Cephadm will wait for a healthy cluster and automatically create the supplied realm and zone if they do not exist before deploying the rgw daemon(s)
也就是说cephadm会等到集群状态健康,也就是health ok之后才会部署rgw服务!!
因此我们需要保证ceph集群状态健康
ceph health detail可以查看集群状态具体的信息
用ceph orch daemon rm 可以删掉坏的服务
ps:使用rgw服务创建用户的语句:
radosgw-admin user create --uid="admin" --display-name="admin" --access-key="admin" --secret-key="123456"