Win2003 file synchronization configuration scheme using dfs of distributed file system under load balancing

  • 2020-05-09 19:37:45
  • OfStack

1. The server to be synchronized is recommended to be windows2003 sp2 or above.

2. Make sure the computer you want to synchronize joins the domain and logs in using the same domain account (preferably administrator). The firewall is not enabled. (if you are not in the domain, set the password of the computer's aministrator account to the same password, and add the computer name ip to the hosts file of each machine so that they can parse each other's names)

3. Open Distributed File System service and File Replication service, and set it to run automatically.

4. d:\dfs (Shared file directory)

5. Open the distributed file system component on one of the servers (assuming the host). (under management tools)

6. From the menu on the left, right-click "distributed file system", select "new root directory", and select "domain root directory".

Select 1 domain, next step, type the name of the primary server, which can be the name of the machine, next step, enter the name of the root directory, and select the Shared folder (create 1 Shared folder, d:\dfs).

7. Right-click on the left list to create the root directory, select "new root target", select the Shared folder of another 1 member server (computername\d$\dsf), and continue to complete (make sure the two Shared folders have sufficient permissions).

8. Right-click on the list on the left to create the root directory, select "configuration copy," select "interleaving" for the topology, and continue with the configuration.

9. Wait a moment and you should be ready for two-way instant synchronization.

To add a new member server, repeat the above 7-9 steps. The new server may not be synchronized immediately after the addition.

Open the dfs administration window and right-click the dfs root directory a to display the copy information. If you find that the "file replication" status of the newly added server on the right is disabled, right-click on the server and select enable replication. Then restart the server, and you should be able to synchronize once the restart is complete.

Note: temporary folders are automatically generated to support replication, depending on which configuration was selected.

In addition, if a large number of files are added or deleted manually after synchronization is turned on, the system will generate a large number of garbage files in the synchronized directory, which can be deleted. It is recommended to turn off synchronization when manual maintenance of a large number of files is performed.

Note: it is best to add all the servers, and then to configure replication, otherwise after the configuration of replication, the new server is always inexplicable problems.

In the process of practice, it was found that if three servers had been configured, with DC as the host and two members as the assistant, and one more server was added, it was found that the newly added servers could not be replicated for unknown reasons. After testing, if you want to add a server, it is recommended to kick the non-primary server off the site (i.e., do not receive dynamic write files), keep only the primary server, and then stop the replication service. Add the new server to the dfs list. Start replication. Then restart all non-primary servers.

Related articles: