Microsoft made lots of changes with CSV 2.0 in Windows Server 2012.Â But it seems like that message has not gotten through to people.Â Iâ€™ve responded to quite a few comments here on the blog and Iâ€™m seeing stuff on forums.Â Whatâ€™s really annoying is that when you tell people that X has changed, they donâ€™t listen.
I would strongly recommend that people take some time (I donâ€™t care about excuses) to watch the TechEd presentation, Cluster Shared Volumes Reborn in Windows Server 2012: Deep Dive, by Rob Hindman andÂ Amitabh Tamhane (Microsoft).Â There are lots of changes.Â But I want to focus on the big ones that people repeatedly question.
OK, what are the major changes?
There IS NO Redirected IO in WS2012 CSV Backup
Let me restate that in another way: Windows Server 2012 does not use Redirected IO to backup CSVs.
This has been made possible thanks to substantial changes in how VSS places VMs that are stored on CSV into a quiescent state.Â The backup agent (VSS Requestor) kicks off a backup request with a list of virtual machines.Â The Hyper-V Writer identifies the storage location(s) of the VMsâ€™ files.Â A new component, the CSV Writer, is responsible for coordinating the Hyper-V nodes in the cluster â€¦ meaning all VMs on a CSV that is being backed up to be placed into a quiescent state at the same time.Â This allows for a single distributed VSS snapshot of each CSV.Â That allows the provider (hardware, software or system) to go to work and get the snapshot.
This is much simpler than what CSV did in Windows Server 2008 R2.Â [The following does not happen in WS2012] There was no CSV Writer.Â Â Â There was no coordination, so Redirected IO was required.Â The node performing a snapshot needed exclusive access to the volume so all IO went through it for the time being.Â A lot of people knew that bit up to there.Â The bit that most people didnâ€™t know was that each node (hosting VMs that were being backed up) took snapshots of each CSV that was being backed up.Â And that could cause problems.
Iâ€™ve heard several times now from people whoâ€™ve experienced issues with volumes going offline during backup.Â There were two causes that Iâ€™ve seen, and both were related to a third party hardware VSS provider:
- Using a hardware VSS provider that did not support CSV
- The rapidly rotating and repeated snapshot process caused chaos in the SAN with the hardware snapshots
But, all that is G-O-N-E when backing up CSV on Windows Server 2012:
- There is no redirected IO
- There is a single VSS snapshot performed
SCSI3 Reservation Starvation Should Go Away
Every node in a Hyper-V cluster used SCSI3 persistent reservations and SCSI3 reservations to connected to CSVs.Â Every SAN has a finite number of those persistent reservations and reservations.Â The SCSI3 persistent reservations was a bottleneck.Â No manufacturer shares that number, and itâ€™s a hell of a lot smaller than you’d expect â€“ we typically find out about it during a support call.Â To compound this, each host required a number of SCSI3 persistent reservations, and that multiplied based on:
- Number of hosts in the cluster
- Number of CSVs
- Number of storage channels per host (possibly even a multiple of the number of physical HBAs/NICs, depending on the SAN)
What happens when you deploy too many nodes, CSVs, or storage channels?Â CSVs go offline.Â Yup.Â The SAN is starved of resources to connect the hosts to the LUNs.Â I saw this with small deployments with an entry level SAN, 3 hosts, and 5 CSVs.Â And it aint pretty.
Imagine a cluster with 64 nodes!?!?!Â With Windows Server 2012, each node gets a static key instead of using the legacy persistent reservation multiplication.Â That means your SAN can support more CSVs and more hosts running Windows Server 2012 than it would have with Windows Server 2008 R2.Â Note that the static key is assigned when the node is added to the cluster.
You can find the static keys in the registry of your cluster nodes in \HKEY_LOCAL_MACHINE\Cluster\Nodes\<Node Number>\ReserveID (REG_QWORD).Â You can identify which node number is which host by the NodeName (REG_SZ) value.Â You can see an example of this below.
This new system, which replaces persistent reservations, gives you better cluster infrastructure scalability, but it doesnâ€™t eliminate the scalability limits of your SAN.
This blog post is the property of Aidan Finn (@joe_elway / http://www.aidanfinn.com) and may not be reused in any manner without prior consent of Aidan Finn. You may quote one paragraph from this blog post if you link to the original blog post.