Active Directory

Is it possible to move or change the location of AD database? if yes how we can change the location?

Yes, it is possible to move or change the location of the Active Directory (AD) database in a domain controller. The AD database stores information about users, groups, computers, and other objects in the domain, and is critical to the operation of Active Directory. Moving the AD database can be useful in situations where you need to free up space on the system drive or improve performance by moving the database to a faster disk.

Here are the steps to move the AD database to a new location:

  1. Create a new folder for the AD database: First, create a new folder on the target disk where you want to move the AD database. You can name the folder anything you like, such as “ADDatabase”.
  2. Stop the Active Directory Domain Services (NTDS) service: To move the AD database, you need to stop the NTDS service. Open the Services console, locate the NTDS service, and stop it.
  3. Copy the AD database to the new location: Use File Explorer to copy the Ntds.dit file, which is the main AD database file, from its current location to the new folder you created in step 1.
  4. Move the transaction log files: In addition to the Ntds.dit file, you also need to move the transaction log files and checkpoint file to the new location. The transaction log files are named Edb*.log and are typically located in the same folder as the Ntds.dit file. Copy all of the transaction log files to the new folder, but do not delete them from the original location until you have verified that the database is working correctly in the new location.
  5. Update the registry: Open the Registry Editor and navigate to the following key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Parameters

In the right pane, double-click the “DSA Working Directory” value and enter the path to the new folder you created in step 1. Click OK to save the changes.

  1. Start the NTDS service: After you have updated the registry, start the NTDS service again.
  2. Verify the database is working: Finally, verify that the AD database is working correctly by checking the Event Viewer logs for any errors or warnings related to the move. You can also use the “NTDSUTIL” command-line utility to check the integrity of the database.

It is important to note that moving the AD database can be a complex process and should be done carefully to avoid any potential issues. It is recommended to perform a full backup of the domain controller before making any changes to the AD database.

So, that’s all in this blog. I will meet you soon with next stuff. Have a nice day!!!

Guys please don’t forget to like and share the post. Also join our WindowsTechno Community and where you can post your queries/doubts and our experts will address them.

You can also share the feedback on below windows techno email id.

If you have any questions, feel free to contact us on admin@windowstechno.com also follow us on facebook@windowstechno to get updates about new blog posts.

How useful was this post?

Click on a star to rate it!

As you found this post useful...

Follow us on social media!

Was this article helpful?
YesNo

Vipan Kumar

He is an Active Directory Engineer. He has been working in IT industry for more than 10 years. He is dedicated and enthusiastic information technology expert who always ready to resolve any technical problem. If you guys need any further help on subject matters, feel free to contact us on admin@windowstechno.com Please subscribe our Facebook page as well website for latest article. https://www.facebook.com/windowstechno

Leave a Reply

Back to top button