Configuring a multi-site
Configure multi-site on the IBM Storage Ceph dashboard.
Before you begin
- An IBM Storage Ceph cluster at both the sites.
- At least one Ceph Object Gateway service installed at both the sites.
Procedure
-
Enable the Ceph Object Gateway module on both the sites to enable import/export feature.
- From the dashboard navigation of the primary site, go to Object > Multi-site.
- In the Information box, click Enable RGW Module.
-
On the primary site dashboard, create a default realm, zonegroup, and zone.
- From the Object > Multi-site, click Create Realm.
- In the Create Realm dialog, provide a realm name, and select Default.
- Click Create Realm.
- Click Create Zone Group from the action drop-down.
- In the Create Zone Group dialog, provide a zone group name, the Ceph Object Gateway endpoints, and select Default.
- Click Create Zonegroup.
- Click Create Zone from the action drop-down.
- In the Create Zone dialog, provide a Zone Name, select Default, provide the Ceph Object Gateway endpoints of the primary site. For the user, provide the access and secret key of the user with system privileges.
Note: While creating a zone, provide the access key and secret key of the dashboard default user,
dashboard.
-
After the zone is created, a warning is emitted to restart the Ceph Object Gateway Service.
- From the Administration > Services.
- Select the Ceph Object Gateway (
rgw) service row and expand to see the service details. - From the Daemons table, select the host and click Restart from the action drop-down.
-
When you go to Object > Gateways, you get an error that The Object Gateway Service is not configured. This bug is a BZ#2231072.
- As a workaround, set the Ceph Object Gateway credentials on the command-line interface.
ceph dashboard set-rgw-credentials RGW credentials configured - Go to Object > Gateways, to verify that you are able to access the Ceph Object Gateway on the dashboard.
- As a workaround, set the Ceph Object Gateway credentials on the command-line interface.
-
Create a replication user on the primary site. You can use the following two options:
- Create user using the CLI.
[ceph: root@host01 /]# radosgw-admin user create --uid="uid" --display-name="displayname" --system - Create user from the dashboard and modify the user from the CLI.
[ceph: root@host01 /]# radosgw-admin user modify --uid="uid" --system
- Create user using the CLI.
-
From, Object > Gateways, on the Users table, select the user row created in the previous step.
- Expand the user row.
- Copy the Access Key and Secret Key.
- From, Object > Multi-site, select the zone.
- Click the edit icon and paste the access key and secret key that was copied earlier.
- Click Edit Zone.
-
Click Export.
- From the Export Multi-site Realm Token dialog box, copy the token.
- Close the dialog box.
- On the secondary site, go to Object > Multi-site.
- Click Import to import token from the primary zone.
-
In the Import Multi-site Token dialog box, paste the token that was copied earlier, and provide a secondary zone name.
- Under Service details, select the placement and the port where the new Ceph Object Gateway service is going to be created.
- Click Import.
-
After the token is imported, you get a warning to restart the Ceph Object Gateway Service.
- Go to Administration > Services.
- Select the Ceph Object Gateway (
rgw) service row. - From the Daemons table, select the host. Verify that the Ceph Object Gateway is configured on the secondary site.
- Click Restart from the action drop-down.
-
You need to wait for sometime till the users are synced to the secondary site. Verify that the sync is complete with the following commands.
[ceph: root@host01 /]# radosgw-admin sync status [ceph: root@host01 /]# radosgw-admin user list -
When you go to Object > Gateways, you get an error that The Object Gateway Service is not configured. This bug is a BZ#2231072.
- As a workaround, set the Ceph Object Gateway credentials on the command-line interface.
ceph dashboard set-rgw-credentials RGW credentials configured - Go to Object > Gateways, to verify that you are able to access the Ceph Object Gateway on the dashboard.
- As a workaround, set the Ceph Object Gateway credentials on the command-line interface.
-
On the primary site, under an error displays on the Multi Site Sync Status panel of the Object > Overview page. This is because on the secondary zone, you can see that the endpoints are of the hostname and not the IP address. This bug is a known issue while configuring multi-site. See BZ#2242994.
- As a workaround, in the secondary site, go to Object > Multi-site and select the secondary zone.
- Edit the endpoints to reflect the IP address.
- Click Edit Zone.
- On the primary site and secondary site dashboard, you can see the status displays on the Multi Site Sync Status panel of the Object > Overview page.