Reference Guide

#Configure Replica Network as applicable
#Replica 1
New-NetIPAddress -InterfaceAlias "SLOT 2 Port 1" -IPAddress 192.168.111.11 -
PrefixLength 24 -AddressFamily IPv4 -Verbose
#Replica 2
New-NetIPAddress -InterfaceAlias "SLOT 2 Port 1" -IPAddress 192.168.112.11 -
PrefixLength 24 -AddressFamily IPv4 -Verbose
Test-Cluster
Test-Cluster -Node SiteANode1,SiteANode2,SiteBNode1,SiteBNode2 -Include 'Storage
Spaces Direct', Inventory', 'Network', 'System Configuration'
New-Cluster
New-Cluster -Name R740StretchCluster -Node
SiteANode1,SiteANode2,SiteBNode1,SiteBNode2 -NoStorage -StaticAddress
192.168.100.100,192.168.200.100 -IgnoreNetwork
192.168.101.0/24,192.168.201.0/24, 192.168.102.0/24,192.168.202.0/24
Witness
Configure a highly available file share witness at a tertiary site or on Azure cloud.
Set-ClusterQuorum -FileShareWitness \\tertiaryShare\witness
Active Directory sites
Ensure that you have created two sites on your Active Directory based on IPs subnets. This will help with assigning the correct
names of sites on the cluster.
If you do not have sites configured on Active Directory, create cluster fault domains as required. The following cmdlet overrides
the site names specified on the Active Directory:
#This is needed if you do not have sites configured on AD
#Create Sites
New-ClusterFaultDomain -Name 'Bangalore' -Type Site
New-ClusterFaultDomain -Name 'Chennai' -Type Site
#Site membership for nodes
Set-ClusterFaultDomain -Name SiteANode1 -Parent 'Bangalore'
Set-ClusterFaultDomain -Name SiteANode2 -Parent 'Bangalore'
Set-ClusterFaultDomain -Name SiteBNode1 -Parent 'Chennai'
Set-ClusterFaultDomain -Name SiteBNode2 -Parent 'Chennai'
Preferred Sites
The Preferred Site will be your primary datacenter site.
NOTE:
Do not configure a Cluster fault domain as a Preferred Site if you plan to run active VMs on both sites, otherwise
choosing to Live Migrate VMs using the "Best Possible Node" option results in all VMs moving to the Preferred Site.
#Preferred Site
(get-cluster).PreferredSite = 'Bangalore'
22
Appendices