Add-DfsrConnection

Add-DfsrConnection

Creates a connection between members of a replication group.

구문

Parameter Set: Default
Add-DfsrConnection [-GroupName] <String[]> [-SourceComputerName] <String> [-DestinationComputerName] <String> [[-DisableConnection]] [[-DisableRDC]] [[-DisableCrossFileRDC]] [[-Description] <String> ] [[-MinimumRDCFileSizeInKB] <Int64> ] [[-CreateOneWay]] [[-DomainName] <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

자세한 설명

The Add-DfsrConnection cmdlet creates a connection between members of a replication group.

DFS Replication connections are the logical partnerships between members in a replication group. The DFS Replication service uses the Remote Procedure Call (RPC) protocol to communicate between servers. You must create a connection between a pair of computers before the DFS Replication service can initiate replication. You should always create connections bidirectionally between two servers, even if you are using read-only replication. The exception to this case is if you create a ring topology between three or more servers, where all members transitively replicate to all partners, and where all servers are hosting only writable replicated folders.

This cmdlet does not support modifying connection bandwidth or schedules, which typically do not require changes.

매개 변수

-CreateOneWay

Specifies that the DFSR service does not create a matching connection in the opposite direction between the two computers.

You do not typically need to specify this parameter. DFS Replication requires a fully-connected replication topology, which means that all servers have both an inbound and outbound connection between each of its direct partners, or through transitive replication. This is required even when you specify read-only replication by using the Set-DfsrMembership cmdlet and setting the ReadOnly parameter to $True.

별칭

없음

필수 여부

false

위치

9

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Description<String>

Specifies a description for the connection.

별칭

없음

필수 여부

false

위치

7

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-DestinationComputerName<String>

Specifies the name of the receiving computer. A receiving computer is also called an inbound or downstream computer.

별칭

ReceivingMember,RMem

필수 여부

true

위치

3

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-DisableConnection

Specifies that the DFSR service disables the connection.

You do not typically need to disable a connection. Specify this parameter to temporarily pause replication. You can also use the Suspend-DfsReplicationGroup cmdlet to halt replication between computers. You must enable a connection between the computers before the DFS Replication service can initiate replication.

Important: Specify this parameter instead of disabling a computer's membership in the replication group by using the Set-DfsrMembership cmdlet. Disabling and enabling a computer's membership will cause non-authoritative inbound replication.

별칭

없음

필수 여부

false

위치

4

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-DisableCrossFileRDC

Indicates that the DFSR service disables the cross-file similarity Remote Differential Compression (RDC) algorithm on this connection.

Cross-file RDC uses up to five existing previously replicated files on a volume to seed a new replicating file. Applying cross-file RDC over very low-bandwidth network connections with files that are very similar results in very large bandwidth savings and potentially large time savings. When you use cross-file RDC on very high-bandwidth network connections, cross-file RDC may add too much local processing time and negatively affect performance. In extremely large datasets (millions of files on a volume with a great deal of similarity), cross-file RDC may also negatively affect CPU and disk utilization. Consider disabling cross-file RDC during initial synchronization when you replicate over LANs and very high performance WANs. This setting is only supported on Windows Server 2012 R2 and later.

별칭

없음

필수 여부

false

위치

6

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-DisableRDC

Indicates that the DFS Replication service creates the connection with Remote Differential Compression (RDC) disabled.

You do not typically need to specify this parameter when you use lower bandwidth, higher latency connections. Consider specifying this parameter if the connection is over a LAN or very high performance WAN connection. By default, RDC is enabled on DFS Replication connections.

별칭

없음

필수 여부

false

위치

5

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-DomainName<String>

Specifies the NetBIOS name or fully qualified domain name (FQDN) for the Active Directory Domain Service (AD DS) domain that contains the replication group. If you do not specify this parameter, the cmdlet uses the domain of the current user.

별칭

없음

필수 여부

false

위치

101

기본값

[Current Domain]

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-GroupName<String[]>

Specifies an array of names of replication groups. You can use a comma separated list and the wildcard character (*).

별칭

RG,RgName

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

true

-MinimumRDCFileSizeInKB<Int64>

Specifies the file size threshold, in kilobytes, for RDC to apply.

You do not typically need to specify this parameter when you use lower bandwidth/higher latency connections. Consider specifying this parameter only if the connection is over a LAN or a very high performance WAN connection. By default, any files equal to or greater than 64KB are chunked by RDC.

별칭

없음

필수 여부

false

위치

8

기본값

64

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-SourceComputerName<String>

Specifies the name of the sending computer. A sending computer is also called an outbound or upstream computer.

별칭

SendingMember,SMem

필수 여부

true

위치

2

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-Confirm

cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-WhatIf

cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.

필수 여부

false

위치

named

기본값

false

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • Microsoft.DistributedFileSystemReplication.DfsrConnection

예제

Example 1: Create a bidirectional connection between members of a replication group

This command creates a bidirectional replication connection between the computer named SRV01 and the computer named SRV02 in the replication group named RG24.

PS C:\> Add-DfsrConnection -GroupName "RG24" -SourceComputerName "SRV01" -DestinationComputerName "SRV02"

Example 2: Create a one-way connection between members of a replication group

This command creates a one-way replication connection from computer named SRV02 to the computer named SRV01 in the replication group named RG24. To create a one-way replication connection, you must run the cmdlet once in each direction between members of the replication group. DFS Replication supports one-way connections only for a ring topology configuration on three or more servers.

PS C:\> Add-DfsrConnection -GroupName "RG24" -SourceComputerName SRV02 -DestinationComputerName "SRV01" -CreateOneWay

Example 3: Create a data distribution replication topology

This example creates a hub and spoke data distribution replication topology.

The first command uses the New-DfsReplicationGroup cmdlet to create a replication group object named Branch Office 1, and passes the object to the New-DfsReplicatedFolder cmdlet by using the pipe operator. The New-DfsReplicatedFolder cmdlet creates a replication folder object named Data Distribution 1, and passes the object to the Add-DfsrMember cmdlet by using the pipe operator. The Add-DfsrMember cmdlet adds the computers named SRV01, SRV02, and SRV03 to the replication group named Branch Office 1.

PS C:\> New-DfsReplicationGroup -GroupName "Branch Office 1" | New-DfsReplicatedFolder -FolderName "Data Distribution 1" | Add-DfsrMember -ComputerName "SRV01","SRV02","SRV03" | Format-Table dnsname,groupname -auto -wrap

The second command creates a bidirectional replication connection between the computer named SRV01 and the computer named SRV02 in the replication group named Branch Office 1.

PS C:\> Add-DfsrConnection -GroupName "Branch Office 1" -SourceComputerName SRV01 -DestinationComputerName SRV02 | Format-Table *name -wrap -auto

The third command creates a bidirectional replication connection between the computer named SRV01 and the computer named SRV03 in the replication group named Branch Office 1.

PS C:\> Add-DfsrConnection -GroupName "Branch Office 1" -SourceComputerName SRV01 -DestinationComputerName SRV03 | Format-Table *name -wrap -auto

The fourth command uses the Set-DfsrMembership cmdlet to configure membership settings for the primary member of the replication group named Branch Office 1. The command specifies that the computer named SRV01 is the primary member of the group. The command sets an appropriate quota size of the staging folder instead of the lower default.

PS C:\> Set-DfsrMembership -GroupName "Branch Office 1" -FolderName "Data Distribution 1" -ContentPath c:\rf1 -ComputerName SRV01 -PrimaryMember $True -StagingPathQuotaInMB 16384 -Force | Format-Table *name,*path,primary* -auto -wrap

The last command uses the Set-DfsrMembership cmdlet to configure membership settings for the members of the replication group named Branch Office 1. The command specifies that the computers named SRV02 and SRV03 are members of the group. The command sets an appropriate quota size of the staging folder instead of the lower default.

PS C:\> Set-DfsrMembership -GroupName "Branch Office 1" -FolderName "Data Distribution 1" -ContentPath c:\rf1 -ComputerName SRV02,SRV03 -StagingPathQuotaInMB 16384 -Force | Format-Table *name,*path,primary* -auto -wrap

관련 항목

Get-DfsrConnection

Set-DfsrConnection

Remove-DfsrConnection