Lesson 3: Maintaining File Replication During the Migration

In the previous lesson, you saw that when a Windows NT domain controller is upgraded to Windows 2000, it no longer provides the Directory Replicator Service. In this lesson, you'll learn strategies to employ to ensure that replication of files such as logon scripts is maintained during the upgrade.


After this lesson, you will be able to

  • Decide the policy to adopt with regard to replication in an installation.
  • Understand how to synchronize files and folders between Windows 2000 and Windows NT.

Estimated lesson time: 30 minutes


File replication is often used in Windows NT domains to ensure that copies of files such as logon scripts are kept up-to-date from a single master copy. Replication is performed from an export server (usually the PDC) to the BDCs. The Directory Replicator Service (also known as the LAN Manager Replication Service or LMRepl) performs this replication, and its parameters are set using the Server Manager administrative tool in Windows NT. If necessary, prior to upgrading servers in the domain, consider moving all file replication to a Windows NT server in the domain and upgrade this server last. This server can be a member server as well as a domain controller. Moving all replication to a single export server retains the replication facility, but you must remember to reconfigure all the import clients to talk to this new export server if you have hard-coded all the settings.

When a Windows NT server is upgraded to Windows 2000, the LAN Manager Replication Service is no longer used to perform replication. Instead, the File Replication service of Windows 2000 Active Directory ensures that the Sysvol directory is automatically replicated among all Windows 2000 servers in the domain. See Figure 6.23 for a diagram of the differences between file replication in Windows NT and in Windows 2000.

click to view at full size.

Figure 6.23 Windows NT file replication compared to Windows 2000 file replication

During the upgrade, you'll have to decide how to manage the lack of a Windows NT replication service. There are two possible solutions:

  1. Impose a moratorium on changes to the replicated items until all the servers have been upgraded. Barring changes for a short time period should be possible for small organizations, and it's the simplest and best solution. Many companies find that these files don't change often anyway, and you might decide to remove file replication totally.
  2. Once you've completed the upgrade, decide where changes to files such as logon scripts will take place and decide how you'll move the files to the other operating system. You can synchronize the two replication systems in one of three ways. Depending on where the changes are to be made, you can
    • Schedule a copy of the files from a Sysvol Netlogon folder of a designated Windows 2000 domain controller to the Repl$ share of the Windows NT export server.
    • Schedule a copy of the files from a Windows 2000 Netlogon folder to the Netlogon folders of the remaining Windows NT import servers.
    • Schedule a copy of the files from a Windows NT export server to a Windows 2000 FRS volume if you have mixed Windows NT and Windows 2000 clients being validated by both Windows NT and Windows 2000 servers.

    If you choose to synchronize the file replication manually, you can use a Microsoft Windows 2000 Server Resource Kit script called Lbridge.cmd. Consider doing this only if you can't impose a moratorium on replication during the migration and if you frequently update the contents of the Netlogon share. If your logon scripts are rarely changed, you could simply run a modified version of the Lbridge.cmd script to manually copy the logon scripts whenever they change.

    If file and folder replication is required during the migration process, you'll need to perform several actions when integrating the Windows 2000 and Windows NT systems.

    When copying files to a designated Windows NT export server as illustrated in Figure 6.24, you might need to customize the Lbridge.cmd script file and schedule it to run at regular intervals according to how often changes are made.

click to view at full size.

Figure 6.24 Synchronizing replication systems by using a Windows NT export server

Note that in Figure 6.24, the replication is between two different domains. If the domains were running in mixed mode so that you had both Windows 2000 servers and Windows NT servers operating in the same domain, you would configure the Lbridge.cmd script differently. In a mixed scenario, you would also need to customize the Lbridge.cmd script to copy files from the Windows NT export servers to the Netlogon share of a Windows 2000 system. Other general tasks to perform include the following:

  • Decide whether to consolidate your export services to the server that will be the last one to be migrated.
  • If you have consolidated Windows NT export services to one export server, update your import servers.
  • Base your replication strategy on how often you'll need a replication to occur.
  • Give the appropriate person running the Lbridge.cmd script permission to access the Repl$ folder or the Netlogon folders of the Windows NT export server and the Windows 2000 Sysvol folder.

Figure 6.25 shows the second option of integrating the Windows 2000 FRS with the Netlogon shares of other domain controllers. In this case, you should simply ensure that the service or user performing the copy has the necessary permissions to the Netlogon folder on the Windows 2000 FRS volumes and the Windows NT systems.

click to view at full size.

Figure 6.25 Synchronizing replication systems via a Windows NT Netlogon share

The Lbridge.cmd script and its documentation file Lbridge.doc is supplied in the Tools folder you copied to MIGKIT1 from the Supplemental Course Materials CD-ROM. This script enables you to copy files from Windows 2000 to Windows NT or from Windows NT to Windows 2000, depending on which files need updating. It does this by working in conjunction with Xcopy or Robocopy commands. Robocopy is a "reliable" copy utility included with the Microsoft Windows 2000 Server Resource Kit and the Microsoft Windows NT Server Resource Kit. You can edit the Lbridge script to call either the Robocopy or the Xcopy program by reading the remarks included in the script file.

Practice: Using Lbridge.cmd

In this practice, you'll use a customized version of the Lbridge.cmd script file called Migbridge.bat to replicate scripts from the upgraded Windows 2000 domain controller MIGKIT1 to the export folder of the Windows NT BDC MIGKIT2. Finally, in this practice, you'll schedule this script to run at regular intervals.

IMPORTANT


Before starting this practice, be sure that PC1 is running and was upgraded to Windows 2000 in the first practice of this chapter. Also be sure that MIGKIT2, the BDC of the Windows NT MIGKIT domain, is running. Make sure the file Migbridge.bat is present in the C:\Tools folder of MIGKIT1.

For Migbridge.bat to run correctly, you must allow administrators in the domain to have access to the export folder on MIGKIT2.

To give the Administrators group access to the export folder

  1. Log on to MIGKIT2 as Administrator with the password secret.
  2. Use My Computer to access disk C: and then expand the drive tree until you reach the C:\Winnt\System32\Repl\Export folder.
  3. Right-click the Export folder and select Sharing from the shortcut menu that appears.

    You should see that it already has an administrative share of Repl$.

  4. Click the New Share button.
  5. Type export in the Share Name box.
  6. Click the Permissions button to display the Access Through Share Permissions dialog box and click the Add button.
  7. Select Administrators from the Names list, click Add, and then click OK.
  8. Select Full Control from the Type Of Access list and click OK.

    The Access Through Share Permissions dialog box should now list Everyone and Administrators with Full Control permissions.

  9. Remove the Everyone group and click OK to close each dialog box.
  10. Leave the Export folder window open on MIGKIT2.

Now that you've granted the Administrators group full control of the Export folder, you'll be able to run the customized Lbridge.cmd script.

To run the custom Migbridge.bat replication script

  1. Open a command prompt on MIGKIT1 and change to the root of drive C:.
  2. Move to the C:\Tools\ folder and verify that the file Migbridge.bat is present.
  3. Type the following command line at the command prompt:

     migbridge \\migkit2\export\scripts 

  4. Go to the MIGKIT2 Scripts subfolder of the Export folder. Verify that a set of files has now appeared in the Export folder, including Market.bat and Finance.bat.
  5. Delete any of the files in the MIGKIT2 Scripts folder so you can complete the next procedure.

    You are now going to create a log of changes made to a folder using an amended version of the Migbridge.bat batch file called Repbridge.bat supplied in the Tools folder. Repbridge.bat doesn't include many of the messages contained in Migbridge.bat.

  6. At the command prompt on MIGKIT1, type repbridge >> lbridge.log.
  7. Open the Lbridge.log file using Notepad.

    You should see the time the log was created and a list of files that were added.

  8. Delete the Lbridge.log file on MIGKIT1 and delete some more files in the Export\Scripts folder on MIGKIT2.

By copying the files to an export folder on an Windows NT system, you could use the file and folder replication within Windows NT to redistribute all these files to other Windows NT servers. Take some time to view the contents of the Repbridge.bat and Migbridge.bat files and the Lbridge.cmd script on which they are based.

NOTE


You could also have performed this procedure using the Netlogon folder on MIGKIT2. If you do this on a live system, bear in mind that the default share permission of Read on the Netlogon folder will need to have extra permissions added for the Administrator or another delegated person to execute the batch file. You should also take care not to overwrite any other information coming to the Netlogon folder from other export servers.

You will now practice scheduling file replication.

To schedule the Repbridge.bat file to run at regular intervals

  1. Open Notepad on MIGKIT1 and create a file called Schedbridge.bat in the Tools folder containing the following commands:

     @echo off c:\tools\repbridge >> c:\tools\lbridge.log 

  2. Save the file and close Notepad.
  3. From the Start menu click Programs, Accessories, System Tools, and then click Scheduled Tasks.

    The Windows 2000 Scheduled Tasks program opens.

  4. Double-click the Add Scheduled task icon.

    The Scheduled Task Wizard starts.

  5. Click Next.
  6. In the next dialog box, which asks which program you want to run, click the Browse button.

    The Select Program To Schedule dialog box appears.

  7. Browse for Schedbridge.bat or in the File Name box, type c:\tools\schedbridge.bat and click Open.

    You will be asked how often you want the task to be run.

  8. Click Daily and then click Next.
  9. Leave the default start time as shown and click Next.
  10. Leave the user name as Administrator and type and confirm a password of secret. Click Next.
  11. In the next dialog box, click the check box labeled Open Advanced Properties For This Task When I Click Finish, and then click Finish.

    The Schedbridge dialog box opens, in which you can set advanced properties.

  12. Click the Schedule tab.
  13. Click the Advanced button.
  14. Click Repeat Task and then set the frequency to every 1 minute for a duration of 3 minutes, as shown in Figure 6.26.

    click to view at full size.

    Figure 6.26 Setting the repetition interval of the scheduled event

  15. Click OK to return to the Schedule tab.
  16. Look at the time at the bottom right corner of your screen. Add one minute to that time and enter this time as the Start Time.
  17. Click OK and leave the Scheduled Tasks window open.
  18. Wait for three minutes to pass and monitor the Scheduled Tasks window as it reports on the execution of your scheduled task.
  19. After the task has run for its final time, open the Lbridge.log file in the Tools folder using Notepad.

    The file should show that the Repbridge.bat script ran three times, the date and times it ran, and the source and destination folders involved in the file operations.

  20. Switch to MIGKIT2 and copy the Finance.bat and Market.bat files in the MIGKIT2 export Scripts folder (C:\Winnt\System32\Repl\Export\Scripts) to the MIGKIT2 import Scripts folder (C:\Winnt\System32\Repl\Import\Scripts) to prepare to complete the MIGKIT domain upgrade in the next chapter.

Lesson Summary

In this lesson, you learned about the problems of synchronizing the replication services of Windows 2000 File Replication service and Windows NT LAN Manager Replication Service. Whenever possible, you should suspend file and folder replication until after the network upgrade has been completed.

When that isn't possible, you also learned how to use the Lbridge.cmd script to synchronize updates between Windows 2000 and Windows NT servers. You also learned to do the following:

  • Update from the Windows 2000 Sysvol folder to an existing Windows NT export server and allow that export server to replicate changes to all the Windows NT import servers
  • Update from the Windows 2000 Sysvol folder to all remaining Windows NT import servers
  • Update from a Windows NT export server to a Windows 2000 Sysvol folder when changes are being made on the export server that are required on the Windows 2000 systems to support mixed clients


MCSE Training Kit (Exam 70-222. Migrating from Microsoft Windows NT 4. 0 to Microsoft Windows 2000)
MCSE Training Kit (Exam 70-222): Migrating from Microsoft Windows NT 4.0 to Microsoft Windows 2000 (MCSE Training Kits)
ISBN: 0735612390
EAN: 2147483647
Year: 2001
Pages: 126

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net