Hi,
On Wed, May 3, 2017 at 11:00 AM, yiming xie <platoxym@xxxxxxxxx> wrote:
Hi orit:I try to create multiple zonegroups in single realm, but failed. Pls tell me the correct way about creating multiple zonegroupsTks a lot!!1.create the firstr zone group on the c1 cluster./bin/radosgw-admin -c ./run/c1/ceph.conf realm create --rgw-realm=earth --default./bin/radosgw-admin -c ./run/c1/ceph.conf zonegroup create --rgw-zonegroup=us --endpoints=http://localhost:8001 --master --default./bin/radosgw-admin -c ./run/c1/ceph.conf zone create --rgw-zonegroup=us --rgw-zone=us-1 --endpoints=http://localhost:8001 --master --default --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY ./bin/radosgw-admin -c ./run/c1/ceph.conf user create --uid=zone.user --display-name="Zone User" --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY --system ./bin/radosgw-admin -c ./run/c1/ceph.conf period update --commit//start rgw./bin/radosgw -c ./run/c1/ceph.conf --log-file=./run/c1/out/rgw.log --debug-rgw=20 --debug-ms=1 -i client.rgw.us-1 -rgw-zone=us-1 2.create the scondary zone group on the c2 cluster./bin/radosgw-admin -c ./run/c2/ceph.conf realm pull --url="" href="http://localhost:8001/" title="http://localhost:8001/" style="text-decoration:none;color:rgb(19,109,186);font-family:"lucida grande","lucida sans unicode",sans-serif" target="_blank">http://localhost:8001 --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
I recommend adding --default that set this realm as default otherwise you need to run:
radosgw-admin realm default --rgw-realm=earth
radosgw-admin realm default --rgw-realm=earth
You are missing the period pull command:
radosgw-admin period pull --url="">http://localhost:8001 --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY --default
Orit
./bin/radosgw-admin -c ./run/c2/ceph.conf zonegroup create --rgw-zonegroup=us2 --endpoints=http://localhost:8002 --rgw-realm=earth./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit --rgw-zonegroup=us2 --rgw-realm=earth 2017-05-03 00:51:20.190417 7f538dbbb6c0 1 Cannot find zone id= (name=), switching to local zonegroup configuration2017-05-03 00:51:20.192342 7f538dbbb6c0 -1 Cannot find zone id= (name=)couldn't init storage provider....../bin/radosgw-admin -c ./run/c2/ceph.conf zone create ......
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com