Creating a DR Task
This section describes how to create a disaster recovery (DR) task.
Precautions
- Before setting up cross-cloud DR, you need to delegate the DR operation permissions to a system user and connect the two instances properly.
- No action is required if the two instances are in the same VPC.
- If the two instances are deployed in different VPCs, create a VPC peering connection on the Virtual Private Cloud > VPC Peering Connections page of the VPC Endpoint console and configure routes between subnets.
- In cross-cloud scenarios, create a Direct Connect connection.
- Ensure that the security group allows IPv4 inbound traffic from port 12016.
- Before establishing the DR relationship, log in to the console and select the cloud where the primary or DR instance is deployed separately, go to the Basic Information page of the instance from the Instances page and click Reset Configuration for the DR IP Address field in the Configuration area. Additionally, configure the CIDR block of the peer instance for both instances. (You can obtain the CIDR block information of an instance from the Subnet field of the Network Information area on its Basic Information page.)
- A DR relationship cannot be established between instances with different CPU architectures.
- The replica consistency protocol and DB engine kernel version of the primary instance must match those of the DR instance.
- The following table lists the supported DR modes.
Table 1 Dual-instance streaming DR Deployment Type
Primary Instance
DR Instance
Centralized
1 primary + 2 standby
1 primary + 2 standby or Single
1 primary + 1 standby + 1 log (Paxos)
1 primary + 1 standby + 1 log (Paxos) or Single (Paxos)
Procedure
- Log in to the management console.
- Click in the upper left corner and select a region and project.
- Click in the upper left corner of the page and choose .
- In the navigation pane on the left, choose Disaster Recovery. On the displayed page, click Create DR Task.
- Configure required parameters described in Table 2 and select the confirmation information.
Table 2 Parameter description Parameter
Description
DR Type
Type of the disaster recovery.
Streaming DR is supported.
Primary Instance
Primary instance in the DR relationship.
NOTICE:- Only available instances that run V2.0-2.0 or later versions and have more than two replicas are displayed.
- When Replica Consistency Protocol is set to Paxos, only 1 primary + 1 standby + 1 log instances can create DR relationships.
DR Instance IP Address
To obtain the IP address of the DR instance, log in to the cloud where the DR instance is deployed, go to the Basic Information page of the instance from the Instances page and view the value of DR IP Address in the DB Information area.
NOTICE:Before establishing the DR relationship, log in to the console and select the cloud where the primary or DR instance is deployed separately, go to the Basic Information page of the instance from the Instances page and click Reset Configuration for the DR IP Address field in the Configuration area. Additionally, configure the CIDR block of the peer instance for both instances. (You can obtain the CIDR block information of an instance from the Subnet field of the Network Information area on its Basic Information page.)
- DBS will be automatically authorized to access VPC resource information and query IaaS APIs.
- DR-related configurations of the current instance will be reset.
DR Instance Administrator
Administrator of the DR instance, which is used to authenticate the primary and DR instances during DR. The default account name is user root of the DR instance.
DR Instance Administrator Password
Administrator password of the DR instance.
- Before establishing a cross-region DR relationship, contact Huawei Cloud customer service to enable network connectivity between the primary instance and DR instance.
- After a DR task is created, all databases on the selected DR instance will be cleared. The backup policy will be disabled for the selected DR instance, but historical backup data will be retained. If you want to retain data of the selected DR instance, create a manual backup before the DR task is created.
- DBS will be automatically authorized to access VPC resource information and query IaaS APIs.
- DR-related configurations of the current instance will be reset.
- Click OK to create a DR task. You can view the task status on the Disaster Recovery page.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot