Recover a backed up DPM server
Updated: May 13, 2016
Applies To: System Center 2012 SP1 - Data Protection Manager, System Center 2012 R2 Data Protection Manager
If a primary server fails you can switch protection to the secondary server. After you’ve switched protection, you can perform recovery functions from the secondary server.
In the Protection area of the DPM Administrator Console Go to the Protection work area, right-click the protection group for which you want to switch protection.
Select Switch Disaster Protection from the context menu.
Run a consistency check. After switching protection, the replica will appear as inconsistent until the check runs.
You can switch protection in Windows Powershell using the Start –DPMSwitchProtection cmdlet.
To switch protection back perform the same procedure. You’ll begin to see Agent Ownership Required alerts on the primary server. Click Take Ownership in the alert to give the primary server ownership of the protection agent.
When you recover a primary DPM server, you’ll need to reestablish protection for the computers that were previously protected by the DPM server. Note that:
You can’t restore recovery points for data sources protected by the DPM server.
When you recover database files, ensure that the restore location on the DPM server is secure.
Uninstall DPM, selecting the option Retain disk-based recovery points. Then restart the computer.
Delete the DPM database using SQL Server Management Studio.
Install DPM and restart the computer.
On the DPM server, create a restore folder for the files.
Insert the tape with the latest backup of the DPM database into the tape library.
In the Management tab of DPM Administrator Console, open Libraries and click Rescan on the Actions pane
Insert the tape with the latest backup of the DPM database in the tape drive/library. You can identify this tape from the last tape management report.
Select the library from the list and click Inventory libraries…. Perform a detailed inventory from the Actions pane.
Select the imported tape from the list and click Recatalog imported tape on the Actions pane.
In the Recovery tab select the DPM database in the External Tapes node. Click Recover on the Actions pane and using the Recovery Wizard, recover the database to a network folder (the folder you created earlier).
Run DPMSync to attach the database to DPM:
DPMSync –RestoreDB –DBLoclocation of folder created in Step 6\name of DPMDB. DPMSync takes the DPM service offline and attaches the backed up database to SQL Server.
To recover a DPM replica, first run DpmSync to reallocate it. DpmSync marks the replica as manual replica creation pending. You can only recover the replica when it has this status. If a replica recovery fails, the replica status changes to inconsistent, which prevents repeated recovery attempts. If failure occurs stop protection of the data source using the delete replica option, add the data source to a protection group again using the manual replica creation option, and then retry the replica recovery. If this fails retrying the recovery will always fail because the replica will now be marked with invalid status.
Run DpmSync -reallocateReplica. This command reformats any replicas that are missing and marks them as "manual replica creation pending."
Manually create the replica from either the secondary DPM server or a tape backup of the data source corresponding to each of the replicas. If you use a secondary server the Restore to replica option is enabled in the Recovery task area. For tape backups, use the management shell with the RestoreToReplica option.
Perform a consistency check to continue protection.
After you rebuild a primary DPM server, you must reestablish protection of the computers that were protected by the primary server, as follows:
On the protected computer run the following at the command prompt:
Setdpmserver.exe < primary DPM server name >
Open Computer Management and perform the following steps:
Select Local Users and Groups. Verify that the primary server, in the format of Domain/Name, is a member of the following groups:
Distribute COM Users
If the primary server isn’t not listed in any of the groups, manually add the server in the format of Domain/Name.
If protection fails after completing the steps, do the following:
In Administrative Tools, open Component Services. Expand Computers, expand My Computer, and then click DCOM Config.
In the results pane, right-click DPM RA Service. Click Properties > Security.
In the Launch and Activation Permissions area, click Edit, and then do one of the following:
If the primary server is listed, the Access Control List (ACL) entry might be incorrect. Remove the entry, and then add the primary server with full permissions.
If the primary server is not listed, add the primary server with full permissions.