Reference Guide

Preferred Sites can also be configured at cluster role and group level.
(Get-ClusterGroup -Name SQLServer1).PreferredSite = 'Bangalore'
If there is an Active-Active stretched cluster where Preferred Sites are not configured, it is highly recommended that you
configure Preferred Sites for each volume. This will ensure that the volumes stay at the same site if there is a single node failure
on either site.
(Get-ClusterSharedVolume "Cluster Virtual Disk (ax740xds2N2)" | Get-
ClusterGroup).PreferredSite = "Chennai"
Get-ClusterSharedVolume "*ax740xds2N2)" | Get-ClusterGroup |fl *
Enable Storage Spaces
Enable-ClusterS2D -confirm:$false
This step will ensure that Storage Spaces Direct is enabled on the stretched cluster. Two storage pools are created, one for
each site.
PS C:\Users\Administrator.TEST> Get-StoragePool
FriendlyName Operational HealthStatus IsPrimordial IsReadOnly Size AllocatedSize
Status
------------ -------------- ------------ ------------ ---------- --------- -------------
Primordial OK Healthy True False 15.94 TB 15.71 TB
Primordial OK Healthy True False 15.94 TB 15.71 TB
Pool for Site OK Healthy False False 15.7 TB 4.28 TB
Chennai
Pool for Site OK Healthy False False 15.7 TB 4.28 TB
Bangalore
New Volume
You can create a new replicated volume by using Windows Admin Center or a mixture of PowerShell and Failover Cluster
Manager.
Using PowerShell and Failover Cluster Manager
For each volume that you want to replicate across two sites, you will have to create its associated Replica volume and Log
volume on both sites.
NOTE: Customers can choose to enable replication on the volumes based on their business needs.
#Primary Volume
New-Volume -StoragePoolFriendlyName "Pool for Site Bangalore" -FriendlyName
VolumeA -FileSystem CSVFS_ReFS -Size 1TB
#Log Volume
New-Volume -StoragePoolFriendlyName "Pool for Site Bangalore" -FriendlyName
'VolumeA-Log' -FileSystem ReFS -Size 50GB
#Replica Volume
New-Volume -StoragePoolFriendlyName "Pool for Site Chennai" -FriendlyName
'VolumeA-Replica' -FileSystem ReFS -Size 1TB
#Replica Log Volume
New-Volume -StoragePoolFriendlyName "Pool for Site Chennai" -FriendlyName
'VolumeA-Replica-Log' -FileSystem ReFS -Size 50GB
NOTE:
Ensure that Replica volumes and all log volumes are ReFS (not CSVFS) before enabling replication using PowerShell
or Failover Cluster Manager.
Using Failover Cluster Manager to enable Volume Replica
Appendices
23