|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 1:52 AM
Points: 343,
Visits: 1,453
|
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Yesterday @ 6:22 AM
Points: 47,
Visits: 762
|
|
|
|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Friday, March 22, 2013 6:25 PM
Points: 4,
Visits: 34
|
|
| agree... but I still have not reached the holy grail of automating the patching, database failovers, reboots and failbacks of SQL servers in a 24x7 online environment. Has anyone?
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 6:10 AM
Points: 2,470,
Visits: 2,062
|
|
I got to the point where I was constantly fighting fires and never really getting anything "useful" done. So, I decided that I would stop fighting the fires. Instead, I decided that they would eventually burn themselves out whilst I was getting on with getting things in good shape (i.e. fixing the underlying causes of those fires). To my surprise, the decision did not cause as big a problem as you would think. As I fixed the causes, my life got easier and easier. It became easier to do everything I needed to do (in the end, I was the only SQL DBA, managing 40 SQL Server installation (all quite similar installations) and about 10 other SQL Server installations that were unique).
So, get the right level of automation in place and you really can do some amazing things (and go home at a reasonable time of day, every day)
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 1:52 AM
Points: 343,
Visits: 1,453
|
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 1:52 AM
Points: 343,
Visits: 1,453
|
|
happycat59, Well said sir!
You're not ignoring the problem by working towards actually fixing it for good. It's called paying down Technical Debt.
Thanks for sharing your story.
John Sansom (@sqlBrit) | www.sqlbrit.com The SQLBrit Community Forum - "There's so more to being a Data Professional than just technology."
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 1:40 PM
Points: 141,
Visits: 500
|
|
John.Sansom (4/6/2012) SQL-Expat, PowerShell can certainly help you with some of these tasks.
Agreed, I only picked up PowerShell a few months back, but it has been a life saver.
It has allowed me to:
- Populate a central repository of completed backups from all remote servers to watch for failures using SSRS. - Script a remote start up and shut down of all SAP services on SQL clusters for monthly patching. - Script the remote startup and shutdown of SQL services and bouncing of servers. - Push SQL Alerts to all SQL servers to create some standards across our global infrastructure.
If you haven't used it yet, I would begin reading. Very easy to pick up.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, September 27, 2012 9:09 PM
Points: 136,
Visits: 383
|
|
Still on the topic of automating maintenance tasks.. consider the following monthly security patch maintenance steps on 100+ SQL Servers with 500+ databases:
1. install monthly security patches on all mirror servers (automated tool) 2. monitor mirror servers for any security patch related issues... (semi manual) 3. reboot all mirror servers (automated/scripted) 4. confirm successfull reboot and QA mirror servers (semi automated...) 5. failover all principals to mirrors (automated/scripted) 6. monitor mirrors (new principals) for any security patch related issue (semi automated...but requires manual checks) 7. ensure applications have redirected to mirrors 8. patch and reboot principals 9. confirm successfull reboot and QA principal servers 10. failback all databases to principals 11. QA - replication, mirroring, log shipping, application connections etc, etc
Now, most of the individual steps are scripted/automated. The tough part is having a master script or control that coordinates it all - something that poll all servers and only continue the sequence when required.. Curious if anyone has reached full automation on the above...
In some cases servers require 2/3 reboots. Sometimes servers are in pending reboot state so require additional reboot before patching. Some servers can take 30+ minutes to reboot... Also, there's the suppressing of monitoring alerts during the maintenance too for things like Replication errors, log shipping latency, mirroring alerts etc.
thanks
SQL_EXPAT
|
|
|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Tuesday, March 19, 2013 9:40 AM
Points: 92,
Visits: 109
|
|
Thanks for posting this article, it describes my main drive in my work. In the past I used vbscript a lot, but became a convert of powershell and have never looked back since. I have noticed that I use SSIS a lot less since my powershell conversion  Powershell has even displaced my favorite scripting language, the mighty Python (may it live forever).
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 1:52 AM
Points: 343,
Visits: 1,453
|
|
|
|
|