- Видео 103
- Просмотров 356 272
Edwin M Sarmiento - SQL Server HA and DR
Добавлен 7 янв 2012
Edwin M Sarmiento is the Managing Director of 15C, a consulting and training company that specializes in designing, implementing and supporting SQL Server infrastructures. He is a 12-year former Microsoft Data Platform MVP and Microsoft Certified Master from Ottawa, Canada (but he’s originally from the Philippines) specializing in high availability, disaster recovery and system infrastructures running on the Microsoft server technology stack. His background in Unix has taken him to the world of DevOps and Docker to containerize SQL Server. He is very passionate about technology but has interests in music, professional and organizational development, leadership and management matters when not working with databases.
If you are looking into starting a career in tech but don't know how, visit www.youtube.com/@_edwinmsarmiento
If you are looking into starting a career in tech but don't know how, visit www.youtube.com/@_edwinmsarmiento
Configuring Basic Availability Groups in SQL Server Standard Edition
Thinking of deploying Basic Availability Groups in SQL Server?
This video walks you through how it is done.
But beyond the simple "Next...Next...Next" flow of the wizard, I'll explain the operational challenges you'll face with Basic Availability Groups.
Refer to this article on MSSQLTips for a guided documentation: Setup and Implement SQL Server 2016 Always On Basic Availability Groups
www.mssqltips.com/sqlservertip/4980/setup-and-implement-sql-server-2016-always-on-basic-availability-groups/
This video walks you through how it is done.
But beyond the simple "Next...Next...Next" flow of the wizard, I'll explain the operational challenges you'll face with Basic Availability Groups.
Refer to this article on MSSQLTips for a guided documentation: Setup and Implement SQL Server 2016 Always On Basic Availability Groups
www.mssqltips.com/sqlservertip/4980/setup-and-implement-sql-server-2016-always-on-basic-availability-groups/
Просмотров: 364
Видео
Using Distributed Availability Groups to do an OS, Hardware, and/or SQL Server Upgrade
Просмотров 403Месяц назад
This video demonstrates how to use Distributed Availability Groups to perform a hardware, OS, and/or SQL Server upgrade and/or migration. Refer to this article for the scripts used in this video www.mssqltips.com/sqlservertip/5053/setup-and-implement-sql-server-2016-always-on-distributed-availability-groups/
Automate Your Daily Database Checks with PowerShell
Просмотров 4153 месяца назад
I've done this presentation since the good old days of PowerShell v1.0 It has evolved throughout the years, incorporating new tools to accomplish one goal: automate daily database checks using PowerShell. You'll get a glimpse of how I do health checks for large SQL Server Always On Availability Groups at the end of the video. References: dbatools - dbatools.io/ dbachecks - dbachecks.readthedocs...
SQL Server Licensing for your Always On Availability Groups
Просмотров 6246 месяцев назад
Whether you like it or not licensing will have a direct impact on how you design and deploy your SQL Server Always On Availability Groups. In this video, I talk about licensing considerations when deploying SQL Server Always On Availability Groups. I will use the common design patterns to explain the licensing requirements for the different deployments.
Successfully Implement SQL Server Always On Availability Groups with Failover Clustered Instances
Просмотров 3,8 тыс.8 месяцев назад
This is a walk-through of building a SQL Server Always on Availability Group on top of a Failover Clustered Instance to achieve both local high availability and remote disaster recovery. This is a complex architecture. Make sure you include everyone involved in designing, implementing, and managing it during the planning phase. And while this video is less than an hour long, nobody builds this ...
Installing a SQL Server Failover Clustered Instance (SQL Server 2022 Edition) - Part 3
Просмотров 1,7 тыс.10 месяцев назад
This is an update to the video on SQL Server failover clustering installation. We will build a traditional 2-node SQL Server 2022 failover clustered instance on Windows Server 2022 - from start to finish. Part 3 is all about installing patches and updates on a SQL Server 2022 failover clustered instance. Make sure you watch until the end. I've included the process on how to slipstream SQL Serve...
Installing a SQL Server Failover Clustered Instance (SQL Server 2022 Edition) - Part 2
Просмотров 4,8 тыс.10 месяцев назад
This is an update to the video on SQL Server failover clustering installation. We will build a traditional 2-node SQL Server 2022 failover clustered instance on Windows Server 2022 - from start to finish. Part 2 is all about installing a SQL Server 2022 failover clustered instance and adding nodes. Part 1 is available here: ruclips.net/video/ams7V7CzpqE/видео.html Part 3 is available here: rucl...
Installing a SQL Server Failover Clustered Instance (SQL Server 2022 Edition) - Part 1
Просмотров 12 тыс.10 месяцев назад
This is an update to the SQL Server failover clustering installation. We will build a traditional 2-node SQL Server 2022 failover clustered instance on Windows Server 2022 - from start to finish. Part 1 is all about installing, creating, and configuring the Windows Server 2022 failover cluster. Part 2 is available here: ruclips.net/video/HTIFAUpewWM/видео.html Part 3 is available here: ruclips....
What SQL Server DBAs Need to Know About Docker Containers
Просмотров 4094 года назад
What SQL Server DBAs Need to Know About Docker Containers
Getting Started with Linux for the SQL Server DBA Edwin M Sarmiento
Просмотров 4826 лет назад
Getting Started with Linux for the SQL Server DBA Edwin M Sarmiento
Designing SQL Server AlwaysOn Availability Groups Topology
Просмотров 9 тыс.6 лет назад
Designing SQL Server AlwaysOn Availability Groups Topology
Setup and Configure Windows Server 2016 Failover Cluster Without Active Directory
Просмотров 35 тыс.6 лет назад
Setup and Configure Windows Server 2016 Failover Cluster Without Active Directory
The Real Secret to Successfully Upgrade SQL Server Environments
Просмотров 1,3 тыс.7 лет назад
The Real Secret to Successfully Upgrade SQL Server Environments
Creativity in Scarcity: Behind The Scenes of How I Created My Online Courses
Просмотров 3808 лет назад
Creativity in Scarcity: Behind The Scenes of How I Created My Online Courses
The Most Important Concept In Windows Failover Clustering
Просмотров 20 тыс.8 лет назад
The Most Important Concept In Windows Failover Clustering
Different Types of Microsoft High Availability Technologies
Просмотров 26 тыс.8 лет назад
Different Types of Microsoft High Availability Technologies
Installing and Configuring SQL Server 2012/2014 Reporting Services in SharePoint-Integrated Mode
Просмотров 8 тыс.8 лет назад
Installing and Configuring SQL Server 2012/2014 Reporting Services in SharePoint-Integrated Mode
Unexpected SQL Server Backups Break Your Disaster Recovery Strategy
Просмотров 3549 лет назад
Unexpected SQL Server Backups Break Your Disaster Recovery Strategy
Effects of a Full SQL Server Transaction Log
Просмотров 4,8 тыс.9 лет назад
Effects of a Full SQL Server Transaction Log
The Truth About SQL Server Backup Verification Using The GUI
Просмотров 9249 лет назад
The Truth About SQL Server Backup Verification Using The GUI
Factors Affecting SQL Server Database Recovery
Просмотров 3619 лет назад
Factors Affecting SQL Server Database Recovery
What Multibase Differential Backups Are and How To Deal With Them
Просмотров 2829 лет назад
What Multibase Differential Backups Are and How To Deal With Them
Installing and Configuring a Multi Subnet SQL Server (2012 and higher) Failover Clustered Instance
Просмотров 16 тыс.9 лет назад
Installing and Configuring a Multi Subnet SQL Server (2012 and higher) Failover Clustered Instance
Proactively Identify & Deal with SQL Server Database Corruption
Просмотров 1,3 тыс.9 лет назад
Proactively Identify & Deal with SQL Server Database Corruption
Installing a SQL Server Failover Clustered Instance
Просмотров 105 тыс.9 лет назад
Installing a SQL Server Failover Clustered Instance
Build a Personal Hyper-V Lab with Windows Server 2012 R2
Просмотров 15 тыс.9 лет назад
Build a Personal Hyper-V Lab with Windows Server 2012 R2
SQL Server Database Recovery Techniques
Просмотров 4,9 тыс.10 лет назад
SQL Server Database Recovery Techniques
Are you working with CZ recovery services?
Thanks for the explanation. What about licensing VMware ESXi hosts? Suppose you have 2 ESXi hosts that you will license with SQL Enterprise. You can put a number of VM's on it. We setup SQL"s with AG primary/secondary. If you intend to use the second ESXi host as a "passive host" (serving all secondaries). Do you need to license the TWO hosts or only the host what is running the VM's that are a primary node of the AG? Thank you!
Same rules apply even with VM hosts. The bigger challenge is making sure that the second ESXi host is really only a passive host.
Hi Edwin, nice and clear demo. Thank you. So since your AG1 and AG2 have a different DNS record for the listener, your applications will still need a small config change in their connectionstring. The best thing I can come up with for this is using a CNAME record in the connection string, pointing to the old AG1 listener. Your applications can adapt this connectionstring change whenever you want in forehand. Then on doing the DAG failover, just changing the CNAME record to point to the AG2 listener (with a small TTL already set). That's for the part of being independent of your application developers and having minimal downtime. So, there "IS" actual a little downtime on failover. Are you aware of an even better way? Bringing the AG2 db's out of recovery mode will ofcourse require some downtime on rollup. Can you drop the DAG afterwards using the DROP AVAILABILITY GROUP statement on the DAG? No further action required? Thank you!
> The best thing I can come up with for this is using a CNAME record in the connection string, pointing to the old AG1 listener. Same here. This is how I've been doing it since the early 2000s. Everything is abstracted. > Are you aware of an even better way? You can implement this on the network layer and have the network device do the automatic redirection. But that's a more complex and expensive implementation. And I don't use it for this specific scenario. > Can you drop the DAG afterwards ... Yes, you can. You won't be needing the old environment after the upgrade.
Thank You very much
I'd like to express deepest gratitude to you, Edwin, for dedicating your time to prepare these series. Incredibly helpful, incredibly enriching.
My pleasure. Nowadays, very few companies are deploying SQL Server failover clustered instances. Majority of the deployments are Always On Availability Groups. And there isn't a single comprehensive source on how to properly do it.
Dear Edwin, we truly appreciate the effort you have put into creating this material. It's certainly very helpful.
Very informative , thanks for your effort to make this video's
The article and the video use different server names. very confusing
Confusing, indeed. That's why deploying Distributed Availability Groups is not for everybody.
This is realy great! Just a tip if You try to setup this in Oracle Virtual Box: Uninstall the Utilitys (on ALL Nodes and the DC, otherwise You'll face Errors like (Network address is invalid or Access is denied").
Thanks for the tip.
@EdwinMSarmiento, I'm trying to install the SQL failover cluster and am getting the error below. can you please help? 2024-11-15 09:22:05.574 E SQL Server 2022 transmits information about your installation experience, as well as other usage and performance data, to Microsoft to help improve the product. To learn more about SQL Server 2022 data processing and privacy controls, please see the Privacy Statement. Notice: A paid SQL Server edition product key has been provided for the current action - Standard. Please ensure you are entitled to this SQL Server edition with proper licensing in place for the product key (edition) supplied. The following error occurred: The state of your SQL Server installation was not changed after the setup execution. Please review the summary.txt logs for further details. Error result: -2068643838 Result facility code: 1203 Result error code: 2 Please review the summary.txt log for further details Microsoft (R) SQL Server 2022 16.00.1000.06
> Please review the summary.txt logs for further details. What does the Summary.txt log say?
Best trainer. I used your Cluster videos to retrain myself.
Glad they are helpful
Clearly explained! Great job!
Hi Edwin, just a remark to this great presentation, at +- 20 minutes you're bringing online the harddisks and initialized them as MBR. For drives not required to boot from it is adviced to initialize as GPT as these drives can serve volumes larger than 2TB. MBR cannot go beyond that limitation.
Agreed. I've been waiting since Windows Server 2008 for someone to finally notice. You're the only one 😊 Remember the good-old days of Windows Server 2003 SP1?
Very good and clear presentation. I'm sure this is an added value for beginners.
Thanks. The power lies in customizing the checks according to specific internal and recommended best practices while running it across multiple servers at the same time - without doing anything because it's automated.
I can consider myself expert now 😎🤣
Not able to Download the Cluster Preparation Checklist. No email has been received. Can you send me the working link?
Did you check your Spam folder?
where are the four storage drive came from? Is it shared or its from the internal HDD?
SQL Server failover clustered instances require shared storage. A SAN that supports SCSI-3 persistent reservation can be used as shared storage.
@@EdwinMSarmiento Dear Sir, thanks for the reply. I am trying to implement a SQL Always On high availability with 3 nodes where two is in one premises and another one is in remote premesis, which are connected over Ipsec tunnel. The problem is, in cluster configuration, in the validation it says the remote one is not connected or turned on whereas its connected and can be ping through Name or ip, moreover all neccsessary ports for cluster are opened in both routers and nodes but still cant connect. Can you please help me out?
@@ahmedreja3717 This requires a more intensive troubleshooting to figure out the root cause and not something a response can solve.
Thanks and Grateful to you. I have a question, the MSSQL has been installed as Failover over Windows Cluster. Now I have an web application(IIS and Apache based), do i have to also install it on both node and how can i add them in Cluster role?
If your goal for installing MSSQL on Windows Server Failover Cluster is high availability, then, don't install it on any of the nodes.
Really Awesome. Grateful to you
which udemy course included this training pls?
This one www.udemy.com/course/sqlserverhadrdeepdive However, just because you can follow a video tutorial doesn't mean you'll be able to implement it properly. Building a SQL Server failover clustered instance requires properly configuring every layer in the stack - servers, VMs (if you're running virtual machines), storage, networking, Active Directory, DNS, failover clustering, and SQL Server. One misconfiguration is all it takes to cause an extended outage.
Did this in 1999 Advanced Server 2000 and SQL7 clustering, BLAST from the PAST
Wolfpac with Sphinx, for those who still remember the codenames 🙂 The principles and concepts remain the same...despite all the hype of whatever is new in the industry
just in time. I needed this info and it was 2 weeks ago! Subbed now :) Need to watch more of your videos.
what happens to the tlogs if the replica is offline? does it grow forever ?
This happens 🙂 ruclips.net/video/BSS4G087UeM/видео.html I used this example to demonstrate the effects of tlogs growing and getting full until it can no longer do so. The application may throw an error that doesn't explicitly tell you it's a SQL Server problem.
@@EdwinMSarmiento what can be done to reduce the size of it in this case?
@@AnandNarine Monitor and take precautionary measures to make sure the tlog files do not grow to a size that fills up the disk. That really is all there is to it.
Bro im becoming your fans , this tutor really helpful , subscribed and please do another good job again for sql server 🎉🎉🎉
hi. you mentioned providing a link to the cluster preparation checklist spreadsheet?
The link should be on the description learnsqlserverhadr.com/clusterprepchecklist
Can SQL cluster work on a workgroup environment instead of an Active Directory environment? Thank you. Btw, cannot find the link to download the checklist, thank you.
> Can SQL cluster work on a workgroup environment instead of an Active Directory environment? If you're referring to a SQL Server failover clustered instances, it's not supported. Only SQL Server Always On Availability Groups work with workgroup clusters as of SQL Server 2022. Here's a video on how to install and configure a Windows Server Failover Cluster without Active Directory ruclips.net/video/jDvqP1372Lo/видео.html
@@EdwinMSarmiento Thank you very much for the reply.
Can CUs be applied by just pausing a node and draining the roles and vice versa?
I do not recommend the node drain feature for SQL Server. It wasn't designed with SQL Server in mind. It's for Hyper-V workloads
Love the incredible detail you provide. Thanks for taking the time to share this with us!
Thanks for taking the time to go through each step! Extremely helpful for me! I'm going through a two-node cluster setup.
Pls make video on always on high availability also.
Have a look at this ruclips.net/video/DmH81mGGZwg/видео.html
@@EdwinMSarmiento can you make a video on how to configure the on always on high availability and it failover. What is the different between the normal HA and the always on HA, thanks.
@@jeffreyooi1971 Are you referring to this? ruclips.net/video/A8lSl8nO1r4/видео.html
@@EdwinMSarmiento is it the same configuration or setting apply to SQL server 2022 too as the video is 12 years ago, thanks.
@@jeffreyooi1971 There have been a lot of configuration changes since SQL Server 2012. And these subtle changes can cause a major outage if not done properly. I'll release an updated video on installing and configuring SQL Server Always On Availability Groups
i see is a pretty old video, but i have a question.... why use dns and not edit a hosts file ? i wll have less dependency ... you depend from DNS in this way.... is still the same with 2022 ?
> why use dns and not edit a hosts file Scalability. When you have more than 2 nodes to manage, you have to think of how you can do more with less.
Found this from a post from Erik Darling. A bit late yet great discovery
This video deserves all the awards.
please release the audio format in Google Podcasts & other audio channels.
Don't stop. You have a quality cintent
Thanks
Thanks for you , Really Nice
'Promosm'
please release the audio format in below podcasts channels as it helps listening while commuting/working. thanks
Thanks for sharing 💯
- all questions are based on: a. Stand Alone Servers b. No shared storage c. All are on the same subnet (except for DR) 1. How would you do HA & DR for SQL 2019/2022 in docker containers, and have AlwaysOn AG /w Listener? 2. Can you have HA & DR on 2/3 Windows Server 2022 Core + SQL Server 2022, With AlwaysOn AG /w Listener? 3. Can you have HA with just SQL Server 2022 docker containers with AlwaysOn AG /w Listeners? 4. How do you do failover for HA & DR on SQL Server 2022 in docker with ALwaysOn AG /w Listener? Please & Thanks.
My responses below: 1) Why do you need to run Always On Availability Groups on Docker containers? 2) Yes 3) Same as #1, why do you need it to be on Docker containers? 4) Same as #1, why do you need it to be on Docker containers?
@@EdwinMSarmiento it should be the cheapest way to have HA is terms of resource. containers are easy, but unless you are using shared storage to start up a new host you will have data loss. Plus, I just wanted to know if it's possible. With AG the data should stay synced, that way you don't have to worry about the container if one goes down, just auto start a new one & sync the data.
@@fbifido2 What are your HA goals? RPO? RTO? It is possible to do what you want. But without having a clear HA goal - RPO/RTO/SLA + the apps connecting to the DB - what's the point? Start with defining the goal as clearly as you possibly can
🤣 *Promosm*
Great work. Thank you.
Excellent explanation. A teacher at work!
So true, you are spot on.
I have one question. We have 3 nodes configured, 2 of which are in the primary datacenter and 1 in the disaster recovery datacenter. All of the systems are set up with Windows 2019 and SQL 2019, and the primary datacenter's DB is configured with synchronous data transfer while the DR is configured with asynchronous data transfer. My issue is: Should we use Azure storage or where can we put the Witness server?
Check your email 🙂
Thanks
This is the hammer in the right nail. I really appreciate your inside on this subject. I hate the idea of joining Hyper-V host to a Domain. I have been looking for a solution to this. I know I will loose some Hyper-V functionality like VM Replicas and Live Migration. But that's is an acceptable lost to me because I haven't had the need for either so far after 10 years using hyper-v.
Edwin this video is SHOW, congratulations about this technical profile and experience with SQL Server FC
I still don’t understand why someone have synchronous node on DR site or different data centre having different subnet , what do you recon Edwin, why it would be a case ? What advantage or disadvantage we could have
This is typically a side effect of not being clear on the goal and not understanding the capabilities and limitations of the technology. There are more disadvantages over advantages of having a synchronous replica on a DR site. At the end of the day, they're all irrelevant unless the goal is well defined.
do you have a Database mirroring tutorial?
Have a look at the Database Mirroring articles here: www.mssqltips.com/sql-server-tip-category/64/database-mirroring/