If services in the production center are interrupted due to anticipated risks (such as outage and routine maintenance), a specific recovery plan can be executed to implement planned migration. The entire migration process is automatic without manual intervention. The DR site automatically takes over services. After the migration, services can be protected by implementing reprotection on the recovery plan, thereby implementing reverse protection for services taken over by the DR center.
Prerequisites
- The production and DR centers communicate properly. The management system and the DR environment in the DR center are working properly.
- Recovery plans for services to be migrated have been created on eReplication, which have succeeded in at least one test.
If no DR test is performed before the planned migration, the migration has a higher rate to fail. A migration failure will interrupt DR services. For this reason, at least one recovery plan test must be executed successfully before the planned migration.
- If the information about storage devices, hosts, or VMs is modified at the production or DR site, manually refresh the information. For details, see Refreshing Resource Information.
- The datastore name cannot contain Chinese characters.
Context
- You are advised to configure application-based protection policies for Oracle, SQL Server, DB2, VMware vSphere VMs, FusionCompute VMs, and NAS file systems, streamlining the Planned Migration to only a few clicks.
- In the Oracle application, the database is disabled but the cluster is enabled by default on the eReplication Agent. If you need to disable clusters, modify the configuration of disabling clusters. For details, see Changing the Configuration of Stopping the Oracle Cluster.
- You are advised to configure LUN-based protection policies for other applications to enable automatic Planned Migration configuration on the storage system. You need to manually or use self-defined scripts to start and test applications.
Procedure
- Configure Broker before the migration. For details, see Configuring the Oracle ADG Planned Migration Broker.
- Perform the planned migration to migrate services from the production center to the DR center.
- On the menu bar, select Utilization > Data Restore.
- Select the recovery plan and click More > Planned Migration on the Operation list.
- Perform the planned migration based on different protected object types.
- If the type of protected objects is Oracle:
- Select DR Site.
- Select Host (Group) > Available DR Hosts or Host Groups (This operation is optional when the protected object type is LUN).
- Click Planned Migration.
- In the Warning dialog box that is displayed, read the content of the dialog box carefully and select I have read and understood the consequences associated with performing this operation.
- Click OK.
- After the migration is complete, verify that applications are started and data is consistent in the DR center.
After the planned migration is complete, check whether the applications and data are normal. If an application or data encounters an exception, contact Huawei technical support.
- Note the following when checking the startup status of applications.
- If the protection policies are based on applications, check whether the applications are started successfully and data can be read and written correctly.
- If the protection policies are based on LUNs, log in to the application host in the DR center, scan for disks, and start applications. Then check whether the applications are started successfully and data can be read and written correctly.
You can use self-developed scripts to scan for disks, start applications, and test applications.
- You can check data consistency by viewing the last entry of data written to the production and DR centers. If the last entry of data written to the production and DR centers is the same, the data consistency is ensured.
- Delete data after migration.
If storage array-based remote replication DR is used, snapshots are created automatically on the storage array at the DR site to back up DR data during the planned migration. If snapshots are not automatically deleted after the planned migration is complete, manually delete them to release storage space.
A snapshot name is a string of 31 characters named in the following format: DRdata_LUNID_YYYYMMDDHHMMSS_BAK, where YYYYMMDDHHMMSS is the backup time and LUNID may be the snapshot ID (a number ranging from 1 to 65535). This naming format enables you to quickly find the snapshots that you want to delete from the storage array at the DR site.
- Check the environment before starting reprotection.
- Perform reprotection to protect services switched to the DR center.
After the planned migration is complete, the application system is working in the DR center and protected groups become Invalid. You must perform reprotection to recover the replication status and synchronize the data from the DR center to the production center. Then, the original DR center becomes the new production center.
To ensure that the protection and restoration configurations before reprotection do not affect the running of the protected group and recovery plan after reprotection, the system automatically clears the protection and restoration configurations after reprotection. After performing reprotection, reconfigure the protection and recovery policies to ensure that DR services are running properly.
- On the menu bar, select Utilization > Data Restore.
- Select the recovery plan and click More > Reprotection on the Operation list.
If the protected objects are VMware VMs and services are recovered through a planned migration, perform the following steps to clear redundant and incorrect data in the virtualization environment before and after the reprotection.
- If reprotection was performed, use vSphere Client to log in to vCenter at site B. Click Storage list, and click Rescan All of storage devices one by one, to ensure that no datastore exists on ESXi hosts. Otherwise, skip this step.
- On eReplication, perform reprotection.
- Log in to the in the vCenter server at site A using vSphere Client. In the Storage list, right-click storage devices and select Rescan All from the drop-down list one by one, to ensure that no residuals exist on ESXi hosts in the cluster where the migrated VMs reside.
- Return to eReplication, and update vCenter servers and storage resources of site A to obtain the latest VM environment information.
- Carefully read the content of the Confirm dialog box that is displayed and click OK to confirm the information.
If Save user configuration data is selected, self-defined protection policies and recovery settings, such as self-defined recovery steps, will be retained. Ensure that the configuration data has no adverse impact on service running after reprotection.
Result
After the reprotection is complete, the protected groups become normal.
Copyright © Huawei Technologies Co., Ltd.