Sep 15 2009
Networking

Continuous Protection With Microsoft's DPM 2007

Backup and restore solution provides simple and reliable continuous data protection for Windows servers.

Microsoft’s Data Protection Manager (DPM) 2007 is a next generation backup and restore solution that protects Microsoft file and application servers, focusing on block-level continuous data replication to disk for fast recovery, and tape storage for long-term archiving. With comprehensive functionality and reliability, coupled with unusual simplicity in configuration and operation, DPM simplifies IT operations with a streamlined restore procedure for stress-free recovery in the event of a disaster.

Installing DPM 2007

In comparison with other Microsoft server products, Data Protection Manager is easy to install on Windows Server 2008. With the exception of the Single Instance Storage (SIS) component, all prerequisite software is included and installed as part of setup. Because DPM must run on a dedicated machine, there are no other services or applications that might break, allowing the setup procedure to do all the heavy lifting.

DPM can be installed on Windows Server 2003 or 2008 and requires a minimum of 2 gigabytes of RAM. Both 32- and 64-bit architectures are supported. Storage for replicated data can be provided by direct attached storage (DAS) or a storage area network (iSCSI or Fibre Channel), but USB and firewire disks are not supported. Tape drives and libraries must be physically attached to the DPM server. Microsoft provides a handy spreadsheet for estimating the amount of storage required, but currently only estimates the space needed to replicate Exchange workloads.

In addition to licensing the DPM server, each device that needs to be protected requires a management license: either standard or enterprise. Standard management licenses are for protecting file servers and system state data. An enterprise management license is required for everything else, including the DPM System Recovery Tool (SRT), which provisions bare-metal recovery to similar hardware and is provided as a separate download.

Add Disks to the DPM Storage Pool

While not compulsory, DPM is better able to manage storage if disks are added to the storage pool. You should note that DPM cannot use space that is assigned to volumes using Windows Disk Management on disks that are part of the storage pool. Let’s add a disk that’s directly attached to the DPM server to the storage pool:

  1. Log on to the DPM server and open the DPM 2007 Administrator Console from the Start menu.
  2. Select the Management tab, then Disks.
  3. Click Add in the Actions pane.
  4. Disks that DPM is able to add to the storage pool will be shown in the dialog. Select the disks you want to add under Available disks, click Add and then OK.
  5. If the selected disks are basic, you will be warned that DPM will convert them to dynamic. Click Yes to continue.

Your disk(s) should now appear as part of the storage pool in the Disks tab (Figure 1). 

Installing Server Agents

Unlike some other backup solutions, one agent covers all workloads that DPM is capable of protecting. In principle, DPM agents can be push-installed using the administrator console, but the recommended method is to manually install the agent on servers that DPM will protect or use Group Policy software distribution. When you install the agent manually on a server, it will make the necessary changes to Windows Firewall to allow communication with the DPM server. On a server that you want DPM to protect:

  1. Log on with an account that has local administrative privileges.
  2. Map a network drive to the DPM server and open a command prompt in the \Program Files\Microsoft DPM \DPM\Agents\RA\2.0.5820.0 directory on the remote DPM server. Open the amd64 or i386 folder, depending on the architecture of your server hardware.
  3. Run the following command: DPMAgentInstaller_AMD64.exe <DPM server name>, where <DPM server name> is the fully qualified domain name (FQDN) of your DPM server. The command might look something like this:

    DPMAgentInstaller_AMD64.exe dpm2007.ad.contoso.com

    For i386 architectures, note that the executable is DPMAgentInstaller.exe.

    To connect the DPM agent and server, we need to run a PowerShell script on the DPM server:
     

  4. Open the DPM Management Shell from the Start menu.
  5. Run the following command: .\Attach-ProductionServer.ps1 <Server> <Agent>, where <Server> is the FQDN of the DPM server and <Agent> the FQDN of the server where the DPM agent that you want to connect is installed. The command might look something like this:

    .\Attach-ProductionServer.ps1 dpm2007.ad.contoso.com sccm.ad.contoso.com

Creating a Protection Group

Protection Groups allow you to collect data sources protected by DPM, such as SQL databases, and assign shared protection configuration. For instance, one Protection Group might contain all databases that need continuous protection, while another group contains file shares that are backed up daily. Let’s create our first Protection Group:

  1. In the DPM 2007 Administrator Console, select the Protection tab and then select Create protection group in the Actions pane.
  2. Click Next past the welcome screen.
  3. The Select Group Members dialog (Figure 2) will show objects available for protection on all servers in your Active Directory (AD) forest where the DPM agent has been installed. Select the objects that you want to protect under Available members and click Next.
  4. Give the Protection Group a name; check I want short-term protection using Disk and click Next.
  5. Click Next to accept the default settings in the Specify Short-Term Goals dialog (Figure 3).
  6. Assuming you have adequate disk space in the storage pool, no changes should be necessary in the disk allocation dialog. Click Next to continue.
  7. Click Next in the Choose Replica Creation Method dialog and then Create Group to complete the procedure. DPM will now create the first replica. Click Close when the replicas have been created successfully.

Figure 4 shows the administrator console Protection tab after all replicas have been successfully created.

End-User Recovery

Users can restore files from DPM recovery points without intervention from the help desk. This functionality is not enabled by default, it requires the Active Directory schema to be extended, and pre-Vista clients must have the Shadow Copy Client software installed.

Because of security changes in Windows Server 2008, extending the AD schema to support DPM End-user Recovery with the administrator console fails, so I advise using the following method, which works with Windows Server 2003 and 2008 domains:

  1. Log on to the DPM server with an account that has Domain Admin and Enterprise Admin privileges.
  2. Double click DPMADSchemaExtension.exe in the \Program Files\Microsoft DPM \DPM \End User Recovery directory.
  3. Click Yes to configure Active Directory in the first dialog.
  4. Enter the DPM server name and click OK.
  5. Enter the FQDN of your AD domain and click OK.
  6. It’s important to leave the Enter Protected Computer Domain Name dialog empty if your DPM server and domain controller that hosts the schema master role are in the same domain. If not, you should enter the FQDN of the domain that contains servers protected by DPM and click OK.
  7. Click OK in the dialog asking you to wait a few minutes. You will be prompted again when the update process is successfully completed.

    Now that the AD schema has been updated, open the DPM 2007 Administrator Console from the Start menu:
     

  8. Select the Management tab and then Options in the Actions pane.
  9. Select the End-user Recovery tab in the Options dialog, check Enable end-user recovery and click OK.

Users will now be able to see previous versions of files provided by DPM recovery points by right clicking a file in Windows Explorer, selecting Properties from the menu and then the Previous Versions tab.

Restoring Files

The restore process is simple and reliable, and provides almost zero data loss for applications such as Exchange and SQL by restoring to the last recovery point and then replaying transaction logs to bring databases up to date. DPM simplifies complicated recovery procedures with wizards, providing options for different recovery scenarios. In this example, we’ll restore a file to get a feel for the recovery process:

  1. In the DPM 2007 Administrator Console, select the Recover tab and then click Search.
  2. To quickly locate the file to be restored, specify the UNC path of the file share under Location and the file name under Folder or file name and click Search.
  3. Four versions of the file are found from different recovery points. Select the most recent and click Recover in the Actions pane (Figure 5).
  4. Click Next in the review dialog. Let’s recover to the original location and click Next.
  5. Accept the default recovery options by clicking Next again.
  6. Click Recovery in the summary dialog and then close the Recovery Wizard.

DPM 2007 Overview

Extra Reading

Troubleshooting Incompatible Filter Driver Errors

Microsoft Knowledge Base article containing information about how to configure IIS after applying SQL 2005 service pack 2. See Problem 2 at the bottom of the article.

DPM 2007 falls short of receiving full marks, as there are some scenarios during configuration where simple guidance is omitted, such as a warning when adding disks that contain volumes to a storage pool. Other minor annoyances are that applying SQL 2005 Service Pack 2 breaks reporting in DPM, incompatible filter drivers on protected servers might cause replica synchronization to fail, and extending the AD schema to support End- User Recovery in the administrator console fails for Windows Server 2008 domains. However, once these problems are resolved, DPM proves to be a reliable product.

Monitoring and alerting capabilities are comprehensive, and while the built-in reports are limited, custom reports can be created with the help of the included SQL views. An additional bonus for some organizations may be that DPM 2007 SP1 supports integration with offsite backup provider Iron Mountain.

When faced with the prospect of restoring a complex application server, such as Exchange 2007, you want to be sure that your backup software will provide a simple, intuitive and reliable solution, increasing the chances of a quick and successful restore. DPM provides a refreshing change from complicated and error-prone backup solutions, but its biggest disadvantage is lack of support for non-Microsoft products.

Russell Smith is an independent consultant based in the United Kingdom who specializes in Microsoft systems management.
Continuous Protection With Microsoft's DPM 2007
Close

Become an Insider

Unlock white papers, personalized recommendations and other premium content for an in-depth look at evolving IT