System information
How Site Recovery Manager Handles Custom Recovery Step Failures
Site Recovery Manager handles custom recovery step failures differently based on the type of recovery step.
Site Recovery Manager attempts to complete all custom recovery steps, but some command recovery steps
might fail to finish.
Command Recovery Steps
By default, Site Recovery Manager waits for 5 minutes for command recovery steps to finish. You can
configure the timeout for each command. If a command finishes within this timeout period, the next
recovery step in the recovery plan runs. How Site Recovery Manager handles failures of custom commands
depends on the type of command.
Type of
Command Description
Top-level
commands
If a recovery step fails, Site Recovery Manager logs the failure and shows a warning on the
Recovery Steps tab. Subsequent custom recovery steps continue to run.
Per-virtual
machine
commands
Run in batches either before or after a virtual machine powers on. If a command fails, the
remaining per-virtual machine commands in the batch do not run. For example, if you add five
commands to run before power on and five commands to run after power on, and the third
command in the batch before power on fails, the remaining two commands to run before power on
do not run. Site Recovery Manager does not power on the virtual machine and so cannot run any
post-power on commands.
Message Prompt Recovery Steps
Custom recovery steps that issue a message prompt cannot fail. The recovery plan pauses until the user
dismisses the prompt.
Create Top-Level Message Prompts or Command Steps
You can add top-level recovery steps anywhere in the recovery plan. Top-level command steps are
commands or scripts that you run on Site Recovery Manager Server during a recovery. You can also add
steps that display message prompts that a user must acknowledge during a recovery.
Prerequisites
n
You have a recovery plan to which to add custom steps.
n
For information about writing the commands to add to command steps, see “Guidelines for Writing
Command Steps,” on page 60 and “Environment Variables for Command Steps,” on page 60.
Procedure
1 In the vSphere Web Client, select Site Recovery > Recovery Plans, and select a recovery plan.
2 On the Monitor tab, click Recovery Steps.
3 Use the View drop-down menu to select the type of recovery plan run to which to add a step.
Option Description
Test Steps
Add a step to run when you test a recovery plan.
Recovery Steps
Add a step to run when you perform planned migration or disaster
recovery
You cannot add steps in the cleanup or reprotect operations.
4 Right-click a step before or after which to add a custom step, and select Add Step.
Site Recovery Manager Administration
58 VMware, Inc.










