Defrag the AD database only when needed

Defrag the AD database only when needed

Active Directory in Windows 2000 is Microsoft's way of providing effective control over files on the network. The heart of Active Directory is the Extensible Storage Engine and the associated Active Directory database. Like most heavily used data structures, the Active Directory database becomes fragmented as items are added and deleted, and must be defragmented. Active Directory exacerbates this need because Microsoft designed the Extensible Storage Engine for speed, rather than storage efficiency.

Although Windows 2000 performs an automatic, online, defragmentation of the Active Directory database following garbage collection, the defragmentation is incomplete. In effect, online defragmentation only rearranges the pages in the database, which makes access more efficient, but it does not reclaim space for the file system. To perform a complete defragmentation, the computer must be put in Directory Services Repair mode, which means it is running as a member server.

Since putting the computer in Directory Services Repair mode requires restarting the computer and selecting the appropriate mode from the boot menu, it is best only to do an offline defragmentation when you are reasonably sure that a significant amount of space can be reclaimed. This typically happens when the database contents have gotten significantly smaller due to administrative actions or for other reasons.

Microsoft describes the process in this

    Requires Free Membership to View

    When you register, you’ll also receive targeted alerts from my team of editorial writers and independent industry experts with the latest news, tips, and advice to help you do your job more efficiently and effectively. Our goal is to keep you informed on the hottest topics and biggest challenges faced by Windows professionals today.

    Cathleen A. Gagne, Senior Editorial Director

    By submitting your registration information to SearchWinIT.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchWinIT.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Knowledge Base article.

Rick Cook has been writing about mass storage since the days when the term meant an 80K floppy disk. The computers he learned on used ferrite cores and magnetic drums. For the last twenty years he has been a freelance writer specializing in storage and other computer issues.


This was first published in January 2003

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.