Re: Help! how to create multiple zonegroups in single realm?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I run
./bin/radosgw-admin -c ./run/c2/ceph.conf period update --commit

the error:
2017-05-03 04:46:10.298103 7fdb2e4226c0  1 Cannot find zone id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2), switching to local zonegroup configuration
2017-05-03 04:46:10.300145 7fdb2e4226c0 -1 Cannot find zone id=0cae32e6-82d5-489f-adf5-99e92c70f86f (name=us-2)
couldn't init storage provider


在 2017年5月3日,下午4:45,Orit Wasserman <owasserm@xxxxxxxxxx> 写道:



On Wed, May 3, 2017 at 11:36 AM, yiming xie <platoxym@xxxxxxxxx> wrote:
Hi Orit:
  Thanks for your reply.

 when I recreate secondary zone group, there is still a error!

  radosgw-admin realm pull --url="" href="http://localhost:8001/" title="http://localhost:8001/" style="font-family:arial,helvetica,sans-serif;color:rgb(19,109,186)" target="_blank" class="">http://localhost:8001 --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY --default
  radosgw-admin period pull --url="">http://localhost:8001 --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY --default
  radosge-admin zonegroup create --rgw-zonegroup=us2 --endpoints=http://localhost:8002 --rgw-realm=earth
  radosgw-admin zone create --rgw-zonegroup=us2 --rgw-zone=us-2 --endpoints=http://localhost:8002 --master --access-key=$SYSTEM_ACCESS_KEY --secret=$SYSTEM_SECRET_KEY
 radosgw-admin period update --commit --rgw-zonegroup=us2 --rgw-zone=us-2

Remove  "--rgw-zonegroup=us2 --rgw-zone=us-2" - they don't exist yet

 
2017-05-03 04:31:57.319796 7f87dab4e6c0  1 error read_lastest_epoch .rgw.root:periods.894eeaf6-4c1f-4478-88eb-413e58f1a4a4:staging.latest_epoch
Sending period to new master zone cb8fd49d-9789-4cb3-8010-2523bf46a650
could not find connection for zone or zonegroup id: cb8fd49d-9789-4cb3-8010-2523bf46a650
request failed: (2) No such file or directory
failed to commit period: (2) No such file or directory

ceph version 11.1.0-7421-gd25b355 (d25b3550dae243f6868a526632e97405866e76d4)


  

在 2017年5月3日,下午4:07,Orit Wasserman <owasserm@xxxxxxxxxx> 写道:

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 zonegroups
Tks 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" class="">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

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 configuration
2017-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

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux