What is offline defragmentation in AD and how do we do it?




Answers were Sorted based on User's Feedback



What is offline defragmentation in AD and how do we do it?..

Answer / siddhartha rath

Performing an offline defragmentation creates a new,
compacted version of the database file. Depending on how
fragmented the original database file was, the new file may
be considerably smaller.

offline defragmentation of the Active Directory database:

Back up Active Directory.
Reboot the domain controller.
Choose Directory Services Restore Mode and press ENTER.
Log on using the Administrator account with the password
defined for the local Administrator account in the offline
SAM.
At the command prompt, type ntdsutil, and then press ENTER.
Type files, and then press ENTER.
Type info, and then press ENTER. This displays current
information about the path and size of the Active Directory
database and its log files. Note the path.
Establish a location that has enough drive space for the
compacted database to be stored.
Type compact to drive:\directory, and then press ENTER,
where drive and directory is the path to the location you
established in the previous step.

Note You must specify a directory path. If the path
contains any spaces, the entire path must be surrounded by
quotation marks. For example, type:
compact to "c:\new folder"
A new database named Ntds.dit is created in the path you
specified.
Type quit, and then press ENTER. Type quit again to return
to the command prompt.
If defragmentation succeeds without errors, follow the
Ntdsutil.exe on-screen instructions. Delete all the log
files in the log directory by typing the following command:
del drive :\ pathToLogFiles \*.log
Copy the new Ntds.dit file over the old Ntds.dit file in
the current Active Directory database path
Note You do not have delete the Edb.chk file.
Restart the computer normally

Is This Answer Correct ?    3 Yes 0 No

What is offline defragmentation in AD and how do we do it?..

Answer / yuvaraj.sengottaiyan

offline defragment is nothing but,just take the backup of
ntds.dit and rebooot the server press f8 and go to
directory service mode login as local admin password
Note:In case if you not able to login in local admin reset
the dsrm passowrd and try again.
once u logged successfully in the local admin then go to--
>cmd-->type -->ntdsutil-->press enter
type-->file and press enter once again type --info-->press
enter

Note:(file)This will cause NTDSUTIL to switch to the File
Maintenance prompt

(info)This will cause NTDSUTIL to display information about
the size and location of the Active Directory database


Now you can view the displays current
information about the path and size of the Active Directory
database and its log files

Type compact to drive:\directory, and then press ENTER,
where drive and directory is the path to the location you
established the database,here you can specifiy any drive
location and directory

EX:Note You must specify a directory path. If the path
contains any spaces, the entire path must be surrounded by
quotation marks. For example, type:
compact to "c:\new folder" or "D:\new folder"

A new database named Ntds.dit is created in the path you
specified

If defragmentation succeeds without errors, follow the
Ntdsutil.exe on-screen instructions. Delete all the log
files in the log directory by typing the following command:
del drive :\ pathToLogFiles \*.log

Atlast you Copy the new Ntds.dit file over the old Ntds.dit
file in the current Active Directory database

Restart the computer normally.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer




More Windows General Interview Questions

4 What functional domain level should you choose to allow Windows NT4 Servers and Windows 2003 Servers to function together? 1 Windows Server 2003 mode 2 Windows 2000 Mixed mode 3 Windows 2000 Native mode 4 Windows 2003 Interim mode

3 Answers  


Why screensaver is required in windows?

3 Answers  


what is the difference between ddr1 and ddr2 and ddr3

6 Answers   HCL,


What is offline defragmentation in AD and how do we do it?

2 Answers   Accenture,


9 You have configured several users to be able to connect to one of your servers using Terminal Services, and you have configured redirection of client printers. You want users to be able to print to their local printers from a remote connection. However, your users report they are unable to print to their locally configured printers. What should you do? 1 Tell the users to install their local printer from within their Terminal Server session. 2 Use a logon script to add the local printers 3 Enable the Client/Server data redirection setting in Group Policy for every Terminal Server client computer. 4 Enable the Client Server data redirection setting in Group Policy for the Terminal Server

1 Answers   Vanilla Networks,






Whate is software

6 Answers   Wipro,


what is the main technical difference b/w window xp and window 7

5 Answers   HCL,


what is the difference between dual core and core 2duo processor

2 Answers  


Hey Friends plz answer me, If v hv made an application by using Ado.net in windowsXP,then can v run it on Linux operator,if yes then how?

1 Answers  


8 What functional domain level should you choose to allow Windows NT4 Servers and Windows 2003 Servers to function together? 1 Windows Server 2003 mode 2 Windows 2000 Mixed mode 3 Windows 2000 Native mode 4 Windows 2003 Interim mode

1 Answers  


6 Your boss has asked you to implement three new Exchange email servers. It's vital that you install these email servers in the most fault tolerant way possible. Which of the following features should you use? 1 Network backups 2 Microsoft Clustering Service 3 Network load balancing 4 DNS round robin

1 Answers   CMS, Accel IT, Spectrum Engineers,


Which role is necessary to synchronize time in an enterprise ?

2 Answers   HCL,






Categories