The Set-SRGroup cmdlet modifies settings of an existing replication group. A replication group
contains one or more data volumes and an associated log volume. A replication group is the
container for replication.
This command lets you resize volumes in the replication group named ReplicationGroup01 on the
local computer. By default, the Storage Replica driver prevents volume resizes in order to protect
from block mismatches. To grow a volume, enable the allow volume resize mode on both resource
groups, increase the size of the volume on both servers to be the same size, then disable this
mode.
Parameters
-AddVolumeName
Specifies an array of drive letters or mount point paths of partitions for the replica to add to the
group. The volumes must exist. The volumes cannot be mapped drives or UNC paths.
This is an ordered list. The order of volumes determines the order of replication. For more
information, see the DestinationVolumeName parameter of the New-SRPartnership cmdlet.
Parameter properties
Type:
String[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
AV
Parameter sets
AddVolumes
Position:
2
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-AllowVolumeResize
Indicates that the replication group enables resizing of volumes.
Parameter properties
Type:
Boolean
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
VR
Parameter sets
ModifyConfig
Position:
10
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-AsJob
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to
complete.
Parameter properties
Type:
SwitchParameter
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-CimSession
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session
object, such as the output of a New-CimSession or
Get-CimSession cmdlet. The default is the current
session on the local computer.
Parameter properties
Type:
CimSession[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
Session
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Compression
Indicates that this Storage Replica group should use SMB compression for data transfer.
Parameter properties
Type:
Boolean
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
CMP
Parameter sets
ModifyConfig
Position:
10
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-ComputerName
Specifies a single replica host computer NetBIOS name or fully qualified domain name (FQDN) of a
computer. The default value is the local computer.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
CN
Parameter sets
(All)
Position:
0
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type:
SwitchParameter
Default value:
False
Supports wildcards:
False
DontShow:
False
Aliases:
cf
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Description
Specifies a description for the replication group.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
D
Parameter sets
ModifyConfig
Position:
6
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Encryption
Indicates this partnership should encrypt connections by using SMB AES-128-GCM. Enabling encryption
can protect Storage Replica block transfers from man-in-the-middle interception or reading. Enabling
encryption decreases performance.
Parameter properties
Type:
Boolean
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
ENC
Parameter sets
ModifyConfig
Position:
9
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-Force
Forces the command to run without asking for user confirmation.
Parameter properties
Type:
SwitchParameter
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
F
Parameter sets
(All)
Position:
100
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-LogSizeInBytes
Specifies the aggregate size of log files on each server in the replication group for the volumes
that are associated with this replication group. The minimum size 512MB. You can specify a value by
using the Windows PowerShell byte conversion capability, such as 4GB or 3200MB.
A value that is too small may cause decreased replication performance or increased recovery time
after an interruption between computers.
Parameter properties
Type:
UInt64
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
LS
Parameter sets
ModifyConfig
Position:
4
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-Name
Specifies the name of the replication group to modify.
Parameter properties
Type:
String
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
N
Parameter sets
(All)
Position:
1
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-RemoveVolumeName
Specifies an array of drive letters or mount point paths of partitions for the replica to remove
from the group. The volumes must exist. The volumes cannot be mapped drives or UNC paths.
This is an ordered list. The order of volumes determines the order of replication. For more
information, see the DestinationVolumeName parameter of the New-SRPartnership cmdlet.
If there is a partnership already configured, before you change this replication group, you must
remove the partnership by using the Set-SRPartnership cmdlet. Then you must remove the same
volumes from the previously partnered replication group.
Parameter properties
Type:
String[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Aliases:
RVN
Parameter sets
RemoveVolumes
Position:
3
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-ReplicationMode
Specifies the desired mode of replication for this source and destination pair. The acceptable
values for this parameter are:
Synchronous or 1. The synchronous mode requires all writes to commit on the destination server and
commit on the source server, which guarantees data integrity between computers.
Asynchronous or 2. The asynchronous mode writes to the source server without waiting for the
source server, which allows for replication over high latency, geographic networks.
The default value is synchronous. The default asynchronous recovery point alert time is 5 minutes.
You can modify it by using the Set-SRPartnership cmdlet. The alert time has no effect on
replication behavior, only on reporting.
Parameter properties
Type:
ReplicationMode
Default value:
None
Accepted values:
Synchronous, Asynchronous
Supports wildcards:
False
DontShow:
False
Aliases:
RM
Parameter sets
ModifyConfig
Position:
8
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
True
Value from remaining arguments:
False
-ThrottleLimit
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. 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. The throttle limit applies only to the current cmdlet, not to the session or to the
computer.
Parameter properties
Type:
Int32
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Parameter properties
Type:
SwitchParameter
Default value:
False
Supports wildcards:
False
DontShow:
False
Aliases:
wi
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.