In the quiet days between Christmas and New Year, I had some time to research how DPM2012 SP1 performed with protecting guests on a Windows Server 2012 Hyper-V cluster using CSV v2.0.
According to the SP1 release notes we can expect improved backup performance of Windows Server 2012 Hyper-V over CSV deployments with the following benefits:
-
900% improvement in Express Full backups
-
Parallel backups
-
No performance difference between backups from CSV owners and non-owners
![]()
Let me first point out that my setup is based on the following configuration:
Storage Server
-
HP ProLiant BL460c Gen8
-
Windows Server 2012 Datacenter with iSCSI Target Server Role enabled
-
Dual-port 10Gb HP FlexFabric 554FLB (Emulex) Adapter
-
Converged Fabric network configuration
Hyper-V Cluster Nodes
-
HP ProLiant BL460c Gen8
-
Windows Server 2012 Datacenter with Hyper-V role and Failover Cluster feature enabled
-
10Gb HP FlexFabric 554FLB (Emulex) Adapter
-
Converged Fabric network configuration
DPM 2012 SP1 Server
-
Windows Server 2012 Hyper-V Virtual Machine
-
Windows Server 2012 Datacenter
-
1 x 10Gb virtual network adapter (synthetic)
Network Configuration
Both on the iSCSI Target Server and Hyper-V cluster nodes, the two 10Gb network adapters have been teamed using a switch independent teaming mode with Hyper-V Port as the load balancing algorithm. A Hyper-V Extensible Switch is connected to the NIC Team and several virtual networks have been configured using the Converged Fabric method of Windows Server 2012. Each network has a minimum bandwidth Quality of Service configured on the virtual switch level. On the backend, the servers use a Virtual Connect Flex-10 interconnect.
[image not preserved in the archive]
In DPM a separate Protection Group is created for protecting a number of Hyper-V Virtual Machines which are all on the same CSV disk (CSV01). The shared CSV disk is presented by a Windows Server 2012 iSCSI Target Server so we are talking about a 100% software solution here. The VM’s are spread across two fully updated Windows Server 2012 Hyper-V cluster nodes. This means all current Windows updates including the November and December Cumulative Updates are installed. The Hyper-V guests have updated Hyper-V Integrations (6.2.9200.16443).
![]()
[image not preserved in the archive]
When you create a DPM Protection group and add the VM’s, DPM will first create a full replica of each virtual machine on the Hyper-V hosts. Volume Shadow Copy (VSS) is responsible for a consistent backup. In Windows Server 2012 we now also have a CSV writer which communicates with and collects information from the Hyper-V writers on all the partner nodes in the cluster. The CSV provider is responsible for synchronizing the backup mechanisms between the local node and the partner nodes. It is the Hyper-V writer’s job to quiesce the local VMs and get them ready for backup. If there is a hardware provider available then the snapshots will be offloaded to hardware. In my example we do not use a hardware snapshot capable storage device, so the standard Windows software snapshot provider is used.
[image not preserved in the archive]
Source: Microsoft Virtual Academy Student Manual: Module 3
If you are familiar with DPM and protecting VMs on Windows Server 2008 R2 Hyper-V, you will probably know that for optimum results we had to disable parallel backup by changing a registry key on the DPM server from 3 to 1 and if you had multiple cluster shared volumes you had to serialize the guests. This was always a little bit difficult to explain to customers. But the result was rewarding. Most VM’s were backed up correctly. A big disadvantage was that it was slow. During a host level backup of clustered Hyper-V virtual machines, the cluster shared volumes would go into redirected IO mode. Backup during the day was not a smart thing to do and trying to increase the number of parallel backups was not recommended. On a large scale this would eventually break because the DPM agent was continually trying to get full access to a CSV disk. This meant the CSV had to be moved across the cluster to the cluster node taking the VSS snapshot. Disk ownership was necessary because a VSS snapshot is a metadata operation.
[image not preserved in the archive]
Source: Technet
Fortunately CSV has been totally redesigned by the failover cluster team at Microsoft, hence version 2.0 and one of the primary benefits for backing up VMs is that CSV’s don’t go in redirected IO mode anymore. Now DPM supports parallel backups and you can leave the default of 3 parallel backups or test if you can get more.
In my tests, I was planning to backup 5 Hyper-V guests simultaneously, so on the DPM server I increased the registry value MaxAllowedParallelBackups from 3 to 5. You can find this key under HKLMSOFTWAREMicrosoftMicrosoft Data Protection Manager2.0Configuration.
[image not preserved in the archive]
This picture shows the DPM Protection Group containing 5 of the Hyper-V guests to be protected in this setup.
[image not preserved in the archive]
As soon as the Protection Group is configured, DPM starts to create a replica of the Hyper-V guests. As you can see there are 5 simultaneous jobs running to create the replicas.
![]()
Replica
A replica is a complete copy of protected data residing on a single volume on the DPM server. A replica is created for each protected data source after it is added to its protection group. With co-location, multiple data sources can have their replicas residing on the same replica volume. A replica contains all the properties of the volume, including local recovery point settings, security settings, and sharing.
[image not preserved in the archive]![]()
Express Full Backup
An express full backup is a type of synchronization in which the protection agent transfers a snapshot of all blocks that have changed since the previous express full backup (or since the initial replica creation, for the first express full backup) and updates the replica to include the changed blocks. The impact of an express full backup operation on performance and time is expected to be less than the impact of a full backup because System Center 2012 – Data Protection Manager (DPM) transfers only the blocks changed since the last express full backup.
Another big improvement is that DPM 2012 SP1 will now perform a true Express Full Backup using block level change detection for Windows Server 2012 Hyper-V clustered guests on CSV. It is called a full backup because all the previously replicated blocks are already in the replica. Only the changed blocks have to be protected during the Express Full Backup and the net result is a new full replica including the last changed blocks.
Here you can see the results. First you see the completed replica creation which took about 9 minutes for all 5 guests. I later triggered a manual recovery point for each VM individually. Because this happened only half an hour later, you can clearly see only the changed blocks have been backed up.
[image not preserved in the archive]
In previous versions of DPM and Hyper-V R2, each and every Recovery Point or Express Full Backup would take a VSS snapshot the entire CSV for each VM it protected. If that VM was on another host, its underlying CSV disk (or disks if the VHDs were on different CSV’s) had to be moved to the cluster node with the DPM backup agent. Even worse, every incremental backup would take a full backup which made backing up Hyper-V guests on Hyper-V clusters a long and painful operation.
CSV v2 requires only one snapshot for multiple VM’s across the entire cluster using the same CSV disk. VSS is initialized just on the node that requests the backup which can be any node in the cluster.
The improved backup experience we see in Data Protection Manager in System Center 2012 SP1 is for a large part the result of improvements in CSV and Hyper-V.
No wonder Microsoft is able to claim a 900% improvement in Express Full backups in Windows Server 2012 and DPM 2012 SP1. In my small scale example the replica creation and recovery points only took a few minutes and as soon as I have some more capable storage (in stead of my software based iSCSI Target Server), I will do some more calculations. Even with this software storage setup, I was actually quite amazed how well this all performed.