Article ID: 885875 - Last Review: July 31, 2007 - Revision: 10.7 How to detect and recover from a USN rollback in Windows 2000 Server
NoticeThis article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center (http://support.microsoft.com/?scid=http%3a%2f%2fsupport.microsoft.com%2fwin2000) is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle Policy (http://support.microsoft.com/lifecycle/) .On This PageNoticeThis article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center (http://support.microsoft.com/?scid=http%3a%2f%2fsupport.microsoft.com%2fwin2000) is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle Policy (http://support.microsoft.com/lifecycle/) .
For a Microsoft Windows Server 2003 version of this article, see 875495
(http://support.microsoft.com/kb/875495/
)
.
SUMMARYThis article describes the operations that Active Directory-aware backup programs and the Windows operating system perform to maintain consistent copies of Active Directory partitions when you restore the system state on a domain controller in a common Active Directory forest. To roll back the contents of an Active Directory database, restore the system state by using an Active Directory-aware backup utility. If you use any other method, replication partners in the forest may not be notified that your domain controller has started its operating system by using an earlier version of the Active Directory database. When such "USN rollbacks" occur, modifications to objects and attributes that occur on one domain controller do not replicate to other domain controllers in the forest. However, no Active Directory replication errors are reported in the event logs of the affected domain controllers. Additionally, replication-monitoring utilities such as Repadmin.exe do not detect any replication errors. Generally, during a USN rollback, user accounts and computer accounts exist on one domain controller but do not exist on another. Alternatively, the passwords for a user account may be inconsistent between domain controllers in a common domain, and logon operations may fail. After hotfix 885875 is installed, a Microsoft Windows 2000 domain controller logs Directory Services event 2095 when it encounters a USN rollback. The text of the event message directs administrators to this article for recovery options. Because it is difficult to detect and recover from a USN rollback, we recommend that administrators install hotfix 885875 on all Windows 2000 domain controllers, especially those in virtualized hosting environments. INTRODUCTIONOver a domain controller's life cycle, you may have to
restore, or "roll back," the contents of the Active Directory directory
service. Alternatively, you may have to roll back elements of a domain
controller's host operating system, including Active Directory, to a "known
good" point in time. The following are the two supported methods that you can use to roll back the contents of Active Directory or the local state of an Active Directory domain controller:
This article discusses the following topics:
MORE INFORMATIONTypical behavior that occurs when you restore an Active Directory-aware system state backupWindows 2000 domain controllers use USNs in combination with the invocation IDs of source domain controllers to track updates to Active Directory that must be replicated. When USNs and invocation IDs are used, all domain controllers maintain consistent copies in Active Directory of the directory database partitions that are replicated. The invocation ID identifies the version of the directory database that is running on the domain controller. When the system state is correctly restored on a domain controller, the invocation ID is reset before Active Directory starts. Therefore, the domain controller is identified to its replication partners as a new domain controller. This situation prompts other domain controllers to update the restored domain controller.System state restorations that Active Directory-aware backup programs perform use APIs and methods that Microsoft has designed and tested. These APIs and methods help make sure that local and replicated Active Directory databases are consistent when the restoration is complete. These APIs and methods also make sure that other domain controllers in the forest are notified that invocation IDs have been reset. Software and methodologies that cause USN rollbacksWhen the following environments, programs, or subsystems are used, administrators can bypass the checks and validations that Microsoft has designed to occur when the domain controller system state is restored:
Microsoft does not support any other process that takes a snapshot of the elements of an Active Directory domain controller’s system state and copies elements of that system state to an operating system image. Unless an administrator intervenes, such processes cause a USN rollback. This USN rollback causes the direct and transitive replication partners of an incorrectly restored domain controller to have inconsistent objects in their Active Directory databases. The effects of a USN rollbackThe following steps show the sequence of events that could lead to a USN rollback. A USN rollback occurs when the domain controller system state is rolled back in time without a system state restoration.
The size of the USN hole may represent hundreds, thousands, or even tens of thousands of changes to users, to computers, to trusts, to passwords, and to security groups. (The USN hole is defined by the difference between the highest USN number that existed when the restored system state backup was made and the number of originating changes that were created on the rolled-back domain controller before it was taken offline.) Detecting a USN rollback on a domain controller that is running Windows 2000Because errors are not logged in the event log or in the replication engine, a USN rollback can be difficult to detect.One way to detect a USN rollback is to use the Windows 2000 version of Repadmin.exe to run the repadmin /showvector command. This version of Repadmin.exe displays the up-to-dateness vector USN for all domain controllers that replicate a common naming context. To detect a USN rollback, compare the output of the repadmin /showvector command on the domain controller with the output of the same command on the domain controller's replication partners. If the direct replication partners have a higher USN number for the domain controller than the domain controller has for itself, and the repadmin /showreps command does not report replication errors between direct replication partners, you have compelling evidence of a USN rollback. Note A correctly restored domain controller resets its local invocation ID attribute when it restarts into Active Directory after its system state is restored by using a supported backup and restore method. When the reset invocation ID is outbound-replicated, remote domain controllers in the forest record the reset invocation ID as a new database instance on the restored DC. Although the restored domain controller is still the same domain controller, the remote domain controllers acknowledge this restored domain controller as a new replication partner because the invocation ID changed. (The invocation ID is the identity of the database instance.) The restored domain controller accepts changes from other remote domain controllers that originated on the remote domain controllers and on the domain controller before it was restored. The following example shows the output of the repadmin /showvector command on DC1 and DC2 in the contoso.com domain. In this example, the command is run immediately following the rollback in step 5. C:\>Repadmin /showvector dc=contoso,dc=com dc1 The output from DC1 shows a local USN of 10. DC2 has
inbound-replicated USN 50 and will ignore the Active Directory updates that
correspond to the next 40 USN numbers from the originating DC1.Caching GUIDs... Site1\DC1 @ USN 10 @ Time 2004-08-04 15:07:15 Site2\DC2 @ USN 24805 @ Time 2004-08-04 15:06:59 C:\>Repadmin /showvector dc2 dc=contoso,dc=com Caching GUIDs... Site1\DC1 @ USN 50 @ Time 2004-08-04 15:07:15 Site2\DC2 @ USN 24805 @ Time 2004-08-04 15:06:59 Detecting a USN rollback on a Windows 2000 domain controllers that has the 885875 hotfix installedBecause a USN rollback is difficult to detect, a Windows 2000 domain controller that has the 885875 hotfix installed logs event 2095 when a source domain controller sends a previously acknowledged USN number to a destination domain controller without a corresponding change in the invocation ID.To prevent unique originating updates to Active Directory from being created on the incorrectly restored domain controller, the Net Logon service is paused. When the Net Logon service is paused, user and computer accounts cannot change the password on a domain controller that will not outbound-replicate such changes. Similarly, Active Directory administration tools will favor a healthy domain controller when they make updates to objects in Active Directory. On a domain controller that has the 885875 hotfix installed, events that are similar to the following are recorded when a source domain controller sends a previously acknowledged USN number to a destination domain controller without a corresponding change in the invocation ID. Message 1 Event Type: Error
Event Type: Warning
Event Type: Warning
Event Type: Error
Recovering from a USN rollbackTo recover from a USN rollback:
Hotfix informationA supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix. Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: http://support.microsoft.com/contactus/?ws=support
(http://support.microsoft.com/contactus/?ws=support)
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.PrerequisitesTo install this hotfix, you must have Windows 2000 Service Pack 4 installed on your computer.File informationThe English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.Date Version Size File name --------------------------------------------------- 10-14-2004 5.0.2195.6968 382,224 Advapi32.dll 03-23-2004 5.0.2195.6866 69,904 Browser.dll 03-23-2004 5.0.2195.6824 134,928 Dnsapi.dll 03-23-2004 5.0.2195.6876 92,432 Dnsrslvr.dll 03-23-2004 5.0.2195.6883 47,888 Eventlog.dll 03-23-2004 5.0.2195.6890 143,632 Kdcsvc.dll 03-10-2004 5.0.2195.6903 210,192 Kerberos.dll 09-20-2003 5.0.2195.6824 71,888 Ksecdd.sys 03-10-2004 5.0.2195.6902 520,976 Lsasrv.dll 02-25-2004 5.0.2195.6902 33,552 Lsass.exe 06-19-2003 5.0.2195.6680 117,520 Msv1_0.dll 03-23-2004 5.0.2195.6897 312,592 Netapi32.dll 06-19-2003 5.0.2195.6695 371,984 Netlogon.dll 10-14-2004 5.0.2195.6985 937,744 Ntdsa.dll 03-23-2004 5.0.2195.6897 388,368 Samsrv.dll 03-23-2004 5.0.2195.6893 111,376 Scecli.dll 03-23-2004 5.0.2195.6903 253,200 Scesrv.dll 10-12-2004 5.0.2195.6983 6,125,568 Sp3res.dll 07-16-2004 5.5.31.0 6,656 Spmsg.dll 07-16-2004 5.5.31.0 169,984 Spuninst.exe 07-16-2004 5.5.31.0 21,504 Spcustom.dll 03-23-2004 5.0.2195.6824 50,960 W32time.dll 09-20-2003 5.0.2195.6824 57,104 W32tm.exe
For more information about a Windows Server 2003 hotfix, click the following article number to view the article in the Microsoft Knowledge Base:
875495
(http://support.microsoft.com/kb/875495/
)
How to detect and recover from a USN rollback in Windows Server 2003
For more information about how to host a Active Directory domain controller in virtual hosting environments, click the following article number to view the article in the Microsoft Knowledge Base:
888794
(http://support.microsoft.com/kb/888794/
)
Considerations when hosting Active Directory domain controller in virtual hosting environments
| Other Resources Other Support Sites
CommunityArticle Translations
|





















Back to the top