Configure replication in PowerShell
Contents
1. On the source server, open a PowerShell command prompt in Administrator and enter the following command:
New-SRPartnership -SourceComputerName LAB-FIC1 -SourceRGName rg01 -SourceVolumeName D: -SourceLogVolumeName L: -DestinationComputerName LAB-FIC1-SR -DestinationRGName rg02 -DestinationVolumeName D: -DestinationLogVolumeName L: -LogSizeInBytes 2GB
Explanation:
-SourceComputerName | Netbios name of the source server |
-SourceRGName | Name of the source replication group |
-SourceVolumeName | Volume (s) to replicate |
-SourceLogVolumeName | Volume of the source logs |
-DestinationComputerName | Netbios name of the destination server |
-DestinationRGName | Destination replication group name |
-DestinationVolumeName | Replica Volume (s) |
-DestinationLogVolumeName | Destination logs volume |
-LogSizeInBytes | Log size (default: 8GB) |
Result of the command:
DestinationComputerName : LAB-FIC1-SR
DestinationRGName : rg02
Id : 2856278e-643f-49c7-9842-b25aabb5a70e
SourceComputerName : LAB-FIC1
SourceRGName : rg01
PSComputerName :
2. Go to the destination server, the replicated drive should no longer be available in the interface.
