An Engineers Notebook

How to use DFSRAdmin

Create a Replication Group
dfsradmin RG New /rgname:”\contoso.localCLIRepFolder” /rgdesc:”Rep Folder”

Set group replication schedule

dfsrAdmin RG Set Schedule full /RGName:”\contoso.localCLIRepFolder”

You can type dfsradmin RG Set Schedule /? for help about schedule options, syntax, and examples.

Add members to the replication group

dfsradmin member new /rgname:”\contoso.localCLIRepFolder” /memname:Boston

While the new members are actually in the replication group, they are not visible in the DFS Management console until they have been associated with a particular replicated folder.

Create a connection object from A to B
dfsradmin conn new /rgname:”\contoso.localCLIRepFolder” /SendMem:DC1 /RecvMem:Boston /ConnEnabled:true /ConnKeywords:”From DC1 to Boston”

Create a connection object from B to A
dfsradmin conn new /rgname:”\contoso.localCLIRepFolder” /SendMem:Boston /RecvMem:DC1 /ConnEnabled:true /ConnKeywords:”From Boston to DC1″

Replicated folders enable you to replicate documents contained within the folders. The following commands create two replicated folders called Office and Docs. These commands also take advantage of filters, which prevents the replication of specified file types.

 To create a replicated folder called Office
dfsradmin RF New /rgName:”\contoso.localCLIRepFolder” /RfName:Office /RfFileFilter:”*.doc,*.csv,*.xls,*.txt” /RfDirFilter:”dirA,dirB”

NO FILTER

dfsradmin RF New /rgName:”\contoso.localCLIRepFolder” /RfName:Software

Repeat for each required folderer in the NameSpace

Setting the Membership properties for the components
This must be done for each folder. THIS COMMAND MAKES THE SERVER THE PRIMARY FOR THE FOLDER.
It also sets the Staging folder (temp dfs cache). One on each server should be made.

dfsradmin Membership Set /RgName:”\contoso.localCLIRepFolder” /RfName:Office /MemName:DC1 /LocalPath:C:dcOffice /MembershipEnabled:true /StagingPath:C:staging /StagingSize:1000 /CDSize:350 /IsPrimary:true

THIS MAKES THE SERVER A NON-PRIMARY REPLICATION GROUP MEMBER.

dfsradmin Membership Set /RgName:”\contoso.localCLIRepFolder” /RfName:Office /MemName:Boston /LocalPath:C:dcOffice /MembershipEnabled:true /StagingPath:C:staging /StagingSize:1000 /CDSize:350 /IsPrimary:false

Leave a Reply

Your email address will not be published.