Self-defining Execution Steps in a Protected Group

The execution steps of the protected group is frozen and unfrozen database to synchronized data in eReplication, to execute protected group normally, you can customize the execution prepared steps before frozen or unfrozen. For example, checking the database status.

Prerequisites

Context

When the protected group is LUN, you can modify the execution step in a protected group.

Procedure

  1. On the menu bar, choose Protection.
  2. In the function pane, select the recovery plan to be modified and click Procedure.
  3. Click Edit.

    The Edit dialog box is displayed.

  4. Select the modified step.
  5. Select script name.

    A self-defined script is not provided by eReplication, so the script provider must ensure the script correctness. Before configuring the script, ensure that the script has been verified by tests.

    1. Log in to the host where protected objects reside to obtain a script template and customize the execution script based on the template.
      • In Windows, the script path is %OceanStor BCManager Agent install path%\bin\thirdparty\sample and the script sample name is sample.bat.
      • In Linux/UNIX, the script path is /home/rdadmin/Agent/sbin/thirdparty/sample and the script sample name is sample.sh.
    2. Log in to the DR management server at the DR site or to the service host, place the self-defined execution script in a specified path.
      • In Windows: the path is %OceanStor BCManager Agent install path%\bin\thirdparty\.
      • In Linux/UNIX: the path is /home/rdadmin/Agent/sbin/thirdparty/
    3. Set the owner and execute permission of the self-defined execution script.
      • In Windows, settings are not required.
      • Run the chown root xxx.sh command to set the owner of the script to root. Run the chmod 500 xxx.sh command to set the execute permission on the script to 500.

        In the preceding command, xxx indicates the user-defined 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.

  6. Select host(Group) and input script name.
  7. In the right group box, select or deselect Enable the step to enable or disable a step and click Apply.
  8. Click Close.

Exception Handling

After protected group execution steps are modified, the modification takes effect when the protected group is executed the next time. You are advised to implement execute protected group immediately after the protected group execution steps are modified to ensure correct configurations.


Copyright © Huawei Technologies Co., Ltd.