Storage Replica - Paiet/Tech-Journal-for-Everything GitHub Wiki
Storage Replica
https://docs.microsoft.com/en-us/windows-server/storage/storage-replica/storage-replica-overview Get-PhysicalDisk | Format-List -Property friendlyname, uniqueid, size Get-PhysicalDisk -UniqueId | Set-PhysicalDisk -MediaType hdd
- Determine usage scenarios for Storage Replica
- Implement Storage Replica for server-to-server, cluster-to-cluster, and stretch cluster
#Install Pre-req's
winrm quickconfig
Invoke-Command -ScriptBlock {
Install-WindowsFeature -Name Storage-Replica,FS-FileServer -IncludeManagementTools -Restart
} -ComputerName SVR01,SVR02
#Test partnership
Test-SRTopology `
-SourceComputerName SVR01 `
-SourceVolumeName f: `
-SourceLogVolumeName e: `
-DestinationComputerName SVR02 `
-DestinationVolumeName f: `
-DestinationLogVolumeName e: `
-DurationInMinutes 2 `
-ResultPath C:\temp
#Create partnership
New-SRPartnership -SourceComputerName SVR01 `
-SourceRGName GROUP1 `
-SourceVolumeName f: `
-SourceLogVolumeName e: `
-DestinationComputerName SVR02 `
-DestinationRGName GROUP2 `
-DestinationVolumeName f: `
-DestinationLogVolumeName e:
#View group settings
Get-SRGroup
(Get-SRGroup).replicas
Review group settings
Get-SRPartnership
#Modify replication source
Set-SRPartnership -NewSourceComputerName SVR02 `
-SourceRGName GROUP2 `
-DestinationComputerName SVR01 `
-DestinationRGName GROUP1
#Review group settings
Get-SRPartnership
#To disable replication
Get-SRPartnership | Remove-SRPartnership
Get-SRGroup | Remove-SRGroup
\