Skip to content

Commit b69ee06

Browse files
authored
Merge pull request MicrosoftDocs#3108 from robinharwood/roharwoo_storagereplica_updates
Additional Storage Replica parameters
2 parents ec9af8d + cf9aeae commit b69ee06

File tree

4 files changed

+625
-496
lines changed

4 files changed

+625
-496
lines changed

docset/winserver2022-ps/storagereplica/New-SRGroup.md

Lines changed: 108 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
33
external help file: MSFT_WvrAdminTasks.cdxml-help.xml
44
Module Name: StorageReplica
5-
ms.date: 12/20/2016
5+
ms.date: 10/04/2022
66
online version: https://learn.microsoft.com/powershell/module/storagereplica/new-srgroup?view=windowsserver2022-ps&wt.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: New-SRGroup
@@ -16,88 +16,64 @@ Creates a replication group.
1616
## SYNTAX
1717

1818
```
19-
New-SRGroup [[-ComputerName] <String>] [-Name] <String> [-VolumeName] <String[]> [-LogVolumeName] <String>
20-
[[-LogSizeInBytes] <UInt64>] [[-Description] <String>] [-EnableConsistencyGroups] [-EnableEncryption] [-Force]
19+
New-SRGroup [[-ComputerName] <String>] [-Name] <String> [-VolumeName] <String[]>
20+
[-LogVolumeName] <String> [[-LogSizeInBytes] <UInt64>] [[-Description] <String>]
21+
[-EnableConsistencyGroups] [-EnableEncryption] [-EnableCompression] [-Force]
2122
[-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-AsJob] [<CommonParameters>]
2223
```
2324

2425
## DESCRIPTION
25-
The **New-SRGroup** cmdlet creates a replication group.
26-
A replication group contains one or more data volumes and an associated log volume.
27-
A replication group is the container for replication.
26+
27+
The `New-SRGroup` cmdlet creates a replication group. A replication group contains one or more
28+
data volumes and an associated log volume. A replication group is the container for replication.
29+
30+
> [!NOTE]
31+
> The **Compression** parameter is only available in
32+
> [Azure Stack HCI version 22H2](https://azure.microsoft.com/updates/public-preview-azure-stack-hci-version-22h2/) or later,
33+
> and Windows Server Datacenter: Azure Edition beginning with the 2022-09 Cumulative Update for Microsoft
34+
> server operating system version 21H2 for x64-based Systems
35+
> ([KB5017381](https://support.microsoft.com/help/5017381)).
2836
2937
## EXAMPLES
3038

3139
### Example 1: Create a replication group
32-
```
33-
PS C:\>New-SRGroup -ComputerName "SR-SRV05" -Name "ReplicationGroup01" -VolumeName "D:" -LogVolumeName "E:"
34-
AllowVolumeResize : False
35-
AsyncRPO :
36-
ComputerName : SR-SRV05
37-
Description :
38-
Id : 7b44e4bd-3fd8-411d-a6d1-1a6bb704520f
39-
IsAutoFailover :
40-
IsCluster : False
41-
IsEncrypted : False
42-
IsInPartnership : False
43-
IsPrimary :
44-
IsSuspended :
45-
IsWriteConsistency : False
46-
LastInSyncTime :
47-
LogSizeInBytes : 8589934592
48-
LogVolume : e:\
49-
Name : ReplicationGroup01
50-
NumOfReplicas : 1
51-
Partitions : {bc49f059-4f78-464d-b88a-3a092108816e}
52-
Replicas : {MSFT_WvrReplica (PartitionId =
53-
"bc49f059-4f78-464d-b88a-3a092108816e")}
54-
ReplicationMode : Synchronous
55-
ReplicationStatus : NotInPartnership
56-
PSComputerName :
40+
41+
```powershell
42+
New-SRGroup -ComputerName "SR-SRV05" -Name "ReplicationGroup01" -VolumeName "D:" -LogVolumeName "E:"
5743
```
5844

59-
This command creates a replication group for server named SR-SRV05.
60-
The command specifies the replicated volume and the log volume.
61-
Because this command does not specify other parameters, the replication group uses default values.
62-
Replication does not start until you run the New-SRPartnership cmdlet.
45+
This command creates a replication group for server named SR-SRV05. The command specifies the
46+
replicated volume and the log volume. Because this command does not specify other parameters, the
47+
replication group uses default values. Replication will not start until you run the
48+
`New-SRPartnership` cmdlet.
6349

6450
### Example 2: Create a replication group that uses custom properties
65-
```
66-
PS C:\>New-SRGroup -ComputerName "SR-SRV05" -Name "ReplicationGroup02" -VolumeName "D:" -LogVolumeName "E:" -LogSizeInBytes 32GB -EnableEncryption
67-
AllowVolumeResize : False
68-
AsyncRPO :
69-
ComputerName : SR-SRV05
70-
Description :
71-
Id : 1b0962d1-0771-49cb-bde5-7298db488263
72-
IsAutoFailover :
73-
IsCluster : False
74-
IsEncrypted : True
75-
IsInPartnership : False
76-
IsPrimary :
77-
IsSuspended :
78-
IsWriteConsistency : False
79-
LastInSyncTime :
80-
LogSizeInBytes : 34359738368
81-
LogVolume : e:\
82-
Name : ReplicationGroup02
83-
NumOfReplicas : 1
84-
Partitions : {bc49f059-4f78-464d-b88a-3a092108816e}
85-
Replicas : {MSFT_WvrReplica (PartitionId =
86-
"bc49f059-4f78-464d-b88a-3a092108816e")}
87-
ReplicationMode : Synchronous
88-
ReplicationStatus : NotInPartnership
89-
PSComputerName :
51+
52+
```powershell
53+
$Parameters = @{
54+
ComputerName = 'SR-SRV05'
55+
Name = 'ReplicationGroup02'
56+
VolumeName = 'D:'
57+
LogVolumeName = 'E:'
58+
LogSizeInBytes = '32GB'
59+
EnableEncryption = $True
60+
}
61+
New-SRGroup @Parameters
9062
```
9163

92-
This command creates a replication group for server named SR-SRV05.
93-
The command specifies the replicated volume and the log volume.
94-
The command also specifies a custom log size in GB and enables replication traffic encryption.
95-
Replication does not start until you run **New-SRPartnership**.
64+
This command creates a replication group for server named SR-SRV05. The command specifies the
65+
replicated volume and the log volume. The command also specifies a custom log size in GB and enables
66+
replication traffic encryption. Replication will not start until you run `New-SRPartnership`.
67+
68+
This example uses splatting to pass parameter values from the `$Parameters` variable to the command.
69+
Learn more about [Splatting](/powershell/module/microsoft.powershell.core/about/about_splatting).
9670

9771
## PARAMETERS
9872

9973
### -AsJob
100-
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
74+
75+
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to
76+
complete.
10177

10278
```yaml
10379
Type: SwitchParameter
@@ -112,9 +88,11 @@ Accept wildcard characters: False
11288
```
11389
11490
### -CimSession
115-
Runs the cmdlet in a remote session or on a remote computer.
116-
Enter a computer name or a session object, such as the output of a [New-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227967) or [Get-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227966) cmdlet.
117-
The default is the current session on the local computer.
91+
92+
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session
93+
object, such as the output of a [New-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227967)
94+
or [Get-CimSession](https://go.microsoft.com/fwlink/p/?LinkId=227966) cmdlet. The default is the
95+
current session on the local computer.
11896
11997
```yaml
12098
Type: CimSession[]
@@ -129,8 +107,9 @@ Accept wildcard characters: False
129107
```
130108
131109
### -ComputerName
132-
Specifies a single replica host computer NetBIOS name or fully qualified domain name (FQDN) of a computer to belong to the replication group.
133-
The default value is the local computer.
110+
111+
Specifies a single replica host computer NetBIOS name or fully qualified domain name (FQDN) of a
112+
computer to belong to the replication group. The default value is the local computer.
134113
135114
```yaml
136115
Type: String
@@ -145,6 +124,7 @@ Accept wildcard characters: False
145124
```
146125
147126
### -Description
127+
148128
Specifies a description for the replication group.
149129
150130
```yaml
@@ -159,10 +139,31 @@ Accept pipeline input: False
159139
Accept wildcard characters: False
160140
```
161141
142+
### -EnableCompression
143+
144+
Indicates that this Storage Replica group should use SMB compression for data transfer. This
145+
parameter only applies to
146+
[Azure Stack HCI version 22H2](https://azure.microsoft.com/updates/public-preview-azure-stack-hci-version-22h2/)
147+
or later, and Windows Server Datacenter: Azure Edition beginning with the 2022-09 Cumulative
148+
Update for Microsoft server operating system version 21H2 for x64-based Systems
149+
([KB5017381](https://support.microsoft.com/help/5017381)).
150+
```yaml
151+
Type: SwitchParameter
152+
Parameter Sets: (All)
153+
Aliases: ECMP
154+
155+
Required: False
156+
Position: 9
157+
Default value: None
158+
Accept pipeline input: False
159+
Accept wildcard characters: False
160+
```
161+
162162
### -EnableConsistencyGroups
163-
Indicates that consistency groups are enabled for the replication group that contains multiple volumes.
164-
Consistency groups provide write ordering.
165-
This can be important, for example, for replication of application data on multiple volumes.
163+
164+
Indicates that consistency groups are enabled for the replication group that contains multiple
165+
volumes. Consistency groups provide write ordering. This can be important, for example, for
166+
replication of application data on multiple volumes.
166167
167168
If you enable consistency groups, it may decrease replication and write Input/Output performance.
168169
@@ -179,9 +180,10 @@ Accept wildcard characters: False
179180
```
180181
181182
### -EnableEncryption
182-
Indicates that this partnership should encrypt connection by using SMB AES-128-GCM.
183-
Enabling encryption can protect Storage Replica block transfers from man-in-the-middle interception or reading.
184-
Enabling encryption decreases performance.
183+
184+
Indicates that this partnership should encrypt connection by using SMB AES-128-GCM. Enabling
185+
encryption can protect Storage Replica block transfers from man-in-the-middle interception or
186+
reading. Enabling encryption decreases performance.
185187
186188
```yaml
187189
Type: SwitchParameter
@@ -196,6 +198,7 @@ Accept wildcard characters: False
196198
```
197199
198200
### -Force
201+
199202
Forces the command to run without asking for user confirmation.
200203
201204
```yaml
@@ -211,11 +214,13 @@ Accept wildcard characters: False
211214
```
212215
213216
### -LogSizeInBytes
214-
Specifies the aggregate size of log files on each server in the replication group for the volumes that are associated with this replication group.
215-
The minimum size 512MB.
216-
You can specify a value by using the Windows PowerShell byte conversion capability, such as 4GB or 3200MB.
217217
218-
A value that is too small may cause decreased replication performance or increased recovery time after an interruption between computers.
218+
Specifies the aggregate size of log files on each server in the replication group for the volumes
219+
that are associated with this replication group. The minimum size 512MB. You can specify a value by
220+
using the Windows PowerShell byte conversion capability, such as 4GB or 3200MB.
221+
222+
A value that is too small may cause decreased replication performance or increased recovery time
223+
after an interruption between computers.
219224
220225
```yaml
221226
Type: UInt64
@@ -230,10 +235,10 @@ Accept wildcard characters: False
230235
```
231236
232237
### -LogVolumeName
233-
Specifies a drive letter, mount point path, or volume GUID where Storage Replication creates destination replication logs.
234-
The value must contain an NTFS-formatted volume or ReFS-formatted volume.
235-
The path must exist.
236-
The path cannot be a mapped drive or UNC path.
238+
239+
Specifies a drive letter, mount point path, or volume GUID where Storage Replication creates
240+
destination replication logs. The value must contain an NTFS-formatted volume or ReFS-formatted
241+
volume. The path must exist. The path cannot be a mapped drive or UNC path.
237242
238243
Storage Replication creates logs in the System Volume Information folder.
239244
@@ -250,6 +255,7 @@ Accept wildcard characters: False
250255
```
251256
252257
### -Name
258+
253259
Specifies a name for the replication group.
254260
255261
```yaml
@@ -265,9 +271,12 @@ Accept wildcard characters: False
265271
```
266272
267273
### -ThrottleLimit
268-
Specifies the maximum number of concurrent operations that can be established to run the cmdlet.
269-
If this parameter is omitted or a value of `0` is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer.
270-
The throttle limit applies only to the current cmdlet, not to the session or to the computer.
274+
275+
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If
276+
this parameter is omitted or a value of `0` is entered, then Windows PowerShell® calculates an
277+
optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the
278+
computer. The throttle limit applies only to the current cmdlet, not to the session or to the
279+
computer.
271280

272281
```yaml
273282
Type: Int32
@@ -282,16 +291,15 @@ Accept wildcard characters: False
282291
```
283292

284293
### -VolumeName
285-
Specifies an array of drive letters or mount point paths for the replica.
286-
The volumes must exist.
294+
295+
Specifies an array of drive letters or mount point paths for the replica. The volumes must exist.
287296
The volumes cannot be mapped drives or UNC paths.
288297

289-
This is an ordered list.
290-
The order of volumes determines the order of replication.
291-
For more information, see the *DestinationVolumeName* parameter of the New-SRPartnership cmdlet.
298+
This is an ordered list. The order of volumes determines the order of replication. For more
299+
information, see the **DestinationVolumeName** parameter of the `New-SRPartnership` cmdlet.
292300

293-
We do not recommend replicating different drive letters or mount point paths.
294-
The practice can cause application failures because of stored settings after a failover occurs.
301+
We do not recommend replicating different drive letters or mount point paths. The practice can cause
302+
application failures because of stored settings after a failover occurs.
295303

296304
```yaml
297305
Type: String[]
@@ -306,13 +314,17 @@ Accept wildcard characters: False
306314
```
307315

308316
### CommonParameters
309-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
317+
318+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
319+
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
320+
-WarningAction, and -WarningVariable. For more information, see
321+
[about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
310322

311323
## INPUTS
312324

313325
## OUTPUTS
314326

315-
### replicationgroup
327+
### Microsoft.Management.Infrastructure.CimInstance
316328

317329
## NOTES
318330

@@ -329,4 +341,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
329341
[Suspend-SRGroup](./Suspend-SRGroup.md)
330342

331343
[Sync-SRGroup](./Sync-SRGroup.md)
332-

0 commit comments

Comments
 (0)