Document navigation

Recovery Tests

Run a recovery plan in an isolated environment at the recovery site to validate VM recovery orchestration.

A recovery test runs a recovery plan in a test environment at the recovery site for the plan's protection direction. It follows the VM recovery order and power-on settings in the plan. You can use each VM's latest recoverable replication data or select retained recovery points by protection group to validate recovery from historical data.

The system automatically creates test VMs, temporary test networks, and temporary writable layers. Test VMs run in isolated networks, and writes made during the test are stored in the temporary writable layers. Production VMs at the protected site and existing data replication continue to run.

When the recovery test ends, its execution result is recorded as success, partial success, or failure. Any test environment created is retained for validation. Each recovery test requires cleanup to remove test VMs and temporary resources. After cleanup succeeds, the recovery plan returns to the Ready state. Test execution and cleanup results are recorded separately. If cleanup is incomplete, address the failed items and continue cleanup.

Start a Recovery Test

Select a recovery plan and data source, complete the test precheck, and submit the recovery test.

Before you begin

  • A recovery plan has been created and is in the Ready state. To create a plan, see Create a Recovery Plan.
  • You have reviewed the plan's protection scope and VM recovery configuration. To change VM recovery order, power-on behavior, or IP addresses, see Configure Virtual Machine Recovery Order and IP Addresses.
  • Your account has permission to view recovery plans, run prechecks, and execute recovery tests.
  • Existing test environments have been cleaned up, and no recovery test, cleanup, recovery, failback, or other business operation is running for the site pair.

Procedure

  1. In ZLR, choose Recovery > Recovery Tests and click Start Test.

    Alternatively, choose Recovery > Recovery Plans, click the target plan's name, and click Start Recovery Test on its details page. This entry uses the current plan and opens the Data Source page directly.

  2. On the Recovery Plan page, select a plan whose Can Be Tested value is Yes and click Next.
  3. On the Data Source page, select the data for this recovery test and click Next.
    OptionDescription
    Use Latest DataThe default option. Uses each VM's latest recoverable replication data. Recovery point retention does not need to be enabled.
    Select Recovery PointsSelect retained recovery points by protection group. This option is available when recovery point retention is enabled for all protection groups in the plan and each group has an available recovery point.

    When you choose Select Recovery Points, the system selects the latest available recovery point for each group by default. To change the selections, do the following.

    1. In the target protection group's Operation column, click Select Recovery Point.
    2. On the Available tab, review the Recovery Point Time, Consistency, and Status. Select the required recovery point and click Confirm.
    3. Back on the Data Source page, review each protection group's Selected Recovery Point Time, Consistency, and Status.
  4. On the Test Precheck page, wait for the automatic checks to complete and review the results. When the precheck requirements are met, click Next.
    • Review the Critical, Warning, and Passed counts. Expand check items with issues to view the Reason, Recommended Action, and Impact.
    • Resolve critical issues and run the checks again. Assess how warnings affect the recovery test. If you need to modify the plan or related resources, close the wizard, address the issues, and reopen it to run the checks again.
  5. On the Review Configuration page, check the protected site, recovery site, recovery plan, protection group count, VM count, and data source. If using recovery points, also review each protection group's selected recovery point.
  6. Select the confirmation checkbox, then click Confirm.

Results

After submission succeeds, the recovery test starts. On the plan details page, open Execution Steps > Recovery Test to view progress.

View Recovery Test Progress and Results

View recovery test records, track execution progress, and investigate step and VM failures.

Your account must have permission to view recovery tests and recovery plans.

View Recovery Test Records

In ZLR, choose Recovery > Recovery Tests to view recovery test records. Click Refresh to update the list.

ContentDescription
Start Time and End TimeCheck the test's execution start and end times to locate the record.
Test StatusView the current stage: Testing, Test Completed, Cleaning Up, Cleanup Incomplete, or Completed. After the test completes, the environment awaits cleanup. Completed indicates that the test environment has been cleaned up.
ResultCheck the test's execution result, such as success, partial success, or failure.

View Execution Steps and Failure Reasons

  1. In Recovery Tests, find a record in the Testing state. In its Actions column, click View Execution Steps to open Execution Steps > Recovery Test for the plan.

    Alternatively, choose Recovery > Recovery Plans, click the target plan's name, and open Execution Steps > Recovery Test.

  2. Use Recovery Test Progress to view overall progress. Then review each step's Status, Progress, Start Time, End Time, and Duration in the step list.

    For steps that include VM execution details, progress shows the number of finished VM execution attempts and the total number of attempts.

  3. Click the expand button before a step to view VM details. Use Source VM ID and Status to identify individual VMs.
  4. Locate the failure reason:

    • For a failed step, click View Reason in the step's Actions column.
    • For a failed VM, expand its step and click View Reason in the VM's Actions column.

    In the Failure Details dialog, review the failure reason for the step or VM.

After the test ends and before cleanup, this page retains the test's execution records and results.

Review Past Recovery Test Results

  1. On the Recovery Plans page, click the target plan's name and open the Execution History tab.
  2. Locate the recovery test by Start Time. Verify that the record's Operation is Recovery Test, then click the corresponding Start Time.
  3. In the Execution Record Details dialog, review the Result, Operator, and Duration. Under VM outcomes in this execution, review each VM's execution status and failure information. Also review failure information in the step records below.

Clean Up a Recovery Test Environment

Clean up test VMs and temporary resources after a recovery test ends, and address incomplete cleanup.

Normal Cleanup

Normal cleanup is available after test execution ends and Test Status is Test Completed. Your account must have permission to view recovery tests and perform cleanup.

  1. In ZLR, choose Recovery > Recovery Tests. Locate the test record by Start Time and click Cleanup in its Actions column.

    Caution:
    • Cleanup powers off the test VMs for this recovery test and deletes temporary test port groups, writable layers, and registration objects, ending the test environment.
    • Data written during the test and stored in temporary writable layers is also deleted and cannot be recovered. Save any validation data or results you need to retain before proceeding.
  2. In the Cleanup dialog, verify the recovery plan ID and recovery test task ID, and wait for the cleanup requirements check to pass.
  3. Select the cleanup confirmation checkbox and click Confirm.

After submission succeeds, the test status changes to Cleaning Up. After cleanup succeeds, the record changes to Completed, and the recovery plan returns to the Ready state. If cleanup is incomplete, the record shows Cleanup Incomplete.

Run Cleanup Again

When the test status is Cleanup Incomplete, you can run normal cleanup again if your account has permission to view recovery tests and perform cleanup. First, review the cleanup result in operation feedback and address the issues that caused cleanup to fail.

  1. In Recovery Tests, find the corresponding Cleanup Incomplete record and click Cleanup in its Actions column.

    Caution:
    • Running cleanup again continues to power off remaining test VMs and delete remaining temporary test resources.
    • Data written during the test and stored in temporary writable layers cannot be recovered once deleted by cleanup.
  2. In the Cleanup dialog, verify the recovery plan ID and recovery test task ID, and wait for the cleanup requirements check to pass.
  3. Select the cleanup confirmation checkbox and click Confirm.

When all cleanup is complete, the record changes to Completed, and the recovery plan returns to the Ready state. If cleanup remains incomplete, the status stays Cleanup Incomplete. Address the remaining issues and continue cleanup.

Force Cleanup

Force cleanup is available when normal cleanup is incomplete and the test status is Cleanup Incomplete. Your account must have permission to view recovery tests and perform force cleanup.

  1. In Recovery Tests, find the corresponding Cleanup Incomplete record and click Force Cleanup in its Actions column.

    Caution:
    • Force cleanup forcibly powers off the test VMs for this recovery test and deletes temporary resources. Unsaved data in the test VMs and data written during the test and stored in temporary writable layers will be lost and cannot be recovered.
    • Force cleanup may skip failed steps and leave temporary resources behind. Until all cleanup requirements are met, the recovery plan remains in Cleanup Incomplete. Continue addressing the remaining issues.
  2. In the Force Cleanup dialog, verify the recovery plan ID and recovery test task ID, and wait for the cleanup requirements check to pass.
  3. Enter a Reason for Force Cleanup of up to 2048 characters. Read and select the force cleanup risk acknowledgment checkbox, then click Confirm.

When all cleanup is complete and the cleanup requirements are met, the record changes to Completed, and the recovery plan returns to the Ready state. If cleanup remains incomplete, the status stays Cleanup Incomplete.

View and Download Recovery Test Reports

View reports from recovery test records and download HTML files to retain test execution and cleanup results.

A recovery test report records the test's execution results. Subsequent cleanup and force cleanup results are appended to the same report.

Prerequisites

  • Test execution has ended, and the corresponding report has been generated successfully and is available for viewing.
  • Your account has permission to view recovery tests and recovery test reports. Downloading also requires permission to download recovery test reports.

If No reports is displayed, click the adjacent Refresh button to check whether the report is available. If report generation fails, review the displayed failure reason.

View a Recovery Test Report

  1. In ZLR, choose Recovery > Recovery Tests. Locate the target test record by Start Time.
  2. In the record's Actions column, open the Reports menu and select View Report.

    Alternatively, choose Operations > Reports and open the Test Reports tab. Locate the target report by Object and Generated At, then click View in its Actions column.

  3. In the report viewer, check the plan name, protected site, recovery site, execution start and end times, and overall result. Review the following content as needed.

    ContentDescription
    Execution Results and Execution StepsCheck each VM's execution result, heartbeat check, and step results, and review failure information recorded in the report.
    IP ConfigurationCheck the requested and observed IP addresses and the configuration result for each VM.
    Recovery Test Cleanup RecordsAfter cleanup has run, review the cleanup record's time, result, whether force cleanup was used, and the associated steps and failure information.
  4. When you finish reviewing, close the report to return to the record list.

Download an HTML Report

  1. In the target test record's Actions column, open the Reports menu and select Download HTML.
  2. Wait for the browser to download the HTML file and save it to the required location. You can open the downloaded file in a browser.

You can also click Download HTML in an open report. To retain results that include cleanup, reopen and download the report after cleanup ends.

If you are notified that the report content has changed when downloading, close and reopen the report, then click Download HTML again.