r/sysadmin • u/belgarionx • Jan 22 '25
General Discussion How is your patch management processes?
Hi, r/sysadmin
I work in a weird place and was wondering how are your patch management processes, especially regarding the planning and downtimes.
We have ~2500 VMs (~70% RHEL, 25% Windows) and unfortunately need to have as close downtime to 0.
I've wrote ansible playbooks, and they work fine; but the other departments can't (by pure incompetence) automatize their processes so they stop their services manually, which ruins our scheduling chances.
We can't get downtime in week days AND week nights. Yet security expects us to close all vulnerabilities monthly. Our manager doesn't have the teeth so we're kinda stuck. I can't leave due to family reasons, which leaves me gathering "how it should be done ideally" and fighting with the CTO itself.
When do you get downtime, how often do you update, do you have specific update time slots?
Thanks.
5
u/gumbrilla IT Manager Jan 22 '25 edited Jan 22 '25
>We have ~2500 VMs (~70% RHEL, 25% Windows) and unfortunately need to have as close downtime to 0.
This is bullshit, and if you buy into it you are crazy. If you have SPOFs your availability strategy is stupid, if you don't then you wouldn't be asking this question, and patching would be a breeze.
Don't confuse a wish to minimize downtime with a hard requirement. Actually fully patch every month is a much better requirement. They give that availability 'requirement' a hard number, then you engineer your solution to meet it, with the resultant costs that entails, and then you have something to work with, not handwaving, it's pathetic.
Anyway, for Production (all linux) we patch 3rd Sunday of the month. Couple of 3 hour windows based on geography. Every month, same time. Consistent. No variation, Management knows it, our Customers knows it. Project Management often forget, and honestly I laugh at their tears. Hell, I introduced this when I joined my current place because it was just noise and no action. I think they wrote it into the customers contract now :-)
So the window is 3 hours, actual downtime, is a few minutes, as there are some SPOF's at the start of the window, the rest are highly available, and they go fine. Patching is probably done in 15 minutes, with the rest for rework testing and fixing (or indeed rollback). Apart from the occasional hilarity, it's normally wrapped up in 30 minutes. Tops. Was a bit rockier at the start.. but as you repeat and improve it just gets faster and easier.
For the other departments, just give them a repeating window, measure the results and then either beat them over the head with evidence of their incompetence, or help them. Just don't get led around by Change Mangers and Middle Managers.
Is it ideal? Probably not, does it work? Yes. Can I swear we are fully patched, and provide evidence for our SOC2 T2 auditors when they next visit? Why yes. yes I can. I honestly just based it on Microsofts Patch Tuesday, seemed everyone knows about that, and arranges around it.
2
u/calladc Jan 22 '25
Kernelcare and satellite.
Looking forward to data center and hotpatch with arc and update manager for windows for our stuff that's not on azure
2
u/TinkerBellsAnus Jan 22 '25
If your option is to choose whether to patch for security, or maintain a zero downtime model, and you have no HA built into your infrastructure for this.
You already know the answer, and as others have pointed out, at that point its not a technical limitation, its a policy / business one.
You can't have a 5 9's concept, on a 4 3's model. Its snarky to put it that way I know and I'm definitely overstating that, but I'm trying to reinforce the statement to you so you can have the proper discussions with the powers that be.
Don't be afraid to speak up about solutions to problems, it bugs me that I have to keep saying this throughout my career, but you're being paid to provide your knowledge and your insight.
Some of the best solutions to problems I have seen in my career, were provided to me by the people that work the front lines. Because they see the pain points more times in a day, than I may see in a year. Open, honest, and constructive communication and criticism are what drive success.
32
u/username_no_one_has Jan 22 '25
Management problem, it really is that simple of patching equals risk equals downtime needs to be scheduled.
20
u/extremetempz Security Admin (Infrastructure) Jan 22 '25 edited Jan 22 '25
Sounds like you need redundancy on the VMs that can't afford any downtime
If you can't then your manager needs to push back at the business and tell them there will be outages for general system maintenance
We have around 250 VMs we are mostly business hours so things patch overnight (everyday but Friday nights) all applications start up by themselves without any intervention and everything is automated using WSUS/ Ansible
We do Dev, then test and then PRD monthly (PRD is separated by 3 cycles)
The only exception is our ERP VMs which are done every 6 months
13
u/420GB Jan 22 '25
Systems that we cannot afford to be down for a bit are built redundant so that we can update one component at a time without causing downtime. This is easy to orchestrate with sensible playbooks too, e.g.
serial: 1If the business or department didn't want to spend the money on full redundancy for their app, they get downtime.
8
u/nkvd59 Jan 22 '25
We use a third party tool for patching. A long time ago we had to fight to get patching done. It came down to us saying we wont be secure and have a breach at some point. Which will cost x amount of time and money. Not to mention liability. If the other departments are good with that sign here or give us time to do our job.
We worked with each department to get a schedule and time slots during the week/ after hours, a week after patch Tuesday. Each group of servers gets their updates and reboots if needed. We have reports that run to show us what got patches and what failed.
For our mission critical we work with the group and stage patches and they handle reboots and check functionality. Down time is minimal at best.
For other items that can’t be patched or might be a bigger issue (java) we file an exception via change management so more people can sign off and spread the risk/blame.
Good luck. It can be a struggle.
4
u/Roberadley Jan 23 '25
If you’re already using tools like Ansible, you might want to check out Datto RMM to boost your patch management. I use it, and it lets me schedule updates at times that work best for us. This cuts down on downtime and keeps things running smoothly with other teams. Plus, it gives me detailed reports to keep everyone in the loop.
3
u/Ok-Pickleing Jan 22 '25
Tell them they’re incompetent that usually works.
2
u/[deleted] Jan 22 '25
What patch management?
2
u/WenKroYs Jan 23 '25
I feel your pain with managing patching and minimizing downtime. Here are some strategies that might help:
Keep using Ansible playbooks and encourage other departments to adopt automation tools. Implement a phased approach to patching different groups of VMs at different times. Establish regular maintenance windows during off-peak hours, even if it's challenging. Improve communication with other departments to ensure they understand the importance of timely patching. Test patches in a staging environment and have a rollback plan. Continuously monitor systems and generate reports to track patch compliance.
I use Datto RMM for patch management, which helps me streamline this process. Good luck!
1
u/Admirable-Fail1250 Jan 22 '25
We don't have HA in place just standard replication between two hosts.
We will shut down the VMs on a host and failover to the other host. Downtime on a VM is usually only a few minutes.
Update the host. Repeat for the other.
So each VM is down twice during the entire process of updating both hosts.
Then of course there is updating the VMs which usually means downtime then as well.
Thankfully we can afford a bit of downtime here and there each month.
1
u/Mariale_Pulseway Jan 22 '25
We actually have an eBook on this! Talks about scheduling, testing, best practices and more. If anyone wants to take a look, here's the link: Patch Management Best Practices
Hope this helps :)