From 18e4b1068cac3df0e33d7cf3e89c9fceb4455f4f Mon Sep 17 00:00:00 2001 From: Zac Dover Date: Mon, 13 Feb 2023 15:35:32 +1000 Subject: [PATCH] doc/rgw: "Migrating Single Site to Multi-Site" Refine "Migrating Single-site System to Multi-site" in doc/radosgw/multisite.rst. https://tracker.ceph.com/issues/58632 Co-authored-by: Cole Mitchell Co-authored-by: Anthonh D'Atri Signed-off-by: Zac Dover (cherry picked from commit 40c82f8ef679ed6c5182765b3bf4d6e61ed2e66d) --- doc/radosgw/multisite.rst | 41 +++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/doc/radosgw/multisite.rst b/doc/radosgw/multisite.rst index dcaad7ccd6eda..139b815e63e6b 100644 --- a/doc/radosgw/multisite.rst +++ b/doc/radosgw/multisite.rst @@ -679,37 +679,37 @@ If the former master zone recovers, you can revert the failover operation by fol .. _rgw-multisite-migrate-from-single-site: -Migrating a Single Site System to Multi-Site -============================================ +Migrating a Single-Site Deployment to Multi-Site +================================================= -To migrate from a single site system with a ``default`` zone group and -zone to a multi site system, use the following steps: +To migrate from a single-site deployment with a ``default`` zonegroup and zone +to a multi-site system, follow these steps: -1. Create a realm. Replace ```` with the realm name. +1. Create a realm. Replace ```` with the realm name: .. prompt:: bash # radosgw-admin realm create --rgw-realm= --default -2. Rename the default zone and zonegroup. Replace ```` with the - zonegroup or zone name. +2. Rename the default zonegroup and zone. Replace ```` with the zone name + or zonegroup name: .. prompt:: bash # radosgw-admin zonegroup rename --rgw-zonegroup default --zonegroup-new-name= radosgw-admin zone rename --rgw-zone default --zone-new-name us-east-1 --rgw-zonegroup= -3. Configure the master zonegroup. Replace ```` with the realm or - zonegroup name. Replace ```` with the fully qualified domain - name(s) in the zonegroup. +3. Configure the master zonegroup. Replace ```` with the realm name or + zonegroup name. Replace ```` with the fully qualified domain name(s) + in the zonegroup: .. prompt:: bash # radosgw-admin zonegroup modify --rgw-realm= --rgw-zonegroup= --endpoints http://:80 --master --default -4. Configure the master zone. Replace ```` with the realm, - zonegroup or zone name. Replace ```` with the fully qualified - domain name(s) in the zonegroup. +4. Configure the master zone. Replace ```` with the realm name, zone + name, or zonegroup name. Replace ```` with the fully qualified domain + name(s) in the zonegroup: .. prompt:: bash # @@ -718,9 +718,9 @@ zone to a multi site system, use the following steps: --access-key= --secret= \ --master --default -5. Create a system user. Replace ```` with the username. - Replace ```` with a display name. It may contain - spaces. +5. Create a system user. Replace ```` with the username. Replace + ```` with a display name. The display name is allowed to + contain spaces: .. prompt:: bash # @@ -729,22 +729,21 @@ zone to a multi site system, use the following steps: --access-key= \ --secret= --system -6. Commit the updated configuration. +6. Commit the updated configuration: .. prompt:: bash # radosgw-admin period update --commit -7. Finally, restart the Ceph Object Gateway. +7. Restart the Ceph Object Gateway: .. prompt:: bash # systemctl restart ceph-radosgw@rgw.`hostname -s` After completing this procedure, proceed to `Configure a Secondary -Zone <#configure-secondary-zones>`__ to create a secondary zone -in the master zone group. - +Zone <#configure-secondary-zones>`_ and create a secondary zone +in the master zonegroup. Multi-Site Configuration Reference ================================== -- 2.39.5