You can perform this operation to take over an OceanBase cluster created in a command-line tool or another OceanBase Cloud Platform (OCP) cluster and maintain and manage the OceanBase cluster in the current OCP cluster.
Prerequisites
The logon user who takes over the OceanBase cluster has the Cluster Manager role, or the permission to create a cluster.
All OBServer nodes in the OceanBase cluster to be taken over are running normally.
Always take over the primary OceanBase cluster first:
In a single-OCP scenario, the primary OceanBase cluster is taken over before the standby OceanBase cluster.
In a multi-OCP scenario, the primary OceanBase cluster is taken over in any OCP before the standby OceanBase cluster is taken over in any OCP.
Notice
After an OceanBase cluster is taken over, it cannot be maintained and monitored in the original OCP cluster. We recommend that you evaluate the risk before taking any action.
Procedure
In the left-side navigation pane, click Clusters.
On the page that appears, click Take over Cluster in the upper-right corner.
Connect to the cluster. The following two connection modes are supported:
Direct Connect: Specify Access URL, Port, and root@sys Password of the cluster, and enter the password of the proxyro user as needed. Then, click Next.
Note
The password of the proxyro account is used for OBProxy to access an OceanBase Database cluster. You can enter it here to ensure the consistency of the proxyro account password. For more information about the proxyro account, see Manage the proxyro account.
OBProxy: Specify Access URL, Port, Cluster Name, Cluster ID (Optional), and root@sys Password of the cluster, and enter the password of the proxyro user as needed. OBProxy uses the password of the proxyro user to access the OceanBase cluster. If you do not enter the password, the default password of the proxyro user is used. Then, click Next.
Note
- When you are taking over a standby cluster, you must specify the cluster ID. If you need to take over both the primary and standby clusters, take over the primary cluster first.
- The password of the proxyro account is used for OBProxy to access an OceanBase Database cluster. You can enter it here to ensure the consistency of the proxyro account password. For more information about the proxyro account, see Manage the proxyro account.
After the cluster is connected, perform pre-takeover check.
When the check succeeds, select the host, type, and credentials, and click Submit in the lower part of the page.
If the check fails, move the pointer over the icon next to Failed, modify the OBServer configuration as prompted, and then click Recheck.