Moving Active Directory Database and Logs

2


AD Scenario- Move Active Directory Database and Logs

An Active Directory database is installed on the C volume of a domain controller.

You need to move the Active Directory database to a new volume. What should you do?

A. Copy the ntds.dit file to the new volume by using the ROBOCOPY command.

B. Move the ntds.dit file to the new volume by using Windows Explorer.

C. Move the ntds.dit file to the new volume by running the Move-item command in Microsoft Windows

PowerShell.

D. Move the ntds.dit file to the new volume by using the Files option in the Ntdsutil utility.

Correct Answer: D

Explanation:

Step -1

Start the server in Directory Services Restore Mode

Windows Server 2003/2008 Directory Service opens its files in exclusive mode. This means that the files cannot be managed while the server is operating as a domain controller. To perform any files movement related activities using ntdsutil, we need to start the server in Directory Services Restore Mode.

To start the server in Directory Services Restore mode, follow these steps:

  • Restart the computer.
  • After the BIOS information is displayed, press F8.
  • Use the DOWN ARROW to select Directory Services Restore Mode, and then press ENTER.


  • Log on with your local administrative account and password. (Not Domain Administrative account)

Note:
using service control (SC.exe) you can verify quickly ntds services are running or stopped. In command prompt type SC query ntds

Step -2

How to Move Active Directory Database and Logs

You can move the Ntds.dit data file to a new folder. If you do so, the registry is updated so that Directory Service uses the new location when you restart the server. 

To move the data file to another folder, follow these steps:

  • Click Start, click Run, type ntdsutil in the Open box, and then press ENTER.


  • At the Ntdsutil command prompt, type activate instance ntds, and then press ENTER.


  • At the Ntdsutil command prompt, type files, and then press ENTER.


  • At the file maintenance command prompt, type move DB to <new location> (where new location is an existing folder that you have created for this purpose), and then press ENTER.

    In this case, the new location for database is C:\AD\Database


    • Now to move logs , at the file maintenance command prompt, type move logs to <new location> (where new location is an existing folder that you have created for this purpose), and then press ENTER. In our case, the new location for database is C:\AD\Logs


  • To quit file maintenance, type quit. Again to Ntdsutil, type quit to close the prompt
  • Restart the computer. AD database and Logs are moved successfully to new location.

For more details please read below article

http://support.microsoft.com/kb/816120

Note: When to move NTDS.dit and Logs to a different location

  • You run out of disk space and want to move it away from the system disk
  • You want the DB to run on a faster/more reliable hard disk (other than the system disk)
  • You experience performance issues and want to seperate the DB from the core OS hard disk
  • You fat-fingered the correct location of the DB file when running dcpromo to bring the DC up
Advertisements