|
Article ID: 875495 - View products that this article applies to. System TipThis article applies to a different version of Windows than the one you are using. Content in this article may not be relevant to you.Visit the Windows 7 Solution Center On This Page For a Microsoft Windows 2000 Server version of this
article, see
885875
(http://support.microsoft.com/kb/885875/
)
. SUMMARYThis article describes a condition that occurs when a domain controller that is running Windows 2000, Windows Server 2003, Windows Server 2008, or Windows Server 2008 R2 starts from an Active Directory database that has been incorrectly restored or copied into place. This condition is known as an update sequence number rollback, or USN rollback. When a USN rollback occurs, modifications to objects and attributes that occur on one domain controller do not replicate to other domain controllers in the forest. Because replication partners believe that they have an up-to-date copy of the Active Directory database, monitoring and troubleshooting tools such as Repadmin.exe do not report any replication errors. After hotfix 875495 or Windows Server 2003 Service Pack 1 is installed, a Microsoft Windows Server 2003 domain controller logs Directory Services event 2095 when it encounters a USN rollback. The text of the event message directs administrators to this article to learn about recovery options. Because it is difficult to detect and recover from a USN rollback, we recommend that administrators install hotfix 875495 or the latest service pack that is available) on Windows Server 2003 RTM. The hotfix is included in Windows Server 2003 SP1 as well as in Windows Server 2008 and Windows Server 2008 R2. For more information, 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
INTRODUCTIONThis article discusses the following topics:
The following are supported methods that you can use to roll back the contents of Active Directory:
MORE INFORMATIONTypical behavior that occurs when you restore an Active Directory-aware system state backupWindows Server 2003 domain controllers use USNs together with the invocation IDs to track updates that must be replicated between replication partners in an Active Directory forest.Source domain controllers use USNs to determine what changes have already been received by the destination domain controller that is requesting changes. Destination domain controllers use USNs to determine what changes should be requested from source domain controllers. The invocation ID identifies the version or the instantiation of the Active Directory database that is running on a given domain controller. When Active Directory is restored on a domain controller by using the APIs and methods that Microsoft has designed and tested, the invocation ID is correctly reset on the restored domain controller. Domain controllers in the forest receive notification of the invocation reset. Therefore, they adjust their high watermark values accordingly. 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 rollbackWhen USN rollbacks occur, modifications to objects and attributes are not inbound replicated by destination domain controllers that have previously seen the USN.Because these destination domain controllers believe they are up to date, no replication errors are reported in Directory Service event logs or by monitoring and diagnostic tools. USN rollback may affect the replication of any object or attribute in any partition. The most frequently observed side effect is that user accounts and computer accounts that are created on the rollback domain controller do not exist on one or more replication partners. Or, the password updates that originated on the rollback domain controller do not exist on replication partners. The following steps show the sequence of events that may cause a USN rollback. A USN rollback occurs when the domain controller system state is rolled back in time using an unsupported system state restoration.
Detecting a USN rollback on a domain controller that is running Windows ServerBecause 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 Server version of Repadmin.exe to run the repadmin /showutdvec 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 /showutdvec 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 domain controller. 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 itself will accept 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 /showutdvec 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 /showutdvec dc1 dc=contoso,dc=com 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 /showutdvec 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 Server domain controller that has the 875495 hotfix (or an operating system that includes this hotfix) installedBecause a USN rollback is difficult to detect, a Windows Server domain controller that has the 875495 hotfix functionality 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 875495 hotfix functionality installed, event messages that resemble the following are recorded if the following conditions are true:
Event Type: Error Event Type: Warning
Event Type: Warning
Event Type: Error Recovering from a USN rollbackThere are two approaches to recover from a USN rollback:Remove the Domain Controller from the domain, following these steps:
Evaluate whether valid system state backups exist for this domain controller. If a valid system state backup was made before the rolled-back domain controller was incorrectly restored, and the backup contains recent changes that were made on the domain controller, restore the system state from the most recent backup. You can also use the snapshot as a source of a backup. Or you can set the database to give itself a new invocation ID using the procedure in the section "To restore a previous version of a virtual domain controller VHD without system state data backup" in this article: http://technet.microsoft.com/en-us/library/dd363545(WS.10).aspx
(http://technet.microsoft.com/en-us/library/dd363545(WS.10).aspx)
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. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.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, contact 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 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.
(http://support.microsoft.com/contactus/?ws=support)
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.Restore the system state.Evaluate whether valid system state backups exist for this domain controller. If a valid system state backup was made before the rolled-back domain controller was incorrectly restored, and the backup contains recent changes that were made on the domain controller, restore the system state from the most recent backup. Properties |
Contact us for more help |

