I had this whole post all ready to go, then my lab took a power hit (poof!). At least I know what to write again! Anyhow, I received a great comment on the other “Windows Server Expert” blog about CSV and Live Migration. I had mentioned in a post about the value of Hyper-V backup that CSV is not required for Live Migration. One of the readers (thanks Dan), called me on this, because all of the documentation he had seen spoke of them together (including this article: “Hyper-V: Using Live Migration with Cluster Shared Volumes in Windows Server 2008 R2” .
Most of the documentation that I’ve seen covers CSV and Live Migration together because they both required increased network bandwidth between cluster nodes. The guidance I’ve seen isn’t wrong, it’s just incomplete. Mike Sterling and I are addressing some of this in our upcoming R2 update to our Hyper-V book. I’ll make it really clear:
What you do need if you ware not using CSVs is to dedicated each VM to a separate LUN or cluster file system (like Sanbolic’s Melio FS). For Live Migration to work, the VM must be able to move to a new node without being associated to another virtual machine (as it would be if more than one VM were hosted on a LUN with out CSV or a CFS). For demonstration purposes, I setup a small LUN in my lab and but a single VM on it. It’s show as Drive W: in the picture top the right (there are a few other LUNs as well, including a 512GB LUN used for CSV).
I created a Windows Server 2008 R2 Enterprise Edition VM on one of the cluster nodes on the new dedicated LUN as show in the Hyper-V Manager VM “Settings” screen to the Left. I then make the VM “highly available by adding the LUN to the cluster and running through the “High Availability Wizard”. Once the VM was started and running on the cluster, I was all set – as you can se e in the Failover Clustering console image on the right.
OK, so now what. Demonstrating that you don’t need CSV is as simple as right clicking on the VM in “Services and applications and seeing what options you have… like… like LIVE MIGRATION!
Pretty cool, right? So if you can use Live Migration without a CSV, why would you bother with setting up CSVs? Because using CSVs reduces the hassles associated with storage provisioning. You don’t have to setup a separate LUN for each VM if you put all your VMs on a big CSV (or multiple CSVs). CSVs also reduce the potential disconnect period at the end of the migration, since the CSV doesn’t have to be unmounted from one host and remounted on another. THIS IS A BIG DEAL if you have a less than optimal networking setup (like in my lab). I only have two NICs on each of the hosts in this cluster – on for VMs and the other for cluster / iSCSI (a real no no! – Not enough bandwidth!). On this cluster, the time out to mount / unmount a VM on a dedicated LUN is just a bit too long, and my non-CSV Live Migrations often fail as a result!
If CSVs make using Live Migration easier, why not use them all the time? In my last post I mentioned the challenge with host-based backup of VMs using CSVs. You can use CSVs or dedicated LUNs for your clustered virtual machines, you just have to be aware of the trade offs.