Step 3: Deploy the CDR gateway
After the disaster recovery site pair is created, you must deploy a continuous data replication (CDR) gateway in your data center. The CDR gateway aggregates data from all protected servers, then compresses, encrypts, and securely uploads the data to Alibaba Cloud.
Prerequisites
-
A disaster recovery site pair is created. For more information, see Step 1: Set up a VPC.
-
The following port requirements are met:
-
The CDR gateway requires outbound access to the internet on ports 1883 and 443 to communicate with the cloud-based console and transfer data.
-
The CDR gateway provides services to protected servers on ports 9090 and 9095. Port 8080 is used to access the gateway through a web browser for activation.
-
The client program receives commands from the CDR gateway on port 9080.
Therefore, you must configure your firewall to allow protected servers to connect to the gateway's ports 9090 and 9095, and to allow the CDR gateway to access port 9080 on the protected servers.
-
Step 1: Create and download the gateway image
-
Log on to the Hybrid Cloud Disaster Recovery console.
-
Click the continuous data replication site pair that you created.
-
On the Primary Site Management tab, click +Add.
-
In the Create Production Site DR Gateway panel, enter a Name, select Apsara DR100, Apsara DR200, or vSphere for Deployment Environment, and then click Create.
-
Click Download DR Gateway Image.
Alternatively, you can click Download DR Gateway Image in the Actions column for the gateway that you created. The gateway is located in the on-premises site section on the Primary Site Management tab.
Step 2: Deploy the gateway image
You can deploy the CDR VMware image on VMware vSphere 5.5, 6.0, 6.5, 6.7, and 7.0.
-
We strongly recommend that you deploy the CDR gateway on a vSphere cluster that is configured with high availability (HA) to ensure its high availability.
-
Deploying the template using the vCenter C# client or the ESXi UI will cause the gateway to fail.
To deploy the CDR gateway on the VMware vSphere platform, follow these steps:
-
Log on to the vSphere Web Client as an administrator. Right-click the vSphere cluster and select Deploy OVF Template….
-
In the OVF deployment wizard, on the Select a template tab, click Browse and select the downloaded gateway image OVA file.
-
On the Select a name and folder tab, enter a Name and select a deployment location. You can typically select a location at the cluster or folder level.
For example, enter
Aliyun-BCDR-Server-1.0.0-testfor Name and select Datacenter from the directory tree on the Browse tab as the deployment location. -
On the Select a compute resource tab, select the target resource pool for the CDR gateway.
In the resource tree, expand the target cluster and select the resource pool to deploy the CDR gateway.
-
On the Review details tab, review the deployment details of the CDR gateway.
The template details include: Product: Alibaba Cloud Business Critical DR Gateway, Version: 1.0.1, Vendor: Alibaba Cloud, Download size: 2.4 GB, and Size on disk: 4.6 GB (thin provision) or 580 GB (thick provision).
-
On the Select storage tab, select a datastore for the gateway deployment.
Set Select virtual disk format to Thick Provision Lazy Zeroed, set VM Storage Policy to None, and then select the target datastore (for example, datastore2).
NoteWe recommend that you select a shared datastore with a RAID configuration to ensure the stability and high availability of the gateway.
-
On the Customize template tab, configure the network information for the gateway.
The form has three sections. In Network Properties, enter the IP address, subnet mask in CIDR format, and gateway address. In Administrator User, enter the administrator username (default:
hdradmin) and password. In DNS, enter the primary DNS server, hostname, and secondary DNS server.NoteThe gateway subnet mask must be in CIDR format. For example, for a subnet mask of 255.255.255.0, you must enter 24.
The administrator user settings are used for subsequent logons to the CDR VM to configure internal network settings.
-
Confirm the gateway deployment information and click Finish.
On the Ready to complete page, a summary of the deployment configuration is displayed. This includes the VM name, download size (2.4 GB), size on disk (580 GB), data center, compute resource, storage mapping, and network mapping. The IP allocation is set to IPv4 Static - Manual. The properties section includes fields such as IP Address, Mask (CIDR), Gateway Address, Administrator User, Primary DNS Server, Hostname, and Secondary DNS.
After the deployment is complete, the Aliyun-BCDR-Server-1.0.0 VM appears in the VM list in vSphere.
-
Optional: We recommend the following configuration to enhance VM high availability.
On a vSphere cluster configured with high availability (HA), if the ESXi host where the CDR gateway resides fails, the gateway automatically restarts on another ESXi host in the same cluster. The downtime depends on the HA configuration of the vSphere cluster. We recommend that you increase the VM restart priority for the gateway to minimize the startup time.
For vSphere 6.5 and later, follow these steps to enhance VM high availability:
-
On the Configure page of the cluster where the CDR gateway resides, click VM Overrides, and then click Add.
-
On the Add VM Overrides page, select the VM.
In the VM list, select the checkbox for the target VM. You can use the Filter function to quickly locate it. After you make your selection, click NEXT.
-
On the Filter page for selecting a VM, select the checkbox for the Aliyun-BCDR-Server-1.0.0 VM. Confirm your selection of the Aliyun-BCDR-Server-1.0.0 VM and click OK.
-
From the VM restart priority drop-down list, select Highest. Keep the default settings for other options and click OK.
For versions earlier than vSphere 6.5, you can configure the settings in vSphere. For more information, see the vSphere documentation.
After you complete these steps, if the CDR gateway VM fails, vSphere restarts the gateway on another ESXi host as soon as possible, allowing data replication to continue.
-
Step 3: Configure the gateway network and time
For gateways deployed on the VMware platform by using an OVA template, the network is configured during the deployment process. If you do not need to modify the network configuration, proceed to Step 4: Activate the gateway.
After the gateway VM is deployed, you can configure its basic network settings. The CDR gateway network must be able to connect to the protected servers and also connect to Alibaba Cloud over the internet or a dedicated line.
For deployments in a virtualized environment, you can access the VM interface directly from the virtualization platform console.
To configure the gateway network and time, follow these steps:
-
Log on to the virtualization platform console with the default username
rootand passwordAliyun!23. -
On the configuration page, click the NetWork option. Configure the IP address, subnet mask, gateway, and DNS server based on your network environment.
NoteThe subnet mask must be in CIDR format. For example, for a subnet mask of 255.255.255.0, enter 24.
-
Click Date/Time and set the NTP Server to the Alibaba Cloud NTP server: ntp.aliyun.com.
Step 4: Activate the gateway
Activating the gateway establishes a formal connection with Alibaba Cloud and prepares the gateway to receive replication data streams.
After you configure the network and time for the gateway, follow these steps to activate it:
-
On the Primary Site Management tab, click Generate Activation Code in the Actions column.
NoteThe activation code is valid for 15 minutes.
-
Log on to the registration page of the Continuous Replication Disaster Recovery Gateway. The URL is in the following format:
http://Gateway IP:8080. Configure the following parameters and click Confirm.The following table describes the parameters.
-
AccessKey and AccessKey Secret: If you use the AccessKey of a RAM user, ensure that the RAM user has the
AliyunHDRFullAccess,AliyunVPCReadOnlyAccess, andAliyunECSReadOnlyAccesspermissions. -
Activation Code: Enter the activation code you obtained.
-
Password: This password establishes a secure connection between the protected servers and the gateway. You can specify a password that meets your requirements.
After you activate the CDR gateway, you must install the Alibaba Cloud Replication Service (AReS) on your mission-critical servers to replicate them to Alibaba Cloud.
-
Related operations
In addition to downloading the gateway image, you can also set speed limits, reset the password, delete the gateway, and collect support information.
|
Feature |
Description |
Actions |
|
Set Speed Limit |
Set a speed limit for the gateway. |
To cancel the speed limit, click the delete icon. |
|
Reset Password |
Resets the password of the DR gateway. |
On the Primary Site Management tab, select from the Actions column. |
|
Delete Gateway |
Deletes the gateway. |
On the Primary Site Management tab, select from the Actions column. |
|
Collect Support Information |
The support information for the DR gateway includes only the logs generated by the disaster recovery service during DR operations. This information is for troubleshooting. After collecting the support information, submit a ticket that describes the issue. In the ticket, specify the ID of the DR gateway. |
On the Primary Site Management tab, select from the Actions column. |