Circular Logging for Active Directory (247715)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Datacenter Server

This article was previously published under Q247715

SUMMARY

Windows 2000 Active Directory uses circular logging for maintaining transactions in the database (Ntds.dit). The log files are maintained until the data they contain is committed to the database. It uses these log files to recover transactions if the database is shut down in an inconsistent state.(for example, as a result of a power failure or a blue-screen error message). In Windows 2000, there is currently no way to disable or turn off circular logging.

MORE INFORMATION

When Windows 2000 performs a database write operation, it records the transaction in a log file and shortly thereafter writes the transaction to memory. When the system has time or at system shutdown, the transactions are written to the database file.

Windows 2000 records the transaction in the current log file (Edb.log), which is 10 megabytes (MB) in size. When it fills the current file, it creates a new log file (for example, Edb00001.log). The log files continue to be incremented, but circular logging purges the oldest file when the transactions within the log have been committed to the database. There are also two reserve log file named Res1.log and Res2.log. These files are used as placeholders in the event that the system runs out of disk space. Each file is also 10 MB in size.

Windows 2000 also maintains a checkpoint file (Edb.chk) that records which transactions within the log have been committed to the database. If the computer stops responding (hangs), Extensible Storage Engine (ESE) can detect an improper shutdown by checking the last log recorded. If the last record is not a "shutdown" record, it replays the logs from the checkpoint. This event occurs at the first reboot after the system is shut down improperly. If the checkpoint file is missing for any reason, every transaction within the log file is replayed.

With Microsoft Exchange, Microsoft currently recommends that administrators turn this feature off. In Windows 2000, this is not the case. There is no documented or supported way to disable this feature in Windows 2000. Because of the redundancy built into Active Directory with multiple domain controllers within a given organization and domain, Windows 2000 has been optimized to use circular logging. Administrators should be able to successfully recover a domain controller with a solid backup strategy and at least one replica domain controller per domain in the organization. For additional information about circular logging for Exchange, click the article number below to view the article in the Microsoft Knowledge Base:

147523 XADM: Enabling or Disabling Circular Logging


Modification Type:MajorLast Reviewed:11/13/2003
Keywords:kbinfo KB247715