Disaster Recovery Done Dirt Cheap Founder Curnutt Data Solutions

Slides:



Advertisements
Similar presentations
Burt King We will cover: Essentials --No command line needed here (mott) What is SQL Server How does it come to life What are the.
Advertisements

Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
SQL Server Disaster Recovery Chris Shaw Sr. SQL Server DBA, Xtivia Inc.
FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.
SQL Server 2005 Implementation and Maintenance Chapter 10: Maintaining and Automating SQL Server.
Chapter 12 - Backup and Disaster Recovery1 Ch. 12 – Backups and Disaster Recovery MIS 431 – Created Spring 2006.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
CS27510 Commercial Database Applications. Maintenance Maintenance Disaster Recovery Disaster Recovery.
Inside Windows Azure Virtual Machines Vijay Rajagopalan Microsoft Corporation.
1 Chapter Overview Understanding Backup Terms, Media, and Devices Backing Up Databases, Files, Filegroups, and Transaction Logs Restoring a User Database.
Global Windows Azure Bootcamp Auckland March
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
SAP on windows server 2012 hyper-v documentation
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
Module 13 Automating SQL Server 2008 R2 Management.
SQL Server 2008 Implementation and Maintenance Chapter 7: Performing Backups and Restores.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
It is one of the techniques to create a stand by server. Introduced in SQL 2000,enhanced in It is a High Availability as well as Disaster recovery.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
Maintaining a Mirrored Database Tips and Tricks by Paul G. Hiles.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Introduktion till Azure SQL Database Robert Folkesson Active Solution.
Module 13 Implementing Business Continuity. Module Overview Protecting and Recovering Content Working with Backup and Restore for Disaster Recovery Implementing.
11 DISASTER RECOVERY Chapter 13. Chapter 13: DISASTER RECOVERY2 OVERVIEW  Back up server data using the Backup utility and the Ntbackup command  Restore.
4/24/2017 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
IN-MEMORY OLTP By Manohar Punna SQL Server Geeks – Regional Mentor, Hyderabad Blogger, Speaker.
High Friction & Control Resources Dedicated Shared Low 100% of API, Virtualized Roll-your-own HA/DR/scale SQL Server in IaaS Virtualized Machine SQL.
Maintenance Practices. Goal  Automate the necessary DBA chores to put organizations on the path of having healthier, consistent and more trustworthy.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Digging Out From Corruption Eddie Wuerch, MCM - Principal, Database Performance - Salesforce Marketing Cloud Data protection and loss recovery with SQL.
Putting Your Head in the Cloud Working with SQL Azure David Postlethwaite 19/09/2015David Postlethwaite.
AGENDA 1.Importance of backups and backup strategy 2.Full DB backup and Restore 3.Filegroup Backup and restore 4.File Backup and Restore 5.Page restore.
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
AlwaysOn In SQL Server 2012 Fadi Abdulwahab – SharePoint Administrator - 4/2013
Putting Your Head in the Cloud Working with SQL Azure David Postlethwaite 18/06/2016David Postlethwaite.
SQL Server as a Cloud Service April 15th 2016 Warner Chaves Data Platform MVP/SQL Server MCM.
Calgary Oracle User Group
Managing a database environment in the cloud
Backups for Azure SQL Databases and SQL Server instances running on Azure Virtual Machines Session on backup to Azure feature (manual and managed) in SQL.
Sponsors.
SQL Server Agent All the Knobs You Need to Know
Effective T-SQL Solutions
You Inherited a Database Now What?
SQL Replication for RCSQL 4.5
Curacao SQL Saturday June 11, 2016
Justin Randall SQLintersection Session: Friday, 10:00am-11:15pm Automating SQL Server Administration Using SQLCMD Justin Randall.
Azure Mobile Services + Windows Phone 8
Lead SQL BankofAmerica Blog: SQLHarry.com
Disaster Recovery and SQL for new and non-DBAs
Example of a page header
Building Effective Backups
Windows Azure Migrating SQL Server Workloads
Server & Tools Business
Summit Nashville /14/2018 9:26 PM
Automating SQL Server Management
Introduction of Week 6 Assignment Discussion
By Saru Radhakrishnan Member - Sacramento SQL Server Group 07/28/2018
Azure and SQL Server: Getting the best out of the cloud
Making PowerShell Useful
Backup and Restore your SQL Server Database
Backup to Basics Tom Fox
Making PowerShell Useful
Disaster Recovery is everyone’s job!
You Inherited a Database Now What?
February 11-13, 2019 Raleigh, NC.
Ch 10. Maintaining and Automating SQL Server
Hybrid Buffer Pool The Good, the Bad and the Ugly
Designing Database Solutions for SQL Server
Presentation transcript:

Disaster Recovery Done Dirt Cheap Founder Curnutt Data Solutions @SQLGirl Disaster Recovery Done Dirt Cheap Mindy Curnutt Founder Curnutt Data Solutions

About Me @sqlgirl mindy@curnuttdatasolutions.com

@SQLGirl

On Prem SQL Server Azure VM with SQL Basic Concept Delayed / Daily @SQLGirl Basic Concept On Prem SQL Server Azure VM with SQL Delayed / Daily Restore Log Ship

SQL Server on an Azure VM Azure Automation Scenarios / Considerations @SQLGirl Agenda Basics of Log Shipping MSDB Metadata Azure Blob Storage SQL Server on an Azure VM Azure Automation Scenarios / Considerations Discussion

Primary Server (sends) Standby Server (receives) Backup Types Involved @SQLGirl Log Shipping Concepts Primary Server (sends) Standby Server (receives) Backup Types Involved Full Backup Transaction Log Backup

Log Shipping Concepts Full Backup Transaction Log Backup @SQLGirl Log Shipping Concepts Full Backup Full copy of the entire database at the time of the backup Transaction Log Backup Only possible when DB is in Full Recovery Mode Must have already Completed a Full Backup Chain together during restore of DB All changes since any previous Full or Tran Log Backup Clears out the transaction log and prevents it from growing excessively large

Transaction Log Backup Full Backup Differential Backup Transaction Log Backup 12am 30GB   6am 40MB 7am 200MB 8am 9am 10am 11am 12pm 1GB 1pm 2pm 3pm 4pm 5pm 6pm Full Backup Diff Backup Tran Logs Manually Restore to 1:15pm, don’t use differential as it is corrupt… Manually Restore to 3pm, let system take it from there

Production Server Standby Server Transaction Log Backup Job Tlog Bkp Production Server Transaction Log Backup Job Task 1 Perform Transaction Log Backup Task 2 Copy File (ie: local, UNC Path, Azure Blob Storage…) Standby Server Restore Log(s) Option A: Execute Task to Restore Log(s) Option B Reallocate VM Restore Log(s) from Blog Storage Deallocate VM Prod DB Copy File Restore Tran Logs Log Shipped DB

@SQLGirl MSDB System Database Database ID 4 Supports: SQL Agent DBMail Backup/Restore History Operators and Alerts

Restore Wizard Ever wonder where it gets that information so fast? It didn’t scan a file share. It didn’t read a log file. It gets this from a series of tables.

SQL Agent Jobs. Job steps. Job history. All stored in tables. Why does it cut off the history at some point? It’s an NVARCHAR(4000).

Azure Blob Storage Hierarchy Storage Account Container A Page Blob File A1 Page Blob File A2 Container B Page Blob File B1

Azure Blob Storage Considerations @SQLGirl Azure Blob Storage Considerations Resource Group Location of Data Center Page Blob for Backups Restoring (Page Size) specification Container Key (connection string parameters)

Azure Blob Storage Type & Pricing $.075/GB PER MONTH! 300 GB Transaction Logs x .075/month = $22.50/month

Creating an Azure VM with SQL Server @SQLGirl Creating an Azure VM with SQL Server Resource Group HDD and SSD (pricing) Let’s discuss BYOL vs not BYOL Not BYOL is priced “per minute” – logic behind deallocating. Two prices to consider: SQL License & Compute

Azure VM with SQL Server Cost @SQLGirl Azure VM with SQL Server Cost Example: 2-vCPU / 32 GB RAM / HDD storage ~$350/month 1 hour day x 30 days $0.486/hour 30 hours at $0.486/hour = ~$15/month

Azure Automation Starting & Stopping Azure VM Tools @SQLGirl Azure Automation Starting & Stopping Azure VM Tools AZCopy Command Prompt Powershell Other tools would work just fine (pick what you’re comfortable with) SSIS .Net Anything that can plug into Azure APIs

Get data from 1 hour ago to fix an oops Plan “G” @SQLGirl Scenarios Virus on Network Crypto Attack Get data from 1 hour ago to fix an oops Plan “G” Natural Disaster (maybe even Regional) Not much budget at all for DR

PRACTICE! Considerations Logins Jobs Linked Servers Apps on the box Upgrades SQL Box (patching) Stuff hiding in master Network Shares Windows Scheduled Tasks Windows Auth Users? Service Accounts Trace Flags Temp DB Configurations Ramp Up Disk & CPU etc… PRACTICE!

Discussion & Questions @SQLGirl Discussion & Questions Mindy Curnutt @sqlgirl mindy@curnuttdatasolutions.com curnuttdatasolutions.com