| AD DS - Compacting the NTDS Database NTDS.DIT |
|
|
|
Compacting the AD DS database NTDS.DIT improves performance. The improvement varies depending on amount of changes to the database.
Stop "Active Directory Domain Services" (also stops the services below)
-File Replication Service
-Kerberos Key Distribution Center
-Intersite Messaging
-DNS Server
ntdsutil
ntdsutil: activate instance ntds Active instance set to "ntds". ntdsutil: files Service "NTDS" is running. Stop the service before binding to this Active Direct ory database. ntdsutil: files file maintenance: compact to c:\temp Initiating DEFRAGMENTATION mode... Source Database: C:\Windows\NTDS\ntds.dit Target Database: c:\temp\ntds.dit Defragmentation Status (% complete) 0 10 20 30 40 50 60 70 80 90 100 |----|----|----|----|----|----|----|----|----|----| ................................................... It is recommended that you immediately perform a full backup of this database. If you restore a backup made before the defragmentation, the database will be rolled back to the state it was in at the time of that backup. Compaction is successful. You need to: copy "c:\temp\ntds.dit" "C:\Windows\NTDS\ntds.dit" and delete the old log files: del C:\Windows\NTDS\*.log quit quit
copy "c:\temp\ntds.dit" "C:\Windows\NTDS\ntds.dit"
|



