Configure settings for the system VSS provider

If you do not use a hardware Volume Shadow Copy Services (VSS) provider from your storage area network (SAN) vendor to back up Hyper-V virtual machines with Cluster Shared Volumes (CSV) storage, you can use software snapshots to back up your virtual machines. We recommend that virtual machines that are deployed on CSV should be backed up serially by the following actions:

This registry key setting ensures that only one backup job runs at a time on a server that is running Hyper-V.

Serialize virtual machine backups per CSV LUN

This form of serialization limits the number of virtual machine backups that occur on a single Cluster Shared Volumes (CSV) logical unit number (LUN). The serialization is performed as follows:

Create the DataSourceGroups.xml file—This file provides DPM with information about the CSV virtual machine deployment configuration and distribution on the various CSV LUN for serialization of backups per CSV LUN.

Merge the DataSourceGroups.xml files from all CSV clusters—If you have multiple clusters, merge all the DataSourceGroups.xml files into a single file on the DPM server. Place the DataSourceGroups.xml file on the DPM server. You can skip this step and copy the file directly to %PROGRAMFILES%\Microsoft DPM\DPM\Config if the DPM server protects only one cluster.

If a protection group has already been created for the virtual machines, perform the steps in the Modify Protection Group Wizard. If a protection group has not been created, create a new protection group, and the job serialization that is described in the previous section takes effect.

Create the DataSourceGroups.xml file

Generate the DataSourceGroups.xml file by running the DSConfig.ps1 script on each node in a cluster that contains CSV. Repeat this step for each cluster that is protected by a DPM server.

Note the following:

The DataSourceGroups.xml file must be updated only when virtual machines are added, deleted, or modified in the cluster and when protection is configured for them.

Regenerate the DataSourceGroups.xml file from the CSV cluster and update the DataSourceGroups.xml file by replacing the existing groups for that cluster with the new groups.

DSConfig.ps1

The following DSConfig.ps1 script creates the DataSourceGroups.xml file by listing all the virtual machines that run on CSV in groups. Each group has the list of all virtual machines that are hosted on one CSV LUN. DPM permits only one backup from one such group at a time.

Generate the DataSourceGroups.xml file on a CSV cluster

Run this script in a Windows PowerShell session with elevated privileges and locate the DataSourceGroups.xml file that is generated in the same folder C:\MyFolder\>DSConfig.ps1

This script generates the DataSourceGroups.xml file in the current path. After this file is created, copy it to the %programfiles%\Microsoft DPM\DPM\Config directory on the DPM server.

Tip

If you upgraded from DPM 2010, copy the file to the %PROGRAMFILES%\Microsoft DPM\DPM\Config folder. If you install DPM as a new installation, copy the file to %PROGRAMFILES%\System Center 2012\DPM\DPM\Config.

You can verify the groupings by opening the XML file that is generated. The following code shows the expected format:

Copy the <Group> tags from all the DataSourceGroup.xml files that were generated and add the text between the <DataSourceGroup> tags. The DataSourceGroups.xml file now contains one <header> tag, one <DataSourceGroup> tag, and <Group> tags from all CSV clusters.

Close the DataSourceGroups.xml file on the DPM server. It is now ready to use.

Migrate from the system software VSS provider to a hardware VSS provider

If you use the default system VSS provider and want to start using the hardware VSS provider, you must do the following:

Install the hardware VSS provider on the host computer and ensure that your Storage Area Network (SAN) is configured for hardware snapshots.

Delete the %Programfiles%\Microsoft DPM\DPM\Config\DataSourceGroups.xml file from the DPM server.

Open the Registry Editor and navigate to HKLM\Software\Microsoft\Microsoft Data Protection Manager\2.0\Configuration\MaxAllowedParallelBackups.

Set the following values:

Value: Microsoft Hyper-V

Data: 3

Value: DWORD

To complete this process, you must run the Modify Protection Group Wizard for each protection group that protects the virtual machines on this cluster.