After BCManager eReplication is used to create protected groups for different protected objects and configure backup scheduling policies and copy retention policies as required, it automatically collaborates with functions storage remote replication, and snapshot to create and retain backup copies.
After the eReplication Agent is re-installed on the host after being uninstalled, you need to recreate protected groups on the host.
Protection and then click Create at the upper right corner for the page.

Resources. Select a node under the management server. In the site node, click Storage, in the line where the storage device resides, click Refresh to refresh the storage device information under the site. Then, recreate the protected group.In the CDM solution, snapshot backup scheduling, replication, and consistency policies can be configured for local and remote storage. The local backup policy supports backup at the minimum interval of 30 seconds (Dorado V3) and HyperCDP supports backup at the minimum interval of 10 seconds (Dorado V3) or 3 seconds (Dorado V6). If the snapshot must meet the requirements of the application consistency policy, backup interval must be greater than or equal to 15 minutes.
The restrictions on OceanStor Dorado V6 are as follows:

Time Policy |
Description |
|---|---|
On-demand scheduling |
Manually starts protection tasks. |
Period-based scheduling |
Automatically starts protection tasks based on a given period. Tasks can be executed at multiple time points of a second, a minute, an hour, a day, a week, or a month. NOTE:
|

Expected RPO can be set to 0-31 days, 0-23 hours, and 5-59 minutes.
If days and hours are not set, the Expected RPO is 15 minutes by default.
Replication Policy |
Description |
|---|---|
Default configuration |
The remote replication rate is the default one set on the storage array. |
Manual configuration |
|
Tips for enabling the consistency policy:
Protected Object |
Parameter |
Description |
|---|---|---|
Oracle |
Enable hot backup mode and Configure Min. Archive Space Threshold If you select Enable hot backup mode, when protected groups are executed based on specified policies, the database remains online. Before storage array-based replication or taking snapshots, the system will set the database to the hot backup mode to ensure data consistency. After the hot backup mode is enabled, database services may stop because the archive log space is used up during DR execution. Therefore, you are advised to select Configure Min. Archive Space and configure it after enabling the hot backup mode. After the archive log space threshold is specified, DR execution will fail if the archive log space is lower than the specified threshold. |
To enable the hot backup mode, the archive log mode must be enabled for the database. Otherwise, protected groups cannot be executed after the hot backup mode is enabled. If you do not select Enable hot backup mode, when protected groups are executed based on specified policies, the database remains online but the hot backup mode is not enabled. In this case, data consistency totally relies on storage devices' ability to ensure consistency. |
DB2 |
Quiesce database Consistency between databases is ensured by hanging write I/Os. After write I/Os are hung, the storage device starts replication or generates snapshots. Afterwards, the eReplication Agent renews write I/Os. |
Quiescing databases to ensure data consistency may fail if the application I/O load is heavy. For this reason, you are advised to perform this operation in off-peak hours or do not enable consistency protection. |
SQL Server |
Quiesce database VSS is a framework provided by Microsoft for backing up and recovering applications. For SQL Server, the OceanStor BCManager Agent uses VSS to freeze or unfreeze application I/Os. After I/Os are frozen, the storage device starts replication or generating snapshots. Afterwards, the OceanStor BCManager Agent unfreezes write I/Os. |
|
LUN |
Enable consistency protection If Enable consistency protection is selected, the system runs the application freezing script on a specific host (or host group) to ensure replica data consistency when a protection task is being executed. After replicas are generated or applications are not unfrozen within the allowed freezing timeout duration, the system automatically runs the unfreezing script to ensure normal service operation.
|
For details about script names and descriptions, see Table 5. Users can define scripts using the script template and save self-defined scripts to %OceanStor BCManager Agent install path%\bin\thirdparty\(on Windows) or /home/rdadmin/Agent/sbin/thirdparty/(on No-Windows). Table 6 describes the script template. NOTICE:
The scripts are not delivered with the eReplication. The script provider needs to ensure the correctness of the script. Before configuring a script, check whether the script is verified by tests. For details, see Verifying the LUN Protected Group Consistency Script (Oracle). |
VMware |
Generate quiesced snapshot vCenter is used to generate quiesced VM snapshots for VM consistency protection. After quiesced snapshots are generated, the system enables the client in the startup state to be in the quiesced state during DR protection, that is, the VM pauses temporarily and the data in the memory of the VM will be updated to a disk. After the replication starts, the vCenter Server is notified to delete these quiesced snapshots. |
To generate a quiesced snapshot, you need to install VMware Tools or Open VM Tools on the VM. NOTICE:
If the silent snapshot fails to be created, the backup operation can be performed without affecting the backup of other VMs. |
Parameter |
Used To |
|---|---|
Freezing script |
Freeze application I/Os and flush dirty data of applications. |
Unfreezing script |
Unfreeze application I/Os. |
Script for querying freezing status |
Query whether applications are frozen. |
Freezing timeout duration |
Specify the timeout duration of freezing. The default value is 60 seconds. |
Operating System |
Script |
Description |
Save Path |
|---|---|---|---|
Windows |
sample_freeze.bat |
Template of the Oracle freezing script |
%OceanStor BCManager Agent install path%\bin\thirdparty\ |
sample_unfreeze.bat |
Template of the Oracle unfreezing script |
||
sample_queryfreezestate.bat |
Template of the Oracle script for querying the freezing status |
||
No-Windows |
sample_freeze.sh |
Template of the Oracle freezing script |
/home/rdadmin/Agent/sbin/thirdparty/ |
sample_unfreeze.sh |
Template of the Oracle unfreezing script |
||
sample_queryfreezestate.sh |
Template of the Oracle script for querying the freezing status |
The CDM solution uses BCManager eReplication to coordinate replication and snapshot modules to ensure data consistency at the remote backup.
Time Policy |
Description |
|---|---|
On-demand scheduling |
Manually starts protection tasks. |
Period-based scheduling |
Automatically starts protection tasks based on a given period. Tasks can be executed at multiple time points of a second, a minute, an hour, a day, a week, or a month.
NOTE:
|

Expected RPO can be set to 0-31 days, 0-23 hours, and 5-59 minutes.
If days and hours are not set, the Expected RPO is 5 minutes by default.

Retention Policy |
Description |
|---|---|
Latest duplicate |
The number of duplicates cannot exceed the maximum number of snapshots that can be taken for a storage resource such as a LUN or file system. |
Duplicate retention |
The duplicate retention policy defines the retention policy of duplicates generated during the protected group protection. When the system starts duplicate maintenance, expired and invalid duplicates will be deleted based on the duplicate retention policy. By default, the time to maintain duplicates is the 39th minute of every hour. NOTE:
After a user resets Latest duplicate, the duplicate maintenance will be triggered immediately. You can set the minimum number of duplicates to be retained. The system will not delete valid duplicates until the number of invalid duplicates exceeds the minimum number of duplicates you set.
When determining the number of retained duplicates, consider the following:
NOTE:
For example, if the current time is 2017/4/11 08:40:00, configure the protected group as following:
If the protected group is under the automatically scheduled protection for a long time, the duplicates retained are as follows after the duplicate maintenance is complete at the current time:
NOTICE:
|
Time Policy |
Description |
|---|---|
On-demand scheduling |
Manually starts protection tasks. |
Period-based scheduling |
Automatically starts protection tasks based on a given period. Tasks can be executed at multiple time points of a minute, an hour, a day, a week, or a month.and at a fixed frequency for a certain period of time at a minute, an hour, a day, a week, or a month. NOTE:
|

Expected RPO can be set to 0-31 days, 0-23 hours, and 5-59 minutes.
If days and hours are not set, Expected RPO is 15 minutes by default.

Retention Policy |
Description |
|---|---|
Latest duplicate |
The number of duplicates cannot exceed the maximum number of snapshots that can be taken for a storage resource such as a LUN or file system. |
Duplicate retention |
The duplicate retention policy defines the retention policy of duplicates generated during the protected group protection. When the system starts duplicate maintenance, expired and invalid duplicates will be deleted based on the duplicate retention policy. By default, the time to maintain duplicates is the 39th minute of every hour. NOTE:
After a user resets Latest duplicate, the duplicate maintenance will be triggered immediately. You can set the minimum number of duplicates to be retained. The system will not delete valid duplicates until the number of invalid duplicates exceeds the minimum number of duplicates you set.
When determining the number of retained duplicates, consider the following:
NOTE:
For example, if the current time is 2017/4/11 08:40:00, configure the protected group as following:
If the protected group is under the automatically scheduled protection for a long time, the duplicates retained are as follows after the duplicate maintenance is complete at the current time:
NOTICE:
|
Tips for enabling the consistency policy:
Protected Object |
Parameter |
Description |
|---|---|---|
Oracle |
Enable hot backup mode and Configure Min. Archive Space Threshold If you select Enable hot backup mode, when protected groups are executed based on specified policies, the database remains online. Before storage array-based replication or taking snapshots, the system will set the database to the hot backup mode to ensure data consistency. After the hot backup mode is enabled, database services may stop because the archive log space is used up during DR execution. Therefore, you are advised to select Configure Min. Archive Space and configure it after enabling the hot backup mode. After the archive log space threshold is specified, DR execution will fail if the archive log space is lower than the specified threshold. |
To enable the hot backup mode, the archive log mode must be enabled for the database. Otherwise, protected groups cannot be executed after the hot backup mode is enabled. If you do not select Enable hot backup mode, when protected groups are executed based on specified policies, the database remains online but the hot backup mode is not enabled. In this case, data consistency totally relies on storage devices' ability to ensure consistency. |
DB2 |
Quiesce database Consistency between databases is ensured by hanging write I/Os. After write I/Os are hung, the storage device starts replication or generates snapshots. Afterwards, the eReplication Agent renews write I/Os. |
Quiescing databases to ensure data consistency may fail if the application I/O load is heavy. For this reason, you are advised to perform this operation in off-peak hours or do not enable consistency protection. |
SQL Server |
Quiesce database VSS is a framework provided by Microsoft for backing up and recovering applications. For SQL Server, the OceanStor BCManager Agent uses VSS to freeze or unfreeze application I/Os. After I/Os are frozen, the storage device starts replication or generating snapshots. Afterwards, the OceanStor BCManager Agent unfreezes write I/Os. |
|
SAP HANA |
Quiesce database |
In the asynchronous replication scenario, when the user does not set up a remote replication relationship between the storage LUNs where log files reside, the system will forcibly select Quiesce database. |
LUN |
Enable consistency protection If Enable consistency protection is selected, the system runs the application freezing script on a specific host (or host group) to ensure replica data consistency when a protection task is being executed. After replicas are generated or applications are not unfrozen within the allowed freezing timeout duration, the system automatically runs the unfreezing script to ensure normal service operation.
|
For details about script names and descriptions, see Table 12. Users can define scripts using the script template and save self-defined scripts to %OceanStor BCManager Agent install path%\bin\thirdparty\(on Windows) or /home/rdadmin/Agent/sbin/thirdparty/(on No-Windows). Table 13 describes the script template. NOTE The scripts are not delivered with the eReplication. The script provider needs to ensure the correctness of the script. Before configuring a script, check whether the script is verified by tests. For details, see Verifying the LUN Protected Group Consistency Script (Oracle). NOTICE:
The scripts are not delivered with the eReplication. The script provider needs to ensure the correctness of the script. Before configuring a script, check whether the script is verified by tests. For details, see Verifying the LUN Protected Group Consistency Script (Oracle). |
VMware |
Generate quiesced snapshot vCenter is used to generate quiesced VM snapshots for VM consistency protection. After quiesced snapshots are generated, the system enables the client in the startup state to be in the quiesced state during DR protection, that is, the VM pauses temporarily and the data in the memory of the VM will be updated to a disk. After the replication starts, the vCenter Server is notified to delete these quiesced snapshots. |
To generate a quiesced snapshot, you need to install VMware Tools or Open VM Tools on the VM. NOTICE:
If the silent snapshot fails to be created, the backup operation can be performed without affecting the backup of other VMs. |
Parameter |
Used To |
|---|---|
Freezing script |
Freeze application I/Os and flush dirty data of applications. |
Unfreezing script |
Unfreeze application I/Os. |
Script for querying freezing status |
Query whether applications are frozen. |
Freezing timeout duration |
Specify the timeout duration of freezing. The default value is 60 seconds. |
Operating System |
Script |
Description |
Save Path |
|---|---|---|---|
Windows |
sample_freeze.bat |
Template of the Oracle freezing script |
%OceanStor BCManager Agent install path%\bin\thirdparty\ |
sample_unfreeze.bat |
Template of the Oracle unfreezing script |
||
sample_queryfreezestate.bat |
Template of the Oracle script for querying the freezing status |
||
No-Windows |
sample_freeze.sh |
Template of the Oracle freezing script |
/home/rdadmin/Agent/sbin/thirdparty/ |
sample_unfreeze.sh |
Template of the Oracle unfreezing script |
||
sample_queryfreezestate.sh |
Template of the Oracle script for querying the freezing status |
The administrator sets a specified time for mounting in advance. eReplication records the event and uses the snapshot copy at the production or DR site to create a level-2 copy at the specified time, automatically mount the copy to the specified application host so that data can be analyzed and tested in unattended mode.

The system automatically creates a level-2 copy based on the snapshot copy generated at the production or DR site within the specified period and automatically mounts the copy to the host or hosts in the host group. By default, the system mounts copies generated at all time points to the same host, host group, or cluster.
Parameter |
Description |
Remarks |
|---|---|---|
Unmount Mounted Copies Before Mounting |
Before mounting copies for multiple times, unmount the mounted copies. Otherwise, the copies may fail to be mounted. If this parameter is selected, the system automatically unmounts current copies. |
This parameter can be configured for supported protected objects. |
Delete the copies automatically after the unmounting |
If this parameter is selected, the system automatically deletes the unmounted copy. |
This parameter can be configured for supported protected objects. |
Start the database after the mounting |
|
This parameter can be configured when the protected object is Oracle, DB2, or SQL Server. |
For customized scripts are not provided by eReplication, you must ensure the script correctness. Before configuring the script, ensure that the script has been tested and verified.
Perform the following steps to log in to the host to obtain the script template, customize a script, and save the script in the specified path:
In the preceding commands, xxx indicates the customized script name.
If you do not set the owner and execute permission of the customized script, the script may be modified by hackers, posing security risks.
Resources. And refresh resources or storage devices where the protected objects reside. Then go to the protected group page and refresh protected objects of the protected group by clicking More > Refresh. After the command for refreshing information is sent, you can view details about the command execution in Background Task.
If a recovery plan has been created for a protected group, you can refresh protected objects only when the recovery plan status is Ready, Clear completed, Rollback completed, or Reprotection completed.