Q. How do I set the preferred site for Windows Server 2016 failover clustering?
A. To set the preferred site for a 2016 cluster that has sites defined use:
(Get-Cluster).PreferredSite = <site name, e.g. Dallas>
If you have the situation with multi-active datacenters you can define different preferred sites for different cluster groups which will be used to govern where VMs start initially.
(Get-ClusterGroup <group>).PreferredSite=<site name>
Note that because of the various different levels of preference it may be confusing which wins. The order of priority for placement is:
- Storage affinity
- Group preferred site
- Cluster preferred site