DC patching

Status
Not open for further replies.
Hi Folks,Someone else's post triggered a question for me, regarding domain controllers with respect to patching and reboots. I'm not a primary AD admin in our company but those who are don't regularly patch with the excuse of losing sessions and interrupting too many *things* that are referencing each DC (i.e. Some services use a DC directly for LDAP, others for authentication, etc. Not setup right at the app level, a pain to track down and correct when there are bigger fish to fry).

Anywho...is it not possible to move a role(s) From a DC to free it up in a graceful manner and then do patching /upgrades, reboot etc.? This won't catch those misconfigured apps and services of course but it will help identify quickly what they are so we can try to fix to make more robust. And get more recent with patches on the DC's.  

How do you patch them without interrupting authentication? ‎
 
Nothing user-facing from a DC should be holding state, except for actual Windows domain authentication attempts. Exchange, for example, will easily deal with a DC in its site going down, as long as there are others in the same site. It's possible that some other crappy apps might not be able to gracefully handle their configured LDAP/AD servers becoming unavailable either through poor retry logic (or none at all), in which case those DCs would have to wait until a maintenance window or other lull in business activity.
 

TalonAI

Ars Scholae Palatinae
869
Subscriptor
It also helps to point LDAP at something other than your domain controllers. When we did our last domain upgrade I created VIPs on the F5 that load balance across multiple domain controllers. We use a few of these based off function for added flexibility, and to evenly distribute the load, (apps.ldap.domain, unix.ldap.domain, security.ldaps.domain etc)

It makes maintenance easier, and the next time you upgrade/replace your DCs you just update the targets for the VIP and don't have to worry about what your applications/servers are pointed at, unless you have folk not following your standards. You can do the same thing with DNS
 
Thanks all, we've been trying to use dns aliases and balancers as a proxy where each fits to make upgrades and maintenance easier but the older more entrenched stuff (which ironically is the more mission critical stuff) still needs weeded out (we suffer from lack of motivation to fix supposedly unbroken things (and I see value in that, to a degree) and fear of breaking stuff (well, not me personally, I think it's more risk to let it age like we have but I'm also not the one signing the cheques either) in our environment) . I'll promote patching during our preventative maintenance window again, with some cloud backing (that's you) ;o)
 

Sagan :]

Ars Legatus Legionis
18,659
Subscriptor
Thanks all, we've been trying to use dns aliases and balancers as a proxy
I hope that for your App servers and not for Domain Controllers... That could break a domain pretty badly, and its completly unnecessary. A domain can function just fine even with FSMO roles off line for many many hours. All thats needed is the domain to be healthy already, sites setup properly, and a global catalog online at all times and reachable.
 

Dilbert

Ars Legatus Legionis
34,009
Don't worry about it. A particular FSMO role disappearing for 2 minutes is not going to affect anything except maybe badly written code querying a hardcoded domain controller. Perfect time to weed those out and fix them. :)

We reboot half our DCs and the VM hosts and a few physical servers we still have left at 1 AM, then VM guests and the other half of the DCs at 3 AM. Nothing is scheduled for 2 AM because once a year it doesn't happen at all and once a year it happens twice. :p
 

Dilbert

Ars Legatus Legionis
34,009
^^ I used to do that too.... until I realized it was creating twice the workload for me. I had to get up early two different mornings to check out the systems post-patching. So I switched to same night 2 hours apart. (Doubtful there will ever be a patch cycle that takes more than 2 hours to install and reboot, and if it ever happens we'll learn about it in testing.) IT department here is just 10 people and there's only one Windows Server guy.

Also, in 10+ years of doing this we've never had a system-wide problem crop up after deploying updates. Individual server or two going stupid for various reasons, sure. And we test the updates before deploying. So yes there's a risk of installing updates on every host in one night, but it is pretty minimal.
 
Status
Not open for further replies.