DFS - adding new dfs namespaces and creating replication groups

sembi 21 Reputation points
2020-10-28T09:04:32.627+00:00

Hello,

i have problem with dfs - i am creating new replication groups, because i need to replicate data also on second storage. but whole process is so slow. see this errors:

EventID : 4112
MachineName : Aserver.domain.com
Data : {}
Index : 57899
Category : (0)
CategoryNumber : 0
EntryType : Information
Message : The DFS Replication service initialized the replicated folder at local path E:\DFS\8B729E513D1448B9B3633F8C2A1622FF.
This member is the designated primary member for this replicated folder.

                 Additional Information:

                 Replicated Folder Name: Car

                 Replicated Folder ID: 152208E9-30CE-4C66-A7CF-F2230D408586

                 Replication Group Name: domain.com\dfs\team\bus\car_1

                 Replication Group ID: 227CFC29-C53A-4F5A-8B15-8BA2C42CF932

                 Member ID: E27CE16A-5B07-4E97-8E1C-E68FBF8285ED

Source : DFSR
ReplacementStrings : {152208E9-30CE-4C66-A7CF-F2230D408586, E:\DFS\8B729E513D1448B9B3633F8C2A1622FF, Car,
domain.com\dfs\team\bus\car_1...}
InstanceId : 1073745936
TimeGenerated : 10/24/2020 6:25:01 PM
TimeWritten : 10/24/2020 6:25:01 PM
UserName :
Site :
Container :

EventID : 6404
MachineName : Aserver.domain.com
Data : {}
Index : 57277
Category : (0)
CategoryNumber : 0
EntryType : Error
Message : The DFS Replication service failed to replicate the replicated folder at local
path because the local path is not the fully qualified path name of an existing,
accessible local folder.

                 Additional Information:

                 Replicated Folder Name: Car

                 Replicated Folder ID: 152208E9-30CE-4C66-A7CF-F2230D408586

                 Replication Group Name: domain.com\dfs\team\bus\car_1

                 Replication Group ID: 227CFC29-C53A-4F5A-8B15-8BA2C42CF932

                 Member ID: E27CE16A-5B07-4E97-8E1C-E68FBF8285ED

Source : DFSR
ReplacementStrings : {152208E9-30CE-4C66-A7CF-F2230D408586, , Car, domain.com\dfs\team\bus\car_1...}
InstanceId : 3221231876
TimeGenerated : 10/24/2020 5:49:24 PM
TimeWritten : 10/24/2020 5:49:24 PM
UserName :
Site :
Container :

EventID : 6404
MachineName : Aserver.domain.com
Data : {}
Index : 57276
Category : (0)
CategoryNumber : 0
EntryType : Error
Message : The DFS Replication service failed to replicate the replicated folder at local
path because the local path is not the fully qualified path name of an existing,
accessible local folder.

                 Additional Information:

                 Replicated Folder Name: Car

                 Replicated Folder ID: 152208E9-30CE-4C66-A7CF-F2230D408586

                 Replication Group Name: domain.com\dfs\team\bus\car_1

                 Replication Group ID: 227CFC29-C53A-4F5A-8B15-8BA2C42CF932

                 Member ID: E27CE16A-5B07-4E97-8E1C-E68FBF8285ED

Source : DFSR
ReplacementStrings : {152208E9-30CE-4C66-A7CF-F2230D408586, , Car, domain.com\dfs\team\bus\car_1...}
InstanceId : 3221231876
TimeGenerated : 10/24/2020 4:47:17 PM
TimeWritten : 10/24/2020 4:47:17 PM
UserName :
Site :
Container :

Another problem is, that i am not able to check backlog:

Get-DfsrBacklog : Could not retrieve the backlog information. Replication group: "" Replicated folder: "" Source computer: Aserver.domain.com Destination computer: Bserver.domain.com Confirm
that you are running in an elevated Windows PowerShell session and are a member of the local Administrators group on the destination computer. The destination computer must also be
accessible over the network, and have the DFSR service running. This cmdlet does not support WMI calls for the following or earlier operating systems: Windows Server 2012. Details:
The WinRM client received an HTTP status code of 504 from the remote WS-Management service.
At line:1 char:1

  • Get-DfsrBacklog -SourceComputerName Aserver -DestinationComputer ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : ProtocolError: (Aserver:String) [Get-DfsrBacklog], DfsrException
  • FullyQualifiedErrorId : Get-DfsrBacklog.CimException,Microsoft.DistributedFileSystemReplication.Commands.GetDfsrBacklogCommand

Any idea where shout be the problem? Both servers are in sam VLAN, fw is off, antivirus also off. Replication is working, but whole process take too long. Thanks

Windows for business Windows Server User experience Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Leon Laude 86,026 Reputation points
    2020-10-28T09:30:27.7+00:00

    Hi @sembi ,

    To solve the "The DFS Replication service failed to replicate the replicated folder at local path because the local path is not the fully qualified path name of an existing, accessible local folder."

    Try the following:

    Make sure you show hidden files and folders and then delete the "DfsrPrivate" folder located in the root of the folder being replicated via DFS-R and then restart the DFS-R service.

    As for the Get-DfsrBacklog PowerShell cmdlet, read what the error says, either you are not running it as an administrator, or your destination computer is not reachable.

    Get-DfsrBacklog : Could not retrieve the backlog information. Replication group: "" Replicated folder: "" Source computer: Aserver.domain.com Destination computer: Bserver.domain.com Confirm that you are running in an elevated Windows PowerShell session and are a member of the local Administrators group on the destination computer. The destination computer must also beaccessible over the network, and have the DFSR service running.

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon


  2. sembi 21 Reputation points
    2020-10-28T17:49:19.49+00:00

    Thank you @Leon Laude
    you right - replication is ok, it take some time. But I have problem with creation. Look, this is my script:

    $C = Import-Csv -Path "C:\temp\DFS_create.csv"

    foreach ($bb in $C){
    New-DfsnFolderTarget -Path "$($bb.dft)" -TargetPath "$($bb.tp)" -ReferralPriorityClass SiteCostNormal -State Offline
    New-DfsReplicationGroup -GroupName "$($bb.conn)" | New-DfsReplicatedFolder -FolderName "$($bb.fl)" -DfsnPath $($bb.dft) | Add-DfsrMember -ComputerName "serverA","serverB" | Format-Table dnsname,groupname -auto -wrap
    Add-DfsrConnection -GroupName "$($bb.conn)" -SourceComputerName "smd1mgdfs02p" -DestinationComputerName "serverB" | Format-Table *name -wrap -auto
    Set-DfsrMembership -GroupName "$($bb.conn)" -FolderName "$($bb.fl)" -ContentPath $($bb.pth) -ComputerName "serverA" -PrimaryMember $true -StagingPathQuotaInMB 20480 -Force | Format-Table *name,path,primary -auto -wrap
    Set-DfsrMembership -GroupName "$($bb.conn)" -FolderName "$($bb.fl)" -ContentPath $($bb.pth) -ComputerName "serverB" -StagingPathQuotaInMB 20480 -Force | Format-Table *name,path,primary -auto -wrap

    }

    So when I start this script it take about 3hours when it add server to namespaces and create new replication group.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.