Home | Contact | Sign in

Windows Infrastructure

Real life Active Directory, Hyper-V, Forefront , Performance and Security experiences By Erik den Burger

Anti Affinity for Hyper-V Clusters

Tags:  Hyper-V

When you deploy multiple virtual RDSH Servers on a Hyper-C cluster you want in most cases some control in the placement of these servers. If you have a two-server RDS Farm you don't want those two nodes to be running on the same Hyper-V Node.

Now it is possible to define anti-affinity for clustergroups. You can create an anti-affinity object called NLBCLuster1 and try to prevent running both RDSH server on the same Hyper-V node by running the following commands:

Cluster.exe group "RDSH01" /prop AntiAffinityClassNames="NLBCluster1"

Cluster.exe group "RDSH02" /prop AntiAffinityClassNames="NLBCluster1"

The anti-affinity can be overridden in some cases where a cluster with reduced capacity needs to keep the VM's running.

September 10, 2010 · Posted by Erik den Burger · 0 Comments

Reserving memory for your Parent partition

Tags:  Hyper-V

After doing some tests with dynamic on my Home lab I ran into a problem that suddenly the performance of the parent partition was well below normal. So after some troubleshooting I figured out that my VM's were using too much memory. Normally I would just stop one of the VM's and reduce the amount of memory to that VM. But after installing SP1 this fix didn't give me the desired results. I soon found out that the dynamic memory feature was the cause. There just wasn't enough memory available for all VM's I had running.

Normally Hyper-V will calculate a parent partition reserve but this calculation is done assuming you are not running anything else on your parent partition. Off course this is best practice in any production system but on my home lab I was running other software on my parent partition.

Fortunately Microsoft has a registry key (HKLM\software\microsoft\windows nt\currentversion\virtualization\memoryreserve, a DWORD) that will let you tweak the parent partition memory reserve. Now I can reserve more memory for my parent partition and keep the software running. Downside is that I have less memory available for my VM's. But off course dynamic memory isn't a magic tool that will give you more memory, it just will use the memory more efficiently.

September 9, 2010 · Posted by Erik den Burger · 0 Comments