0 zero to high availability in 60 minutes building a sql 2012 ha solution for sharepoint (in under...

55
1 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer – GUIO, LLC

Upload: belen-lufkin

Post on 01-Apr-2015

217 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

1

Zero to High Availability in 60 MinutesBuilding a SQL 2012 HA Solution for SharePoint(In under an hour)

Troy LanphierSenior Solutions Developer – GUIO, LLC

Page 2: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

2

Welcome to SharePoint Saturday Houston

• Please turn off all electronic devices or set them to vibrate.• If you must take a phone call, please do so in the

hall so as not to disturb others.• Thanks to our Title Sponsor:

Thank you for being a part of the 4th Annual SharePoint Saturday for the greater Houston area!

Page 3: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

3

Information• Speaker presentation slides will be

available at bit.ly/GoSPSHOU within a week

• The Houston SharePoint User Group will be having its next meeting Wednesday April 17th. Please join us at www.h-spug.org

Page 4: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Who is this guy and why should we care?

Troy Lanphier

Page 5: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Who is this guy and why should we care?

Troy Lanphier

Co-author: Microsoft SharePoint Foundation 2010 Inside Out

Page 6: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Who is this guy and why should we care?

Troy Lanphier

Co-author: Microsoft SharePoint Foundation 2010 Inside Out

Author: Exam-Ref 70-331: Core Solutions of Microsoft SharePoint Server

2013

(Available June 2013)

Page 7: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Who is this guy and why should we care?

Troy Lanphier

Co-author: Microsoft SharePoint Foundation 2010 Inside Out

Author: Exam-Ref 70-331: Core Solutions of Microsoft SharePoint Server

2013

(Available June 2013)

Email: [email protected]: http://www.guio.com/troy

Twitter: @troylanphier

Page 8: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Today’s Goal – AlwaysOn in 60 Minutes

Where we’ll start:

Page 9: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Today’s Goal – AlwaysOn in 60 Minutes

Where we’ll start:

• MARS – Domain Controller

Page 10: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Today’s Goal – AlwaysOn in 60 Minutes

Where we’ll start:

• MARS – Domain Controller

• ROMULUS – Win Server 2012 (SQL bits installed)

Page 11: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Today’s Goal – AlwaysOn in 60 Minutes

Where we’ll start:

• MARS – Domain Controller

• ROMULUS – Win Server 2012 (SQL bits installed)

• REMUS – Win Server 2012 (SQL bits installed)

Page 12: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Today’s Goal – AlwaysOn in 60 Minutes

Where we’ll start:

• MARS – Domain Controller

• ROMULUS – Win Server 2012 (SQL bits installed)

• REMUS – Win Server 2012 (SQL bits installed)

• RHEA – Win Server 2012 (SP 2013 bits installed)

Page 13: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Today’s Goal – AlwaysOn in 60 Minutes

Where we’ll end up:

Page 14: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Today’s Goal – AlwaysOn in 60 Minutes

Where we’ll end up:

• MARS – Domain Controller

Page 15: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Today’s Goal – AlwaysOn in 60 Minutes

Where we’ll end up:

• MARS – Domain Controller

• WS 2012 Failover Cluster (ROMULUS and REMUS)

Page 16: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Today’s Goal – AlwaysOn in 60 Minutes

Where we’ll end up:

• MARS – Domain Controller

• WS 2012 Failover Cluster (ROMULUS and REMUS)

• SQL Server 2012 AlwaysOn Availability Group

Page 17: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Today’s Goal – AlwaysOn in 60 Minutes

Where we’ll end up:

• MARS – Domain Controller

• WS 2012 Failover Cluster (ROMULUS and REMUS)

• SQL Server 2012 AlwaysOn Availability Group

• (ROMULUS and REMUS Independent SQL Nodes)

Page 18: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Today’s Goal – AlwaysOn in 60 Minutes

Where we’ll end up:

• MARS – Domain Controller

• WS 2012 Failover Cluster (ROMULUS and REMUS)

• SQL Server 2012 AlwaysOn Availability Group

• (ROMULUS and REMUS Independent SQL Nodes)

• RHEA – Win Server 2012 (SharePoint Configured)

Page 19: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

SQL Server High Availability

Page 20: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

SQL Server High Availability (By Edition)

SQL Server Business Intelligence and Standard:

Page 21: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

SQL Server High Availability (By Edition)

SQL Server Business Intelligence and Standard:

• Database Mirroring (Safety Full Only)

Page 22: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

SQL Server High Availability (By Edition)

SQL Server Business Intelligence and Standard:

• Database Mirroring (Safety Full Only)

• DEPRECATED in 2012, possibly unavailable thereafter

Page 23: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

SQL Server High Availability (By Edition)

SQL Server Business Intelligence and Standard:

• Database Mirroring (Safety Full Only)

• DEPRECATED in 2012, possibly unavailable thereafter

• Failover Clustering (Two Nodes Only)

Page 24: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

SQL Server High Availability (By Edition)

SQL Server Enterprise (and Developer):

Page 25: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

SQL Server High Availability (By Edition)

SQL Server Enterprise (and Developer):

• Database Mirroring

Page 26: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

SQL Server High Availability (By Edition)

SQL Server Enterprise (and Developer):

• Database Mirroring

• Still DEPRECATED

Page 27: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

SQL Server High Availability (By Edition)

SQL Server Enterprise (and Developer):

• Database Mirroring

• Still DEPRECATED

• Failover Clustering (OS Maximum)

Page 28: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

SQL Server High Availability (By Edition)

SQL Server Enterprise (and Developer):

• Database Mirroring

• Still DEPRECATED

• Failover Clustering (OS Maximum)

• AlwaysOn Availability Groups

Page 29: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

The Setup

Page 30: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

The Setup

Quorum Drive pre-built (5GB) on MARS (DC)

Page 31: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

The Setup

Quorum Drive pre-built (5GB) on MARS (DC)

Networking pre-built:

Page 32: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

The Setup

Quorum Drive pre-built (5GB) on MARS (DC)

Networking pre-built:

• Heartbeat NIC – Non-routed

• Storage – iSCSI NIC

• Intrafarm – All Farm Communications

Page 33: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

The Setup

Quorum Drive pre-built (5GB) on MARS (DC)

Networking pre-built:

• Heartbeat NIC – Non-routed

• Storage – iSCSI NIC

• Intrafarm – All Farm Communications

Firewalls Disabled

Page 34: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Step 1Setting Up iSCSI Storage

Page 35: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Setting Up iSCSI Storage

Ensure that Windows Firewall is Off, or configure TCP Ports

Page 36: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Setting Up iSCSI Storage

Ensure that Windows Firewall is Off, or configure TCP Ports

Setup iSCSI Initiator on SQL Servers

Page 37: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Setting Up iSCSI Storage

Ensure that Windows Firewall is Off, or configure TCP Ports

Setup iSCSI Initiator on SQL Servers

Setup iSCSI Target on DC

Page 38: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Setting Up iSCSI Storage

Ensure that Windows Firewall is Off, or configure TCP Ports

Setup iSCSI Initiator on SQL Servers

Setup iSCSI Target on DC

Connect Storage in iSCSI Initiator

Page 39: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Step 2Configure DNS and Install Failover Clustering

Page 40: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Configure DNS and Failover Clustering

Initial DNS Entries

Page 41: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Configure DNS and Failover Clustering

Initial DNS Entries

Cluster Installation

Page 42: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Configure DNS and Failover Clustering

Initial DNS Entries

Cluster Installation

Assign Permissions in DNS to the A Record

Page 43: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Configure DNS and Failover Clustering

Initial DNS Entries

Cluster Installation

Assign Permissions in DNS to the A Record

Quorum Drive Addition

Page 44: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Step 3Configure Availability Groups

Page 45: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Configure Availability Groups

Enable AlwaysOn Availability Groups

Page 46: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Configure Availability Groups

Enable AlwaysOn Availability Groups

SQL Configuration

Page 47: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Configure Availability Groups

Enable AlwaysOn Availability Groups

SQL Configuration

• Create Seed Database and Backup

Page 48: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Configure Availability Groups

Enable AlwaysOn Availability Groups

SQL Configuration

• Create Seed Database and Backup

• Create Availability Group

• Create Availability Listener

Page 49: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Configure Availability Groups

Enable AlwaysOn Availability Groups

SQL Configuration

• Create Seed Database and Backup

• Create Availability Group

• Create Availability Listener

• Build Backup Share

Page 50: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Step 4Configure SharePoint 2013

Page 51: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

Step 5Adding SharePoint 2013 Content Databases to Availability Groups

Page 52: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

52

References• SQL Server 2012 AlwaysOn -

http://technet.microsoft.com/en-us/sqlserver/gg490638.aspx

• Features Supported by the Editions of SQL Server 2012 - http://msdn.microsoft.com/en-us/library/cc645993.aspx

Page 53: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

53

Please Leave Feedback During Q&A

If you leave session feedback and provide contact information in the survey, you will be qualified for a book, ebook or DVD giveaway.

Scan the QR Code to the right or go to bit.ly/spshou71

Page 54: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

54

Thanks to all our Sponsors!

Page 55: 0 Zero to High Availability in 60 Minutes Building a SQL 2012 HA Solution for SharePoint (In under an hour) Troy Lanphier Senior Solutions Developer –

55

Contact InformationTroy Lanphier

Email: [email protected]: http://www.guio.com/troyTwitter: @troylanphier