www.plex.com sql server disaster recovery detroit area sql server user’s group drew flint plexus...

46
www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

Upload: chad-bailey

Post on 11-Jan-2016

222 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

SQL Server Disaster RecoveryDetroit Area SQL Server User’s Group

Drew Flint

Plexus Systems Inc.

7/10/08

Page 2: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Biography

Married to wife Missy for 12 years

Page 3: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Biography

Eldest Son – Benjamin

6 Years Old

Page 4: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

BiographySon – Ryan 4 Years Old

Page 5: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

BiographyDaughter – Emma 20 Months

Old

Page 6: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Agenda

• What is a disaster?• Disaster Recovery Terminology (light version)• Software Disaster Recovery Options• Hardware Disaster Recovery Options• SQL Server DR things to know• DR Plan Suggestions

Page 7: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Disaster

Page 8: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Disaster

Page 9: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Disaster

Page 10: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Disaster

• Webster’s definition: A calamitous event, esp. one occurring suddenly

and causing great loss of life, damage, or hardship, as a flood, airplane crash, or business failure.

Page 11: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Disaster

• Drew’s definition: Any event that causes your system to not operate

for a prolonged period of time.

Page 12: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Disaster Recovery Terminology

• Recovery Time Objective – RTO– The amount of time system recovery must occur.

This is usually measured in hours.

• Recovery Point Objective – RPO– The maximum amount of acceptable data loss.

This is usually measured in hours.– http://www.drj.com/glossary/drjglossary.html

Page 13: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Software Disaster Recovery Options

• General Truths about Software Solutions– They cost less money than hardware based

solutions.– They often require your system to do more work.

Due to their consumption of resources your database server would normally use for day to day processing: • RAM• CPU• Disk

Page 14: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Software Disaster Recovery Options• SQL Server Replication• SQL Server Database Mirroring• Third Party Solutions

– Replicator X (NetApp) – Example given– GoldenGate Software - http://www.goldengate.com/ – WAN Sync - CA XOSoft - http://www.xosoft.com/ – Double-Take Software - http://www.xosoft.com/ – Steeleye for SQL -

http://www.steeleye.com/products/sqlserver.php

Page 15: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

SQL Server – Trans. ReplicationSQL Server Database

SQL Server Database

Table

Publisher

Subscriber

Table

SQL Server Distribution Database

Page 16: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Pros of SQL Server Replication

• Very rapid transport of end user data.• It can synchronize most of the common

schema changes.• It’s included in the price of SQL Server

assuming Work Group edition or higher. There is a limit on the number of publications on Work Group Edition (25).

Page 17: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Cons to SQL Server Replication• Transaction log files will experience growth.

How much depends on:– Frequency of replication– Transaction log backups

• Optimal configuration will require the introduction of an additional database server to function as the remote distributor.

• It increases the complexity of making schema changes to articles included in publications.

Page 18: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

SQL Server Database Mirroring

Partner DB Server Partner DB Server

Witness DB Server

Principal Mirror

Page 19: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Pros of Database Mirroring• It’s included in SQL Server editions standard

or higher. • The witness server can be a lesser version of

SQL Server, down to Express Edition.• Has many different levels of protection:

– Full (completely automatic failover)– High Protection (manual failover)– High performance (forced only).

Page 20: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Cons of Database Mirroring• Scenarios where the mirror causes the failover

unnecessarily.• Transaction logs have the potential of growing.

Sometimes significantly should the “mirror” partner server become unavailable for an extended period of time.

• No way to define database consistency groups. It assumes your databases are independent.

Page 21: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Replicator X

• This is a NetApp solution that can replicate data from any disk that is attached to the database server.

Page 22: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

How Replicator X Works

VRR (RAM)

Bitmap of source volume

RXRCReplication Client

Source Drive

Data

RXRSReplication Server

RXRCReplication Client

SANData

Data

VRR (RAM)

Bitmap of source volume

Page 23: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Pros of Replicator X

• Extremely flexible. It can address pretty much any storage data migration scenario.

• Small footprint on server. Low CPU/RAM consumption.

• It supports scripting to trigger events.

Page 24: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Cons of Replicator X

• Very costly solution.• High level of expertise to properly configure

environment. Lots of moving parts to configure correctly for optimal configuration.

• Pay per TB replicated.

Page 25: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Hardware Disaster Recovery Options

• Recovery Point (EMC) & Unisys 30M• NetApp Snapmirror (SAN Based)• EMC MirrorView (SAN Based)

Page 26: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Recovery Point/UNISYS 30M

• In order to replicate data, both solutions use the combination of a splitter device driver and their appliance attached to the SAN Fabric and TCP/IP network.

Page 27: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Recovery Point/UNISYS 30MServer Server

RP Appliance

RP Appliance

WAN

FC Switch FC Switch

SAN SAN

All Data All Data

Duplicate ofWrite Data

Duplicate ofWrite Data

Data Lun

Journal Lun

Data Lun

Journal Lun

Page 28: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Pros of Recovery Point/UNISYS 30M

• Low overhead on database server. Database server will see no more than 3% CPU overhead.

• Capable of many points to recover to.• Supports Bi-Directional Replication. Flow of

data is controlled through management interface.

Page 29: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Pros of Recovery Point/UNISYS 30M

• Easy to use management interface.• Only replicates changed blocks since previous

replication.• Provides integrated FC/IP bridge. • Provides integrated WAN optimization.

Page 30: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Cons of Recovery Point/UNISYS 30M• High price point.• Have to acquire additional disk on both SANs

to implement solution. This will accommodate the journals used for replication.

• Pay per TB being replicated. Every time you add storage that you want replicated you have to pay for this as well.

Page 31: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Cons of Recovery Point/UNISYS 30M• Billed on the size of the LUN, not the actual

usage.• Need to buy additional appliances to get local

CDP and distance CDP. One replication appliance can replicate to one destination.

Page 32: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

SAN Based Replication Solutions

• SAN based replication solution. With this solution the SAN incurs the overhead of determining the changed blocks and sending them over to it’s mirrored pair.

Page 33: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

NetApp SnapMirror

Server

FC SwitchAll Data

All Data

Server

FC Switch

SAN

All Data

SAN

All DataWANRoute

rRouter

IP Switch IP Switch

Page 34: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Pros of NetApp SnapMirror• Minor overhead on server when snapshot is

taken to start synchronization. This is done with their standard SnapDrive utility.

• Only sends the last change to a given block when a snapshot/replication event is triggered.

• Many alternatives for replication medium with FC or IP based replication paths.

• Can aggregate links to replicate more data in same amount of time.

Page 35: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Cons of NetApp SnapMirror

• High price point.• Noticable jump in CPU Utilization for CPU

that has the SnapMirror daemon running on it.• The more data change between replication

intervals the more intense the CPU spike.• High level of planning to implement solution.

Page 36: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

EMC MirrorView /AServer

FC SwitchAll Data

All Data

Server

FC Switch

SAN

All Data

SAN

All DataWANRoute

rRouter

IP Switch IP Switch

FC-IP Bridge FC-IP Bridge

Primary Image Secondary Image

Page 37: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Pro’s EMC MirrorView /A• No overhead to source server for

synchronization process. • Only sends the last changed blocks.• Flexible scheduling of when synchronizations

happen.• The amount of bandwidth the transfers

between SAN consumes is configurable.

Page 38: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Cons EMC MirrorView /A

• Requires you to have a LUN in the Reserved LUN Pool for each mirrored pair (primary and secondary images).

• Each LUN in the Reserved LUN Pool must be large enough to handle any LUN participating in a SnapView or MirrorView relationship.

Page 39: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Cons EMC MirrorView /A• You have to purchase a different product for

Synchronous replication.• If you configure the synchronization to run at

the highest rate it might affect throughput on the source LUN.

• Some models you have to purchase an external FC to IP bridge for WAN based replication solutions.

Page 40: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

SQL Server DR Things To Know• Take regular backups of all databases. Your

backup plan should include Full, Differential and Log backups. Frequent log backups help keep the size of the log file down.

• Verify you have good backups by restoring some of them on a regular interval.

• Move your backups to multiple locations. Having them stored on the main database server does you no good when that server crashes.

Page 41: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

SQL Server DR Things To Know• You can automate the exporting of all SQL

Server Agent Jobs, Operators, and Alerts you have defined. This can be done through the use of SMO.

• Know how to restore the system databases. – See this BOL article for the necessary steps to

restore the master database: http://msdn.microsoft.com/en-us/library/ms190679.aspx?s=1

Page 42: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

DR Plan Suggestions• Include thorough instructions to recover

system(s). Ideally this would be written so anyone would be able to understand it. Start simple, then add detail as you go. Something is better than nothing.

• Include names and phone numbers of co-workers as well as key customer contacts. A call plan works great in this scenario.

Page 43: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

DR Plan Suggestions

• Make it a living document. It should be reviewed at least twice a year. IT environments are constantly changing. That means you’re recovery plan does too.

• Test your plan, test your plan, and then test your plan some more.

Page 44: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

DR Plan Suggestions• Be sure to have your suppliers phone numbers

and key personnel in there too.• Stage simulated disasters to test your plan in a

realistic scenario.• Create an inventory of equipment you have so

you can easily replace it.• Move a copy of the most recent DR plan off

site to some place secure.

Page 45: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Thanks, have a great night!

Page 46: Www.plex.com SQL Server Disaster Recovery Detroit Area SQL Server User’s Group Drew Flint Plexus Systems Inc. 7/10/08

www.plex.com

Contact Information

Drew Flint

Plexus Systems Inc.

www.plex.com

[email protected]