effective communication is the backbone of the any … word - effective communication is the...

39
SQL AlwaysOn - Skype for Business 2018 DINESH SINGH

Upload: hoanglien

Post on 18-Mar-2018

218 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

SQL AlwaysOn -Skype for Business

2018

DINESH SINGH

Page 2: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Contents Before Starting .................................................................................................................. 2

Windows Failover Clustering ........................................................................................... 2

IPs Address and DNS ....................................................................................................... 2

SQL AlwaysOn .................................................................................................................. 2

Service Accounts .............................................................................................................. 2

Network Configuration ..................................................................................................... 2

Windows Failover Clustering ........................................................................................... 3

Installing SQL Server .......................................................................................................15

Skype for Business Deployment .....................................................................................20

Configure Skype for Business Databases for SQL AlwaysOn Availability Group ......21

Page 3: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

There are many changes on Skype for Business included high availability such as server pooling, disaster recovery with pool pairing, and several modes of Back End server high availability such as always on availability groups, database mirroring, and SQL fail over clustering. High availability referring to make sure that services are available even one or more servers goes down and disaster recovery means keeping services going in the event of a natural or human caused disaster and preserving as much data from before the disaster as possible. Skype for business server providing the high availability options in Front End as pool pairing as well as high availability options are in Back End servers such as database mirroring, Always On availability groups, SQL fail over clustering, Always On fail over cluster instances (FCI). Worked on a project for Skype for Business deployment with one of mu customer, and want to share my experience through this post. In this post my main focus on configuring the SQL Server AlwaysOn Availability Group for Skype for Business.

Before Starting

As always we have to go through the prerequisite, following are the recommendation from Microsoft Server requirements for Skype for Business Server 2015 Back End Server high availability in Skype for Business Server

Windows Failover Clustering

Following are the recommendation for configuration of the Windows Failover Clustering Failover Clustering Hardware Requirements and Storage Options Understanding Requirements for Failover Clusters

IPs Address and DNS

First of all we need to do ensure that our SQL nodes are configured on the customer LAN and domain joined.

SQL AlwaysOn

Next we need to decide the IP addressing for the SQL availability group, we need IP address for SQL AlwaysOn Group listener and DNS name for SQL AlwaysOn Group listener.

Service Accounts

Again we have to follow the best practice to use Active Directory Service Account where possible.

Network Configuration

First we have to configure the Network for public and private network card on both SQL servers.

Page 4: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Windows Failover Clustering

Now time to install the Windows Failover Clustering role on servers, we have two option, first you can run the PowerShell command Install-WindowsFeature Failover-Clustering

and 2nd option from GUI

Page 5: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Once complete we can see the "Failover Cluster Manager" in server tools

Now time to create failover cluster, open from console of failover cluster manager

Page 6: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Select Create Cluster

Click Next on Create Cluster Wizard

Brows the both nodes from Active Directory and click on add

Page 7: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Next wizard for validating the cluster configuration test before continue, i have selected Yes

Now it will start validating the configuration

Page 8: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Select "Run all Test"

Next wizard ready for test configuration

Page 9: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Wizard is running for validating the configuration

Here is the validation report for cluster configuration.

Page 10: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Next wizard you have to give the Cluster IP address and Cluster Name

Next we have to make sure uncheck on "Add all eligible storage to the cluster" and press Next to continue

Page 11: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Once Windows Server Failover Cluster now created and we can get the warning regarding Quorum witness, we can ignore now as we will define latter also we can view the report

Now we can see all the details from Failover Cluster manager Console

Page 12: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Now we have to define the Quorum\Witness folder and permission.

Now create the Cluster Quorum from Failover Cluster Manager

Quorum cluster configure wizard will give all details, click Next

Page 13: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Here we have option to select the Quorum witness

next wizard configure the a file share witness

Page 14: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Next brows and select the file share witness

Once we select the path of the file share witness click on Next

Page 15: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Now you can see the Cluster Quorum configuration has been completed and we can view the report also.

Now we can see the both nodes are online from Failover Cluster manager console

Now we see the completed the installation and configuration of the Windows Failover Cluster,

Page 16: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Installing SQL Server

Mount SQL server ISO or put DVD and launch the SQL server installation center and select "New SQL Server fail-over cluster installation"

SQL Server Setup files will verify the system

Setup support rules identify problems

Page 17: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Here you need to select "SQL Server Feature Installation"

Now we have to select the features

Here we have select the instance or default or new instance and Instance root directory

we have select Server Configuration and select authentication mode

Page 18: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Here is the Installation progress status

Installation has been completed and we can view the reports

Now Launch SQL Server Configuration Manager >Click SQL Server Services > Right Click SQL Server (Instance Name) > Properties > AlwaysOn High Availability Tab

Page 19: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Once you select the "Enable AlwaysOn Availability Groups" you will get the warning click "Ok"

Page 20: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Time to restart the SQL Server Agent services

Page 21: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Skype for Business Deployment

We now move on to the deployment process for the Skype for Business Back End Database, as we already completed the All Front End Servers have been built with prerequisites, Skype for business Management Tools are installed and Skype for business topology has not to be defined

Now press New, give the SQL server FQDN and select the Named Instance, in my case it is default

Click High Availability Settings, now we can see the SQL Server FQDN filed has now changed to SQL Server Availability Group Listener FQDN and specify the primary SQL Server within the SQL Server FQDN field

Page 22: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Once complete publish the topology.

Configure Skype for Business Databases for SQL AlwaysOn Availability Group

Now Launch SQL Server Manager

Page 23: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Connect the SQL database and create New Database for high availability

Give the Name etc.

Page 24: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Here you can see the Newly created Database, Right Click and open the properties > Select Option > Change Recovery Model from Simple to Full and repeat the process QoEMetrics

Now we need to backup the databases within SQL Management Console, right click the Database SfBTestDB>Task>BackUp

Verify the all settings and Click on Ok.

Page 25: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Here you will get the confirmation

If you have the more Database you have to repeat the same process, here we have completed converting the Database to Full Recovery mode and backed up.

Page 26: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

First of all log in to SQL Server management Studio and we can see that Skype for business server related databases were created successfully on SQL server USSQL1, now time to create a new Availability Group, right click AlwaysOn High Availability and open New Availability Group Wizard

Fill the required information on wizard

Page 27: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM
Page 28: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Wizard also check the prerequisites and will let us know the details before proceed the database recovery needs to be changed to full and also perform a full backup. Click on Meet prerequisites

Page 29: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

On the next step, need to add replica

Page 30: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

And connect the second SQL server

Page 31: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Once you add you can see the both replica

Page 32: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Now we have to create a listener, select the listener tab and then select Create an availability group listener

Page 33: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Next specify a temporary file share, select Full synchronization.

Page 34: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

And the wizard will run additional availability group validation checks

Page 35: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Here you view the complete summary

Page 36: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Everything is well, here is the details

Page 37: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

From Console we can verify the, AlwaysOn High Availability configurations

Page 38: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Next we have to compare the Security Logins for both servers, if it is not matching with second SQL server we need to change the Primary Replica to the second SQL server, right click on Availability Group and select failover click on next and connect the SQL server, once failover successful we will get the summary wizard and we can review. And we can see that the primary replica is now in the second SQL server. Next, go to the Topology builder, select SQL Server Store and edit Properties and change the SQL Server FQDN to the second SQL Server and publish the topology. Once Topology published successfully now we have the Skype for Business Server 2015 with an AlwaysOn Availability Group configured.

Page 39: Effective communication is the backbone of the any … Word - Effective communication is the backbone of the any workplace.docx Author dsingh098 Created Date 3/9/2018 10:28:05 AM

Happy Learning

Thank you!

Disclaimer:

The information contained in this Blog is for general information purposes only. It is strongly

recommended to test it on a lab, before making changes in the production environment. If you want to

implement you can use own your risk?

If you feel some Content has to be removed which is not meeting any guidelines, please email me

[email protected]