Fix AD replication or DCPROMO error 1127 (a disk operation failed even after retries): pair events 1084 and 2108, act on the JET error (-510, -1018, -1019, -1021, -1022, -1605) and check the disk stack and antivirus.
Home › Guides › AD replication error 1127
Last updated 19 November 2026
Win32 error 1127, "While accessing the hard disk, a disk operation failed even after retries", means Active Directory couldn't write to its database (ntds.dit) or its log files. Microsoft gives two root causes: software on the DC (for example antivirus) interfering with writes to the database or logs, or a defect in the disk subsystem (motherboard or drive controller, firmware, driver, physical drives).
DCPROMO. Promoting a new DC fails. The Active Directory Installation Wizard says "Active Directory could not replicate the directory partition <DN path of failing partition> from the remote domain controller <helper DC>", followed by the 1127 text. DCPROMO.LOG contains:
[INFO] Replicating the <partition name> directory partition [INFO] Error - Active Directory could not replicate the directory partition <partition DN> from the remote domain controller <helper DC>. (1127) [INFO] NtdsInstall for <DNS domain> returned 1127 [INFO] DsRolepInstallDs returned 1127 [ERROR] Failed to install to Directory Service (1127)
DCDIAG. The Replications test fails:
Testing server: <site>\<DC name> Starting test: Replications * Replications Check [Replications Check,<DC name>] A recent replication attempt failed: From <source DC> to <destination DC> Naming Context: DC=<DN path> The replication generated an error (1127): While accessing the hard disk, a disk operation failed even after retries. The failure occurred at <date> <time>. The last success occurred at (never) | <date>.
REPADMIN. repadmin /replsum, /showrepl, /showreps and /syncall report the last replication attempt failed with status 1127.
Replicate Now in Active Directory Sites and Services (dssite.msc) fails with "The following error occurred during the attempt to synchronize naming context <partition> from domain controller <source DC> to domain controller <destination DC>: While accessing the hard disk, a disk operation failed even after retries. This operation will not continue."
Events in the Directory Service log that commonly cite 1127:
| Source and event ID | What it says |
|---|---|
| NTDS KCC 1926 | The attempt to establish a replication link to a read-only directory partition failed. |
| NTDS Replication 1084 | Internal event: Active Directory could not update an object with changes received from a source DC, because an error occurred while applying the changes to Active Directory on this DC. |
| NTDS Replication 1699 | The local DC failed to retrieve the changes requested for a directory partition, so it couldn't send the change requests to the DC at the given network address. |
| NTDS Replication 2108 | Repair procedures for the earlier 1084: a database error occurred while applying replicated changes to an object; the database had unexpected contents. It names the object, the source DC and the JET error behind the 1127. |
| NTDS ISAM 474 | A database page read from ntds.dit failed verification because of a page checksum mismatch. "This problem is likely due to faulty hardware." If it persists, restore the database from a previous backup. |
| NTDS ISAM 475 | The same, but for a page number mismatch. Again likely faulty hardware; restore from backup if it persists. |
Event 1084 says AD couldn't write updates to an object in its local copy. Its metadata gives you three things: the DN path of the object (and so the partition it lives in), the object's objectGUID, and the fully qualified CNAME record of the source DC that sent the update.
Event 2108 is the "User Action" for the 1084. For every 1084 there should be a 2108 right after it that cites the same object DN, the same objectGUID and the same source DC, plus a JET error. That JET error scopes the cause and your recovery plan.
A quick way to pull both events from a DC (run it on the DC, or add -ComputerName):
Get-WinEvent -FilterHashtable @{LogName='Directory Service'; Id=1084,2108} -MaxEvents 20 | Format-List TimeCreated, Id, Message
If the 2108 shows a JET error that isn't listed below, Microsoft suggests the Error Lookup Tool (ERR.exe): run err <jet error> and keep the leading minus sign, for example err -1018.
| JET error | Symbolic name and text | What to do |
|---|---|---|
| -510 | JET_errLogWriteFail: failure writing to log file | A log write failed on the destination DC. Check disk, partition and file system health there. Look for software that locks AD log files, such as antivirus. See if the problem persists after a reboot, or try a clean boot (below). |
| -1018 | JET_errReadVerifyFailure: checksum error on a database page | The database is corrupt, caused by a hardware failure. Evaluate the whole disk stack (motherboard or controller, firmware, cables, drives), contact the vendors about known issues and compare against their reference configuration. Check whether the latest firmware fixes it, or whether a recent firmware update triggered it. If some DCs log -1018 and others don't, look for hardware differences. Integrity checks and semantic database analysis can't repair it. Try an offline defrag (it may help in the unlikely case of an index problem); otherwise restore a system state backup from before the corruption, or force demote, do a full metadata cleanup and re-promote. Repeat until the hardware cause is fixed. |
| -1019 | JET_errPageNotInitialized: blank database page | Like -1018 but caused by a lost page flush. A lost flush can be a critical USN change, which is harmful where only one replication path exists. Use server-class hardware and disks, a UPS on the host, a disk controller with on-board battery backup, disable write-back cache on the drive controller, and avoid IDE drives for ntds.dit and the logs. Same recovery as -1018: offline defrag, else restore or force demote / metadata cleanup / re-promote. |
| -1021 | JET_errDiskReadVerificationFailure: the OS returned ERROR_CRC from file IO | New in Windows Server 2008 R2 (older versions return -1022). It means a -1018 happened at the disk level: a drive returned a bad checksum and is the specific source of the problem. Bad blocks on the drive may be the cause; demoting and re-promoting the DC may get the data stored on healthy blocks. |
| -1022 | JET_errDiskIO: disk IO error | A generic, non-specific disk error, for example a controller returning "device not working". Some disks and JET versions return it for CRC problems. Verify the whole driver stack. |
| -1605 | JET_errKeyDuplicate: illegal duplicate key | Sporadic; may be index corruption. Run a semantic database analysis with ntdsutil; if that doesn't fix it, do an offline defrag. Microsoft also lists demote and re-promote. |
Clean boot for -510 (Microsoft's three methods):
msconfig, Services tab, Hide all Microsoft services, clear the third-party services; then on the Startup tab click Disable all.A real-world -1018 case. One customer saw -1018 on virtualized DCs on the same host, but only where an on-board RAID controller was used. The thinking was that the UPS didn't have enough power for the on-board controllers to commit changes to disk after a power loss. The workaround was to have the UPS software shut the guests down on power loss. Servers with dedicated RAID controllers with their own battery backup didn't see the error.
Validate the JET database stack from the bottom up, and only move up a layer when the one underneath checks out good, the same way you'd troubleshoot TCP:
| Layer | Ntdsutil | Esentutl |
|---|---|---|
| 1. Physical consistency | no equivalent | esentutl /k |
| 2. ESE logical consistency | ntdsutil files integrity | esentutl /g |
| 3. Application logical consistency | ntdsutil semantic database analysis, plus an offline defrag | no equivalent for semantic analysis, plus esentutl /d |
The same layered approach and the full list of JET errors seen with database problems are in the replication error 8451 guide, including how to run semantic database analysis in Directory Services Restore Mode.
repadmin /syncall, then confirm with repadmin /replsum and dcdiag /test:replications that 1127 is gone.Look up 1084, 2108, 474 and 475 in the Windows Event ID Lookup, copy the err -1018 and Get-WinEvent lines from the PowerShell Cheat Sheet, pull the JET error and object DN out of exported 1084 and 2108 events with the Regex Tester, check which site a DC with failing disks sits in with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the network adapter vendor when you compare hardware between DCs that do and don't log the error with the MAC Vendor Lookup. Related guides: replication error 8451, replication error 8304, replication error 8452 and replication error 8333.
Every AD replication error code with its cause and fix: common Active Directory replication errors.
While accessing the hard disk, a disk operation failed even after retries. Active Directory couldn't write to its database or log files. Microsoft names two root causes: software on the DC interfering with the writes, or a defect in the disk subsystem (controller, firmware, driver or drives).
NTDS Replication event 1084 in the Directory Service log, and the event 2108 logged right after it. The 2108 cites the same object, objectGUID and source DC plus a JET error, and that JET error decides the recovery plan. NTDS ISAM 474 and 475 point to faulty hardware.
Yes. With JET error -510 (failure writing to log file), Microsoft says to look for software such as antivirus that locks the AD log files, and to try a clean boot: stop those services, use Safe Mode with Networking, or disable third-party services with msconfig.
No. Databases logging -1018 or -1019 can't be repaired by integrity checks or semantic database analysis. Try an offline defrag; otherwise restore a system state backup from before the corruption, or force demote, clean up metadata and re-promote, and fix the hardware cause.
Look it up with err.exe, keeping the minus sign (err -1018), and check the database stack bottom-up: esentutl /k for physical consistency, ntdsutil files integrity or esentutl /g, then semantic database analysis and an offline defrag.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.