Top Banner
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Disaster Recovery 101 Brent Ozar, Quest Software
34

Disaster Recovery 101

Jul 07, 2015

Download

Technology

Quest Software
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Disaster Recovery 101

© 2008 Quest Software, Inc. ALL RIGHTS RESERVED.

Disaster Recovery 101

Brent Ozar, Quest Software

Page 2: Disaster Recovery 101

Brent Ozar

• SQL Server Expert for

Quest Software

• Former SQL DBA for

$7b company in

Hurricane Alley

• Managed >80tb SAN,

VMware

Page 3: Disaster Recovery 101

Today’s Agenda

• HA vs DR– HA Options

– DR Options

• Backup Best

Practices

• Learned the

Hard Way

• Resources

Page 4: Disaster Recovery 101

Common Backup Schedules

1. Daily fulls

2. Daily fulls, frequent t-logs

3. Weekly fulls, daily diffs, frequent t-logs

4. “What backups?”

Page 5: Disaster Recovery 101

High Availability is for: Disaster Recovery is for:

Photo licensed with Creative Commons, used from:

http://www.flickr.com/photos/melancon/280076809/

Photo licensed with Creative Commons, used from:

http://www.flickr.com/photos/meltedplastic/2854777253/

Page 6: Disaster Recovery 101

• Replication

• Asynchronous Mirroring

• Log Shipping

• SAN Replication

• Virtualization Replication

High Availability: Disaster Recovery:

Photo licensed with Creative Commons, used from:

http://www.flickr.com/photos/melancon/280076809/

Photo licensed with Creative Commons, used from:

http://www.flickr.com/photos/meltedplastic/2854777253/

• Clustering

• Synchronous Mirroring

• Replication

Page 7: Disaster Recovery 101

HA: Clustering

Page 8: Disaster Recovery 101

HA: Synchronous Mirroring

Page 9: Disaster Recovery 101

Both HA, DR: Replication

Page 10: Disaster Recovery 101

DR: Asynchronous Mirroring

Page 11: Disaster Recovery 101

DR: Log Shipping

Page 12: Disaster Recovery 101

DR: SAN Replication

Page 13: Disaster Recovery 101

DR: Virtualization Replication

Page 14: Disaster Recovery 101

• Replication

• Asynchronous Mirroring

• Log Shipping

• SAN Replication

• Virtualization Replication

High Availability: Disaster Recovery:

Photo licensed with Creative Commons, used from:

http://www.flickr.com/photos/melancon/280076809/

Photo licensed with Creative Commons, used from:

http://www.flickr.com/photos/meltedplastic/2854777253/

• Clustering

• Synchronous Mirroring

• Replication

Brent’s Personal Favorites

Page 15: Disaster Recovery 101

Backup Best Practices

• Never back up directly to

local disk

• Back up to file share

• Back up to different SAN

• Back flat files up to tape

• Get the tapes offsite fast

• If it’s really critical, mirror

the backups

Photo licensed with Creative Commons, used from:

http://www.flickr.com/photos/darwinbell/465459020/

Page 16: Disaster Recovery 101

Avoid Agents

• Lose schedule control

• Can’t gauge success

Photo licensed with Creative Commons, used from:

http://www.flickr.com/photos/practicalowl/314989744/

Page 17: Disaster Recovery 101

Do Fire Drills Ahead Of Time

• Build a standalone

restore testbed

• Document how

long a restore will

take for managers

• Update it quarterly

• Trust no one

Photo licensed with Creative Commons, used from:

http://www.flickr.com/photos/millzero/705902956/

Page 18: Disaster Recovery 101

Tale of Two Bookmark Services

Page 19: Disaster Recovery 101

http://delicious.com/brento

Page 20: Disaster Recovery 101

Worst Case Scenario

Page 21: Disaster Recovery 101

Lessons Learned

• Test your backups

• Retain your backups

• Know business value of backups

Page 22: Disaster Recovery 101

Log Shipping Lesson Learned

Production

SQL Server

Production

SQL Arrays

SAN #1 SAN #2

HA

SQL Arrays

High Availability

SQL ServerLog Shipping

Page 23: Disaster Recovery 101

Surprise!

Production

SQL Server

Production

SQL Arrays

SAN #1 SAN #2

HA

SQL Arrays

High Availability

SQL ServerLog

Shipping

File Server

Arrays

File

ServerLog

Shipping

Page 24: Disaster Recovery 101

Brent’s Role Swap of Doom

Disaster

Recovery

Datacenter

Production

Datacenter100MB connection

Data synced to DR

Page 25: Disaster Recovery 101

Brent’s Role Swap of Doom

Disaster

Recovery

Datacenter

Production

Datacenter

100MB connection

Data synced back to production

Page 26: Disaster Recovery 101

Brent’s Role Swap of Doom

Disaster

Recovery

Datacenter

Production

Datacenter

100MB connection

Data synced back to production

PLUS

Users running applications that

query the database in DR

1gb Ethernet

Page 27: Disaster Recovery 101

Brent’s Role Swap of Doom

Disaster

Recovery

Datacenter

Production

Datacenter

100MB connection

Tape

Jukeboxes

w/10 Drives

Tape

Jukeboxes

w/6 Drives

Page 28: Disaster Recovery 101

Building a Bug-Out Bag

Photo Licensed with Creative Commons from http://www.flickr.com/photos/78256324@N00/394214262/

Page 29: Disaster Recovery 101

Photo Licensed with Creative Commons from http://www.flickr.com/photos/moflytier/45842386/

Page 30: Disaster Recovery 101

Personal Contents

• Power inverter

• Gadget chargers

• Clothes & toiletries

• Water & food

• Insurance papers

• Road atlas

• Flashlight

• Pillow

Page 31: Disaster Recovery 101

Work Contents

• Software installs

• License keys

• Cell data card

or Verizon MiFi

• Contact list

(updated annually)

Page 32: Disaster Recovery 101

Contact Lists

• Family

• Coworkers

• Managers

• Alternate Offices

• HW Vendors

• SW Vendors

• ISP/Colo

Photo Licensed with Creative Commons from http://www.flickr.com/photos/toastforbrekkie/1237898664/

Page 33: Disaster Recovery 101

Lessons Learned

• Trust, but verify

• Test, test, test

• Whiteboard your

environment

• Look for single

points of failure

• Get a bug-out bag

Page 34: Disaster Recovery 101

Resources

• Visit our SQL Server technical resource blog

at: www.sqlserverpedia.com - feel free to send

your SQL Server related technical questions to:

[email protected]

• Visit our dedicated SQL Server community

site at: http://sqlserver.quest.com

• Check out our “Backstage” area with all of our collateral and

upcoming events including our „Pain of the Week‟ webcasts:

• www.quest.com/backstage

• www.quest.com/backstage/pow.aspx