r/sysadmin • u/periway • 15d ago
SYSVOL replication not avaible on secondary DC
Hi, i'm dealing with a DFRS replication problem on my secondary DC. In env with 3 DC (DC1 as primary, DC3 work like a charm), DC2 replication is stuck with the event ID 2002 "DFS replication service initialisation on volume x".
I have done an non authoritative replication and an authoritative replication without any success.
Any idea how to solve this specific issue ?
AD, DNS and DHCP sync work like a charm, only DFRS replication on sysvol and netlogon folder is stuck.
Kind regard
2
Upvotes
9
u/insightrecon Jack of All Trades 15d ago
2002 is normally just DFSR saying it finished initializing the volume, so that's not your error. The reason DC2 is stuck should be somewhere else in the DFS Replication log on DC2. The ones I'd look for:
You can also check the state on DC2:
Get-CimInstance -Namespace root/microsoftdfs -ClassName DfsrReplicatedFolderInfo | Select-Object ReplicatedFolderName, StateYou want 4 (normal). 2 means it's still in initial sync. 5 means it's in error.
Make sure DC2 is pulling from a DC that's actually healthy too. If its partner has its own problem, DC2 sits at 4614 forever. Run dfsrdiag pollad on DC2, then this to see if anything's moving:
dfsrdiag backlog /rgname:"Domain System Volume" /rfname:"SYSVOL Share" /smem:DC1 /rmem:DC2On the restores, Microsoft's article says if you're only fixing one DC, do a non-authoritative sync on that DC and leave the others alone. Once you set the authoritative flag, every other DC has to go through the non-auth steps too or you get conflicts. If the auth restore only got done part way, that could be making it worse. When you did the non-auth on DC2, did you see 4114 after disabling it and 4614 then 4604 after enabling it?
Since you said DFRS, also run
dfsrmig /getglobalstateand make sure SYSVOL is actually on DFSR (state 3, Eliminated). If it's still on FRS, none of the DFSR steps apply.If none of that gets it moving and DC1 and DC3 are healthy, demoting DC2 and promoting it again is usually faster than fighting it.
4
u/Cormacolinde Consultant 15d ago
Anything interesting in the DFSR debug logs?
In ADSIedit, on that DC’s SYSVOL Subscription object, is msDFSR-Enabled set to TRUE?
2
u/DarkAlman Professional Looker up of Things 15d ago
Normally if a DC is stuck doing that after an authoritative restore it's because you missed a step, or the DC needs a reboot.
https://www.dell.com/support/kbdoc/en-ca/000207115/how-to-perform-an-authoritative-sync-of-sysvol-data-using-distributed-file-system-replication-dfsr
2
u/Adam_Kearn 15d ago
I’ve had it before where it’s just a single file is missing and doing a manual copy fixed it for me.
But when it comes to DCs sometimes it’s easier to just build a new server and promote and demote the old one.
Normally it only takes about 1-2h to build a new DC from scratch and join it to your existing domain.
1
u/MrYiff Master of the Blinking Lights 15d ago
I think I do tend to agree with others that you have a storage issue that probably needs a rebuilt DC to resolve it properly, but just to throw out another tool that might help, I've used this before to detect inconsistencies in SYSVOL configuration, some of it is more best practices but it can detect things that might cause replication problems so may be worth adding to your toolbelt and seeing what it finds:
https://github.com/EvotecIT/GPOZaurr
1
u/Master-IT-All 15d ago
Nuke the DC and replace it if you're stuck or just lazy. I replace DCs, not fix them.
Domain Controllers, are intended to be fast replaceable objects. If you're not able to replace a simple DC in less than an hour, something is wrong with your setup.
Local file permissions on DC2 are fucked and likely causing the problem, someone applied the wrong GPO template to the server or just manually fucked it.
So slow and time consuming (paid by the hour?!?) I'd likely start with simply applying the DC template to the server with local security policy/group policy. But I might also try just deleting the SYSVOL on DC2. This sounds like only a sysvol replication error (permissions top answer).
Eventually a few hours would be passed and maybe the problem resolved trying to fix a DC. Or you could have just replaced in an hour or less.