Admin Tip #310: Directory Replication |
Hits: Failed to execute CGI : Win32 Error Code = 3
|
The Replication service is not enabled by default.
Data placed in an export server's export directory will be duplicated (replicated) to all import servers' import directories. NT's default for the export and import directories are:
\Winnt\System32\Repl\Export\
\Winnt\System32\Repl\Import\
These directories are under the control of the Replication service. The service performs whatever actions are necessary to ensure that the import directory tree matches the export directory tree. For example, files deleted from the export directory tree will be removed from the import directory. Only subdirectories under the export directory will be replicated, not files in the export directory itself, that is the Export root directory, \Winnt\System32\Repl\Export\.
A standard default standard directory in the replication root is named "Scripts". This is where logon scripts are placed. The NetLogon share points to the \Import\Scripts directory. This makes defining user profiles easy by allowing the general share name to proceed the script name, such as "NETLOGON\wmaples.bat."
To get replication working:
Keys that control windows nt domain controller directory replication.
How often export server looks for changes in replicator folders:
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Replicator\Parameters
Type: REG_DWORD
Name: Interval
Value: value in minutes
min=1, Default=2, maximum=60
How long export folder must remain unmodified before replication to import servers:
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Replicator\Parameters
Type: REG_DWORD
Name: GuardTime
Value: value in minutes
min=0, Default=2, maximum= 1/2 value of Interval
Number of times import server repeats the change notice after initial announcement:
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Replicator\Parameters
Type: REG_DWORD
Name: Pulse
Value: # of times
Default=2 times. Max time import servers wait before requesting an update:
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\Replicator\Parameters
Type: REG_DWORD
Name: Random
Value: # of seconds
Default=60 seconds, legal range 1 - 120 seconds.
Some gotcha!s:
Replication will halt if an application is accessing or viewing the export or import directories. The Replication service can not know if files are being changed. It is designed to wait until files and directories are inactive before replicating.
Replication will only occur between computers with system clocks set within 59 minutes of each other. Lets say you set two servers to the correct time and date. They may be side-by-side. Should you not have set the time zone, and they have different time zones, then replication will fail because they will have times set > 59 minutes difference. Everyone checks date/time on servers. Fair number don't check timezone setting.
Although Microsoft documentation stated that replication service was of general utility, only use it for built in NT functionality. Don't try to replicate data or word processor files or such. It will clog your network. To replicate those kinds of files, create scripts and use xcopy or scopy driven by the scheduler.
Don't get confused. Export to the import directory on your export server.
If you can only buy one book. Its in its 7th edition.