Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


August 2007

Leverage LVR to Simplify AD Object Recovery

Upgrading to Windows Server 2003 requires this additional step
RSS
Subscribe to Windows IT Pro | See More Active Directory (AD) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
SideBar    Determining Linked-Value Pairs in the Active Directory Schema

The Windows 2003 LVR feature is one of the key changes in the way that AD replicates specific data. This feature is available only when your AD forest operates in either of the following forest functional levels:

  • Windows 2003 interims—For NT 4.0 upgrade scenario; allows existence of NT 4.0 DCs in forest, but no Win2K DCs

  • Windows 2003—All DCs in forest must be running Windows 2003; neither NT 4.0 nor Win2K DCs are allowed

When you perform an in-place upgrade of your Win2K AD forest, your forest functional level doesn't change automatically—the forest will run in Win2K functional mode, which doesn't support LVR. Even when you implement a brand-new AD forest using a Windows 2003 DC, the default forest functional level is set to Win2K. To raise the forest level to Windows 2003, you must first switch all the domains in the forest to the Windows 2003 domain functional level.

You can use the MMC Active Directory Domains and Trusts snap-in to check your domain and forest functional levels. To raise the forest functional level, right-click the top node called Active Directory Domain and Trusts, and select Raise Forest Functional Level from the context menu, as Figure 3 shows.

After your AD forest is successfully switched to the Windows 2003 forest functional level (which is an irreversible process and should thus be planned accordingly), the LVR mechanism is activated. For confirmation of this switch, see event ID 1695 in the NTDS event log of each DC in your forest.

LVR changes the smallest unit of replication: Each value in multi-valued attributes that are linked to other attributes will now replicate separately as the value is added to or deleted from the attribute. So if for example a user is added to a group that already contains 999 members on one DC, only the addition of that one user is replicated to the DC's replication partners in the domain. Similarly, the removal of a user from a group only replicates this status change of the link between the user and the group, instead of replicating all group members. LVR thus solves the two issues I previously described for the Win2K replication mechanism for multi-valued attributes:

  • Unlimited Number of Group Members— Besides lowering the utilization of the network when replicating group changes, LVR has the great benefit that it effectively removes the upper limit for the number of members in a group. LVR is fully supported to have groups in a Windows 2003 AD with millions of members! However, the update to the AD database must still be written in a single transaction, which means that you shouldn't add or remove more than 5,000 members to a group in one operation. If your AD has automated group management, you should ensure that your provisioning or group management systems understand this limitation.

  • Ensuring Integrity of Changes—Because the changes in group memberships and other linked values are replicated separately, changes to the same group performed at the same time on different DCs won't get lost.

Changes in the AD Database Tables
To enable LVR, the link table on DCs running Windows 2003 requires some updates. Similar to objects in the data table, linked values now require extra metadata, including an update sequence number (USN) to control replication. The USN is updated to the next available value for any changes made to an object's attribute or a linked value in the AD database, which allows a replication partner to request replication of only those changes that it doesn't yet know of. But more importantly, the new metadata in the link table also defines the status of a link, which can be one of three LVR link types:

  1. Legacy—Link that's still stored in the old format with all values stored and replicated in a single blob; only contains "active" links.

  2. Present—Link that's stored in the new LVR format and "active" (e.g., a normal member of a group).

  3. Absent—Link that's stored in the new LVR format and "deleted" (e.g., a user whose membership was removed from a group).

You can use the Windows Server 2003 Support Tools command-line tool Repadmin to view the status of the links in your groups. To retrieve the status information for a group called MyGroup on a DC called DC1, use the following command:

C:\repadmin /showobjmeta DC1 CN=MyGroup,
  OU=OU-Groups,DC=RootR2,DC=net 

Figure 4 shows the output from this command. As you can see, John and Mary were members of the group before LVR was enabled in the forest, and Peter was added to the same group later on. An important thing to understand is that even when you enable LVR in your forest, the links that existed in AD before you switched to the Windows 2003 forest functional level won't automatically update to LVR links. Instead, they'll remain in the AD database as "legacy" links, which usually isn't a problem because new links will still be stored as LVR links and thus the replication benefits are immediate. However, LVR links have another benefit that requires the links to be stored in "true" LVR format.

Benefits of LVR for AD Object Recovery
There's more to LVR than meets the eye—it not only improves normal replication of linked values, but it also improves recoverability of the links, in case you want to recover accidentally deleted objects in your AD domains. Recall what I said about the back links and forward links at the beginning of the article: Only the forward links are replicated between DCs in an AD domain. So, if you forced replication of a user object with all of its attributes, everything would replicate except for the back links referenced from the object. However, you couldn't replicate the user's group memberships, because the memberships are stored in the user's back-linked memberOf attribute.

When you use the native OS methods to restore an object, you basically force replication to occur. For example, after you boot into the Directory Services Restore Mode (DSRM), you'd restore the AD database via the system state backup from tape or disk on one of your DCs. Then—before reboot—you'd run the Nt-dsutil command to perform an authoritative restore. An authoritative restore can be done for a whole subtree or for a single object and effectively increases the version number of all attributes of the object(s) to be recovered by 100,000 (per day of age of the backup). For more details on this process, see the Microsoft article "How to restore deleted user accounts and their group memberships in Active Directory" (http://support.microsoft.com/kb/840001).

In a Win2K AD forest, an authoritatively restored user wouldn't replicate its group memberships to other DCs in the domain. You'd need to manually repopulate the user's group memberships or leverage a tool such as Groupadd. Windows 2003 SP1 makes the recovery process of group memberships and other linked values a bit easier because it creates LDAP Data Interchange Format (LDIF) files during the authoritative restore process, which then let you import the group memberships after reboot. However, all these steps can take a considerable amount of time and are prone to human error.

   Previous  1  [2]  3  Next 


Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Accessing Database Data with ADO

...

The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

Friday at PASS Europe 2006

Kevin talks about the closing day of the event and shares a funny Microsoft film. ...


Active Directory (AD) Whitepapers Sustainable Compliance: How to reconnect compliance, security and business goals

User Provisioning and Access Control

Managing Unix/Linux with Microsoft System Center Operations Manager 2007 Cross Platform Extensions Beta

Related Events Check out our list of Free Email Newsletters!

Active Directory (AD) eBooks Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Windows 2003: Active Directory Administration Essentials

Related Active Directory (AD) Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.

Job Openings in IT


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

Maximize your SharePoint Investment – 8 Cities
Discover best practices and tips for both architecting and administering SharePoint. Early Bird Price of $99 through Sept 15th.

Find a new job now on the all new IT Job Hound!
Search jobs, post your resume, and set up job e-mail alerts!

Master SharePoint with 3 eLearning Seminars
Learn how to build a better SharePoint infrastructure and enable powerful collaboration with MVPs Dan Holme and Michael Noel. Register today!

Top Tools for Virtualization Disaster Recovery & Replication
View this web seminar on August 14th to learn about two tools that will result in faster backup and restore with P2V disaster recovery.

SharePointConnections Conference Fall 2008
Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay).

VMworld 2008 - Sign Up Today!
Join your peers on September 15-18 at The Venetian Hotel in Las Vegas as VMware hosts VMworld 2008, the leading Virtualization event.



Increase Application Performance
Free White Paper by Editor's Best winner, Texas Memory Systems.

Microsoft® Tech•Ed EMEA 2008 IT Professionals
Advance your thinking with new ideas and practical real-world solutions at Microsoft’s FIVE day technical infrastructure conference 3-7 Nov., 2008. Register before 26 September 2008 to save €300.

Order Your SQL Fundamentals CD Today!
Learn how to use SQL Server, understand Office integration techniques and dive into the essentials of SQL Express and Visual Basic with this free SQL Fundamentals CD.

Are You Really Compliant with Software Regulations?
View this web seminar that will help you with compliance best practices and check out a management solution to assure that you won’t be in jeopardy of an audit.

Virtualization Congress Oct. 14-16 in London
Don't miss Virtualization Congress, the premiere EMEA conference dedicated to hardware, OS and application virtualization. Oct. 14-16.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technical Resources Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing