August 25, 2015

Step-By-Step: Moving An Active Directory Database to A New Location

When setting up Active Directory, the IT Administrator is given an option to select the folder path to copy the Active Directory database files to. It is advised to always to use a separate partition to save the database files instead of using the default C:\Windows\NTDS\folder path.  This provides an easier opportunity to move the Active Directory database to different location should disk space on the server dry up.
In this Step-By-Step, the lab DC currently stores its AD database files in default C:\Windows\NTDS\folder. Steps will be detailed amidst this post to move it to a new disk added to the server. The new path it will be moved to will be E:\ADDB
Step 1: Prepping Active Directory to be moved
  1. Log in to the primary domain controller as domain or enterprise administrator
     
  2. In Server Manager, navigate to Tools > Services

    Move_Active_Directory_001
     
  3. Once mmc loads, right click on Active Directory Domain Services and click stop

    Move_Active_Directory_002
     
  4. When asked if it’s okay to stop associated services, click Yes to continue.

    Move_Active_Directory_003

Step 2: Moving the Active Directory database
  1. Right click on start button and click on Command Prompt (Admin)
     
    Move_Active_Directory_004
     
  2. Once command prompt is visible, type ntdsutil and press enter

    Move_Active_Directory_005
     
  3. Next type activate instance ntds and press enter
     
  4. Then type files and press enter

    Move_Active_Directory_006
     
  5. In files maintenance the command to move the db is required. As mentioned earlier, the need to move the database to E:\ADDB. Type the following command to enable the move: move db to E:\ADDB

    Note: Remember to use quotations (“”) should the path contain a space

    Move_Active_Directory_007
     
  6. Once the database files are successfully moved, type the following command to move the logs: move logs to E:\ADDB

    Move_Active_Directory_008


    Move_Active_Directory_009
     
  7. Once the move has successfully completed, Return to the initially used services.mmc and start Active Directory Domain Services stopped in Step 1
http://www.slideshare.net/laonap166/moving-an-active-directory-database-to-a-new-location

0 comments:

Post a Comment