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
Results
After submission succeeds, the recovery test starts. On the plan details page, open 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 to view recovery test records. Click Refresh to update the list.
| Content | Description |
|---|---|
| Start Time and End Time | Check the test's execution start and end times to locate the record. |
| Test Status | View 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. |
| Result | Check the test's execution result, such as success, partial success, or failure. |
View Execution Steps and Failure Reasons
-
In Recovery Tests, find a record in the Testing state. In its Actions column, click View Execution Steps to open for the plan.
Alternatively, choose , click the target plan's name, and open .
-
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.
- Click the expand button before a step to view VM details. Use Source VM ID and Status to identify individual VMs.
-
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
- On the Recovery Plans page, click the target plan's name and open the Execution History tab.
- Locate the recovery test by Start Time. Verify that the record's Operation is Recovery Test, then click the corresponding Start Time.
- 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.
-
In ZLR, choose . 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.
- In the Cleanup dialog, verify the recovery plan ID and recovery test task ID, and wait for the cleanup requirements check to pass.
- 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.
-
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.
- In the Cleanup dialog, verify the recovery plan ID and recovery test task ID, and wait for the cleanup requirements check to pass.
- 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.
-
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.
- In the Force Cleanup dialog, verify the recovery plan ID and recovery test task ID, and wait for the cleanup requirements check to pass.
- 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
- In ZLR, choose . Locate the target test record by Start Time.
-
In the record's Actions column, open the Reports menu and select View Report.
Alternatively, choose and open the Test Reports tab. Locate the target report by Object and Generated At, then click View in its Actions column.
-
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.
Content Description Execution Results and Execution Steps Check each VM's execution result, heartbeat check, and step results, and review failure information recorded in the report. IP Configuration Check the requested and observed IP addresses and the configuration result for each VM. Recovery Test Cleanup Records After cleanup has run, review the cleanup record's time, result, whether force cleanup was used, and the associated steps and failure information. - When you finish reviewing, close the report to return to the record list.
Download an HTML Report
- In the target test record's Actions column, open the Reports menu and select Download HTML.
- 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.
