+ All Categories
Home > Documents > Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... ·...

Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... ·...

Date post: 08-Apr-2020
Category:
Upload: others
View: 4 times
Download: 0 times
Share this document with a friend
20
Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution (How To) #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Mindy Curnutt CEO MCAC Consulting Eric Blinn Sr Data Architect Squire Patton Boggs #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM
Transcript
Page 1: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

Azure VMs + Log Shipping + Automation

A Budget Conscious DR Solution (How To)

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Mindy CurnuttCEO

MCAC Consulting

Eric BlinnSr Data Architect

Squire Patton Boggs

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Page 2: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

• Basics of Log Shipping

• MSDB Metadata

• Azure Blob Storage

• SQL Server on an Azure VM

• Azure Automation

• Scenarios / Considerations

• Discussion

Agenda

Page 3: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

• Primary Server (sends)

• Standby Server (receives)

• Backup Types Involved• Full Backup

• Transaction Log Backup

Log Shipping Concepts

Page 4: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

• 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

Log Shipping Concepts

Page 5: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

Full Backup

Differential Backup

Transaction Log Backup

12am 30GB6am 40MB7am 200MB8am 200MB9am 200MB10am 200MB11am 200MB12pm 1GB1pm 200MB2pm 200MB3pm 200MB4pm5pm

6pm

Full Backup

Diff Backup

Tran Logs

Manually Restore to 3pm, let system take it from there

Manually Restore to 1:15pm, don’t use differential as it is corrupt…

Page 6: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

Exec Remote

Job

Copy File

TlogBkp• 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

LogShipped

DB

Restore Tran Log

Page 7: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

System DatabaseDatabase ID 4

Supports:SQL AgentDBMailBackup/Restore HistoryOperators and Alerts

MSDB

Page 8: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

Restore Wizard

Page 9: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

SQL Agent

Page 10: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Azure Blob Storage Hierarchy

Azure

Storage Account

Container A

Page Blob File A1

Page Blob File A2

Container B Page Blob File B1

Page 11: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

• Resource Group

• Location of Data Center

• Page Blob for Backups

• Restoring (Page Size) specification

• Container

• Key (connection string parameters)

Azure Blob Storage Considerations

Page 12: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

Azure Blob Storage Type & Pricing

$.075/GB PER MONTH!

300 GB Transaction Logs x .075/month = $22.50/month

Page 13: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

Make with the demos!

Page 14: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

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

Page 15: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Example:

$350/month

1 hour day x 30 days

$0.486/hour

30 hours at $0.486/hour = ~$15/month

Azure VM with SQL Server Cost

Page 16: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

Make with the demos!

Page 17: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

• 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

Azure Automation

Page 18: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

• 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

Scenarios

Page 19: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

• Logins

• Jobs

• Linked Servers

• Apps on the box

• Upgrades SQL Box (patching)

• Stuff hiding in master

• Network Shares

Considerations

• Windows Scheduled Tasks

• Windows Auth Users?

• Service Accounts

• Trace Flags

• Temp DB

• Configurations

• Ramp Up Disk & CPU etc…

PRACTICE!

Page 20: Azure VMs + Log Shipping + Automationfiles.informatandm.com/uploads/2018/10/Azure_VMs_Log... · 2018-10-17 · Azure VMs + Log Shipping + Automation A Budget Conscious DR Solution

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Mindy Curnutt

@sqlgirl

mindy@mindycurnutt

Eric Blinn

@SQL2theSequel

[email protected]

Discussion & Questions


Recommended