45
DEPLOYMENT GUIDE DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage January 2018 Abstract This deployment guide describes requirements, configuration details, and steps for deploying SQL Server 2016 and Windows Server 2016 with Hyper-V virtualization on PowerEdge R740 servers and Unity 400 Hybrid Flash storage. H16851R This document is not intended for audiences in China, Hong Kong, Taiwan, and Macao.

Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

DEPLOYMENT GUIDE

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage January 2018

Abstract

This deployment guide describes requirements, configuration details, and steps for deploying SQL Server 2016 and Windows Server 2016 with Hyper-V virtualization on PowerEdge R740 servers and Unity 400 Hybrid Flash storage.

H16851R

This document is not intended for audiences in China, Hong Kong, Taiwan, and Macao.

Page 2: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Copyright

2 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

The information in this publication is provided as is. Dell Inc. makes no representations or warranties of any kind with respect to the information in this publication, and specifically disclaims implied warranties of merchantability or fitness for a particular purpose. Use, copying, and distribution of any software described in this publication requires an applicable software license.

Copyright © 2018 Dell Inc. or its subsidiaries. All Rights Reserved. Dell, EMC, Dell EMC, and other trademarks are trademarks of Dell Inc. or its subsidiaries. Intel, the Intel logo, the Intel Inside logo, and Xeon are trademarks of Intel Corporation in the U.S. and/or other countries. Other trademarks may be the property of their respective owners. Published in the USA 01/18 Deployment Guide H16851R.

Dell Inc. believes the information in this document is accurate as of its publication date. The information is subject to change without notice.

Page 3: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Contents

3 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

Contents

Chapter 1 Overview 5 About this guide ...................................................................................................... 6 Deployment overview ............................................................................................. 6 Additional resources ............................................................................................... 6 We value your feedback ......................................................................................... 7

Chapter 2 Solution Architecture and Requirements 8 Solution architecture ............................................................................................... 9 Solution requirements ........................................................................................... 10

Chapter 3 Network Connectivity 12 End-to-end I/O connectivity .................................................................................. 13 Cabling requirements ........................................................................................... 14

Chapter 4 Pre-Virtualization Configuration 16 Introduction ........................................................................................................... 17 Configuring Dell EMC Networking S4048-ON switches ....................................... 17 Configuring the iDRAC IPv4 address ................................................................... 20 Configuring the BIOS ............................................................................................ 20 Configuring Brocade 6505 Fibre Channel switches ............................................. 21 Configuring Unity 400 Hybrid Flash storage ......................................................... 22

Chapter 5 Virtualization Configuration 23 Introduction ........................................................................................................... 24 Configuring a virtual disk for OS deployment on the PowerEdge 740 server ....... 24 Configuring prerequisites to install Windows Server ............................................ 25 Installing Windows Server 2016 OS on the PowerEdge R740 server .................. 25 Installing Broadcom network driver files on Windows Server 2016 ...................... 26 Enabling Hyper-V, failover clustering, and multipath features in Windows

Server 2016 ................................................................................................... 26 Setting up NIC teaming in Windows Server 2016 ................................................ 26

Chapter 6 Post-Virtualization Configuration 28 Configuring SAN switches and Fibre Channel array for Hyper-V ......................... 29 Storage specifications .......................................................................................... 32 Configuring the network in Windows Server 2016 ................................................ 32 Configuring the vEthernet switch in Windows Server 2016 .................................. 33 Renaming and adding servers to the domain ....................................................... 33

Page 4: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Contents

4

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Installing Dell EMC PowerPath software .............................................................. 33 Adding volumes in the PowerEdge R740 server .................................................. 34

Chapter 7 Cluster Configuration 35 Creating a cluster ................................................................................................. 36 Establishing VM-to-SAN connectivity ................................................................... 36

Chapter 8 Deployment Verification 38 Verifying the deployment ...................................................................................... 39

Chapter 9 SQL Server 2016 Failover Cluster Installation 40 Prerequisites for installing a SQL Server 2016 failover cluster ............................ 41 Configuring database VMs ................................................................................... 41 Initializing and formatting the storage volumes .................................................... 41 Installing the failover cluster ................................................................................. 42

Page 5: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 1: Overview

5 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

Chapter 1 Overview

This chapter presents the following topics:

About this guide ................................................................................................... 6

Deployment overview ........................................................................................... 6

Additional resources ............................................................................................ 6

We value your feedback ....................................................................................... 7

Page 6: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 1: Overview

6

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

About this guide This guide is for IT professionals who want to deploy a virtualized Microsoft SQL Server 2016 solution using Microsoft Hyper-V virtualization on Microsoft Windows Server 2016, Dell EMC™ PowerEdge™ R740 servers, and Dell EMC Unity™ 400 Hybrid Flash storage.

This guide provides instructions for deploying the solution. It describes how to set up and configure the following hardware components and to test the infrastructure deployment for component failures:

• Dell EMC Networking S4048-ON switch

• Dell EMC PowerEdge R740 server

• Brocade 6505 switch

• Dell EMC Unity 400 Hybrid Flash storage

This guide also provides information about the installation and configuration of Hyper-V virtualization on Windows Server 2016 and SQL Server 2016.

Deployment overview The complete deployment sequence for this solution is as follows:

1. Gather all the hardware components according to the solution requirements.

2. Set up the cabling.

3. Perform pre-virtualization configuration.

4. Configure virtualization.

5. Perform post-virtualization configuration.

6. Configure the cluster.

7. Verify the deployment.

8. Install the SQL Server failover cluster.

Additional resources Dell EMC Services and Dell EMC certified channel partners provide consulting solutions to help you plan, deploy, and manage even the most advanced and complex virtualized configurations.

Additional resources include:

• Dell EMC Support, which is dedicated to meeting customer requirements with proven services

• Dell EMC TechCenter, where you can connect with Dell EMC customers and Dell EMC employees to share knowledge, best practices, and information about Dell EMC products and services

Audience and purpose

Scope

Page 7: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 1: Overview

7 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

We value your feedback Dell EMC and the authors of this document welcome your feedback on the solution and the solution documentation. Contact [email protected] with your comments.

Authors: Sanjeev Ranjan, Karen Johnson

Page 8: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 2: Solution Architecture and Requirements

8

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Chapter 2 Solution Architecture and Requirements

This chapter presents the following topics:

Solution architecture ............................................................................................ 9

Solution requirements ....................................................................................... 10

Page 9: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 2: Solution Architecture and Requirements

9 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

Solution architecture This solution uses Microsoft SQL Server 2016 architectural design principles and guidelines to achieve balanced virtualization on the PowerEdge R740 server and Unity 400 Hybrid Flash storage arrays. The solution employs Hyper-V virtualization on Windows Server 2016 to build an efficient infrastructure for SQL Server databases.

Figure 1 shows the architectural design of the solution. It might not accurately depict all the required hardware components in terms of quantity or sizing.

Figure 1. Architecture design

Page 10: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 2: Solution Architecture and Requirements

10

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Solution requirements Table 1 lists the solution hardware requirements.

Table 1. Hardware requirements

Component Specifications

Servers Dell EMC PowerEdge R740

Switches • Dell EMC Networking S4048-ON • Brocade 6505

Network Daughter Card Dell Quad Port Broadcom 57412 (2 x 10 Gb SFP+ + 5720, 2 x 1 Gb Base-T, rNDC)

SAN storage Dell EMC Unity 400 Hybrid Flash

Table 2 lists the solution software requirements.

Table 2. Software requirements

Component Specifications

Hypervisor Microsoft Hyper-V on Microsoft Windows Server 2016

Guest OS Microsoft Windows 2016 Datacenter Edition

Database Microsoft SQL Server 2016 SP 1

Table 3 and Table 4 list the firmware that we used to deploy and validate the solution.

Table 3. Firmware for PowerEdge R740 server

Component Version

BIOS 1.0.7

CPLD 1.0.1

iDRAC9 Enterprise 3.00.00.00

Lifecycle Controller 3.00.00.00

PERC H330 Mini 25.3.0.0016

Network Controller Dell Quad Port Broadcom 7.10.0

Emulex LightPulse LPe31002-M6-D 2-port 16 Gb Fibre Channel

02.01.01

Network drivers Dell Quad Port Broadcom 57412 network drivers: 20.06.02.08 (downloaded from Dell.com/support/drivers)

Hardware requirements

Software requirements

Firmware requirements

Page 11: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 2: Solution Architecture and Requirements

11 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

Table 4. Firmware for switches and Unity 400 Hybrid Flash storage

Component Version

Dell EMC Networking S4048-ON 9.8 or later

Brocade 6505 7.3.0 or later

Dell EMC Unity 400 Hybrid Flash OE v4.2.0.9433914 or later

Page 12: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 3: Network Connectivity

12

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Chapter 3 Network Connectivity

This chapter presents the following topics:

End-to-end I/O connectivity ............................................................................... 13

Cabling requirements ......................................................................................... 14

Page 13: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 3: Network Connectivity

13 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

End-to-end I/O connectivity The end-to-end I/O connectivity, as shown in Figure 2, consists of multiple port channels and VLT configurations for LAN connectivity. Networking S4048-ON switches provide 10 GbE network connectivity between the compute cluster and the rest of the data center. According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network is deployed as a separate workload VLAN that is defined in the data-center core network. All the workload VLANs are created as virtual network adapters on the converged virtual switch across all network connections. The Emulex LightPulse LPe31002 Fibre Channel adapters are used for Fibre Channel connectivity in the host operating system, and virtual Fibre Channel adapters are used for the virtual machines (VMs) that require in-guest Fibre Channel connectivity.

Figure 2. End-to-end I/O connectivity

Page 14: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 3: Network Connectivity

14

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Cabling requirements Figure 3 shows the port assignments for Fibre Channel connectivity. Ports 4 and 5 are used to connect Dell EMC storage. The rest of the ports that are marked are used to connect the PowerEdge R740 servers.

Connect the cables of the dual-port Emulex LightPulse LPe31002 cards on the PowerEdge R740 server as follows:

• From the first port of each Emulex card, connect to the first Brocade 6505 switch on ports 0 and 1 respectively.

• From the second port of each Emulex card, connect to the second Brocade 6505 switch on ports 0 and 1 respectively.

Figure 3. Connectivity between server and Brocade switches

Unity 400 Hybrid Flash storage has two 16 Gb/s Fibre Channel ports from each controller for the front-end connectivity. Connect one port from each controller to switch 1 and connect the remaining port from each controller to switch 2.

Figure 4 and Figure 5 illustrate the connections between the storage and the switches.

Figure 4. Connections between Unity 400 Hybrid Flash storage and Brocade switches

Connectivity between server and Brocade switches

Connectivity between Unity 400 Hybrid Flash storage and Brocade switches

Page 15: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 3: Network Connectivity

15 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

Figure 5. Connectivity between Unity 400 Hybrid Flash storage and Brocade switches

Page 16: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 4: Pre-Virtualization Configuration

16

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Chapter 4 Pre-Virtualization Configuration

This chapter presents the following topics:

Introduction ......................................................................................................... 17

Configuring Dell EMC Networking S4048-ON switches .................................. 17

Configuring the iDRAC IPv4 address ............................................................... 20

Configuring the BIOS ......................................................................................... 20

Configuring Brocade 6505 Fibre Channel switches ........................................ 21

Configuring Unity 400 Hybrid Flash storage ................................................... 22

Page 17: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 4: Pre-Virtualization Configuration

17 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

Introduction Before you set up Hyper-V virtualization on Windows Server 2016 on the virtual infrastructure, configure the following components, as described in this chapter:

• Dell EMC Networking S4048-ON switches

• iDRAC IPv4 address

• BIOS

• Brocade 6505 Fibre Channel switches

• Dell EMC Unity storage

Configuring Dell EMC Networking S4048-ON switches Configure the Networking S4048-ON top and S4048-ON bottom switches, one at a time, as follows:

1. Connect to the serial console port on the switch via the CLI.

To access the console, connect one end of the serial cable to the console port on the S4048-ON switch, and the other end to the terminal server (laptop).

2. Use HyperTerminal to open the switch console.

3. Configure the following:

Hostname:

Syntax: hostname <name>

configure hostname <name> exit

System username and password to access the system remotely:

Syntax: username <username> password <password> privilege <privilege level>

configure username admin password <password> privilege 15 exit

Management IP address for the switches:

configure interface ManagementEthernet 1/1 ip address <xxx.xxx.xxx.xxx/xx> no shutdown exit

Page 18: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 4: Pre-Virtualization Configuration

18

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Login credentials:

FTOS(conf) username admin privilege 15 password 0 <yourpassword> FTOS(conf) enable password level 15 0 <yourpassword>

4. Enable the following:

Switch ports:

FTOS configure FTOS(conf)interface range tengigabitethernet 1/1 – 1/48 FTOS(conf-if-range-te-1/1-1/48) switchport FTOS(conf-if-range-te-1/1-1/48) no shutdown FTOS(conf-if-range-te-1/1-1/48) exit FTOS(conf) exit

MTU Settings frames:

FTOS configure FTOS(conf) interface range tengigabitethernet 1/1 – 1/48 FTOS(conf-if-range-te-1/1-1/48) mtu 12000

5. Configure spanning tree on edge ports:

FTOS(conf-if-range-te-1/1-1/48) spanning-tree rstp edge-port FTOS(conf-if-range-te-1/1-1/48) exit

6. Configure the port channel for a link aggregation group (LAG) by typing the following commands to configure the switch interconnect as a LAG:

FTOS (conf) interface Port-channel 1 FTOS (conf-if-po-1) mtu 12000 FTOS (conf-if-po-1) switchport FTOS(conf-if-po-1) no shutdown FTOS(conf-if-po-1) exit

7. Configure the QSFP ports for the LAG by typing the following commands to assign the 40 Gb QSFP ports to the port channel:

FTOS(conf) interface range fortyGigE 1/49-1/50 FTOS (conf-if-range-fo-1/49-1/50) no ip address FTOS (conf-if-range-fo-1/49-1/50) mtu 12000 FTOS (conf-if-range-fo-1/49-1/50) no shutdown FTOS (conf-if-range-fo-1/49-1/50) flowcontrol rx on tx off FTOS (conf-if-range-fo-1/49-1/50) port-channel-protocol lacp FTOS (conf-if-range-fo-1/49-1/50-lacp) port-channel 1 mode active FTOS (conf-if-range-fo-1/49-1/50-lacp) exit FTOS (conf-if-range-fo-1/49-1/50) exit FTOS (conf) exit

Page 19: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 4: Pre-Virtualization Configuration

19 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

8. Configure VLANs:

VLAN 10 for the host management network:

configure interface vlan 10 description “host-management”

ip address <xxx.xxx.xxx.xxx/xx> tagged port- channel 1 tagged tengigabitethernet 1/1 – 1/4 no shutdown exit

VLAN 20 for the cluster network:

configure interface vlan 20 description “Cluster” ip address <xxx.xxx.xxx.xxx/xx> tagged port- channel 1 tagged tengigabitethernet 1/5 – 1/8 no shutdown exit

VLAN 30 for the live migration network:

configure interface vlan 30 description “Live Migration” ip address <xxx.xxx.xxx.xxx/xx> tagged port- channel 1 tagged tengigabitethernet 1/9 – 1/12 no shutdown exit

VLAN 50 for the application network:

configure interface vlan 50 description “Application Network” ip address <xxx.xxx.xxx.xxx/xx> tagged port-channel 1 tagged tengigabitethernet 1/13 – 1/16 no shutdown exit

VLAN 60 for the front-end network:

configure interface vlan 60 description “Front End Network” ip address <xxx.xxx.xxx.xxx/xx> tagged port-channel 1 tagged tengigabitethernet 1/17 – 1/20 no shutdown exit

VLAN 70 for the SQL private network:

configure interface vlan 70 description “SQL Private Network” ip address <xxx.xxx.xxx.xxx/xx> tagged port-channel 1 tagged tengigabitethernet 1/21 – 1/24 no shutdown exit

Page 20: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 4: Pre-Virtualization Configuration

20

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

9. Save the configuration:

FTOS copy running-config startup-config

Verify the Networking S4048-ON switch configuration as follows:

1. Confirm that the VLT domain status is Up:

show vlt brief

2. Confirm that port-channel 100 status is Up:

show interfaces port-channel 100

3. Confirm that port-channel 100 is tagged on the VLAN interfaces (10, 20, 30):

show vlan

4. Confirm that the port-channel interfaces are Up, port-channel 100 consists of interfaces 1/2, 1/4, and 1/6, and the interface statuses are Up:

show interfaces port-channel 100 brief

Configuring the iDRAC IPv4 address Configure the iDRAC IPv4 address:

1. Turn on or restart the server.

2. At F2=System Setup, press F2.

3. In the System Setup Main Menu, click iDRAC Settings, and then click Network.

4. In IPv4 SETTINGS, type the following information:

Starting IP Address

Starting Gateway

Starting Subnet Mask

5. Click Back, and then in System Setup, click Finish.

6. When the confirmation message appears, click Yes.

Configuring the BIOS Configure the BIOS:

1. Turn on or restart the server.

2. At F2=System Setup, press F2.

3. Ensure that the logical processor is enabled:

In System Setup Main Menu, click System BIOS > Processor Settings.

In Processor Settings, verify that Processor Settings is set to Enabled.

Verifying Networking S4048-ON switch configuration

Page 21: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 4: Pre-Virtualization Configuration

21 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

4. Ensure that Virtualization Technology is enabled:

In System Setup Main Menu, click System BIOS > Processor Settings.

In Processor Settings, verify that Virtualization Technology is set to Enabled.

Configuring Brocade 6505 Fibre Channel switches After racking and cabling the SAN switches, configure the switches by performing the following tasks:

1. Assign the management IP address for the switch.

2. Access the Brocade switch through Web Tools.

3. Enable Dynamic Ports on Demand.

Assign the management IP address to the SAN switches:

1. Connect one end of the serial cable to the RJ-45 serial port on the switch, and the other end to the serial port on the server (workstation).

2. Use HyperTerminal to open the switch console.

3. In the console, configure the serial connection settings as follows:

Bits per second–9600

Data bits–8

Parity–None

Stop bits–1

Flow control–None

4. Log in to the switch by using the default username and password.

5. Assign the management IP address for the switch:

switch: admin> ipaddrset Ethernet IP Address <IP address> Ethernet Subnetmask <subnet mask> Gateway IP Address <gateway> DHCP [Off]: off

Brocade Web Tools is an embedded UI that enables administrators to monitor and manage single or small fabrics, switches, and ports. Launch Web Tools directly from a web browser:

1. Open the web browser, type the IP address of the switch in the address field, and press Enter.

2. In the Please Login dialog box, type the username and password, and then click OK.

Assigning the management IP address to the SAN switches

Accessing the Brocade switch through Web Tools

Page 22: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 4: Pre-Virtualization Configuration

22

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

The Dynamic Ports on Demand (POD) feature automatically assigns POD licenses from a pool of available licenses that is based on the server blade or switch installation. Enable the Dynamic POD feature:

1. Connect to the switch and log in as an administrator.

2. Type the following command to change the license assignment method to dynamic:

switch: admin> licenseport --method dynamic

3. Type the following command to restart the switch:

switch: admin> reboot

Configuring Unity 400 Hybrid Flash storage Dell EMC Professional Services or Certified Channel Partners perform the initial setup of Unity 400 Hybrid Flash storage.

Enabling Dynamic Ports on Demand

Page 23: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 5: Virtualization Configuration

23 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

Chapter 5 Virtualization Configuration

This chapter presents the following topics:

Introduction ......................................................................................................... 24

Configuring a virtual disk for OS deployment on the PowerEdge 740 server ............................................................................................................ 24

Configuring prerequisites to install Windows Server ..................................... 25

Installing Windows Server 2016 OS on the PowerEdge R740 server ............ 25

Installing Broadcom network driver files on Windows Server 2016 .............. 26

Enabling Hyper-V, failover clustering, and multipath features in Windows Server 2016 .................................................................................. 26

Setting up NIC teaming in Windows Server 2016 ............................................ 26

Page 24: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 5: Virtualization Configuration

24

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Introduction To set up virtualization, perform the following tasks, as described in this chapter:

1. Configure a virtual disk for OS deployment on the PowerEdge R740 server.

2. Configure prerequisites to install Windows Server.

3. Install the Windows Server 2016 operating system on the PowerEdge R740 server.

4. Install Broadcom network driver files on Windows Server 2016.

5. Enable Hyper-V and multipath features in Windows Server 2016.

6. Set up NIC teaming in Windows Server 2016.

Configuring a virtual disk for OS deployment on the PowerEdge 740 server

Configure a virtual disk for OS deployment on the PowerEdge 740 server:

1. Log in to iDRAC and launch the virtual console.

2. From the Power menu, select Power on the system.

3. When the following message appears, click Yes:

You are about to execute a server control action. Are you sure you want to continue?

The system restarts.

4. To run the RAID configuration utility, press Ctrl-R when the following message appears:

press CTRL + R to Run configuration utility

5. In the configuration utility, select PERC H730 Mini, and then press F2 to enable operations.

6. From the list box, select Create New VD.

7. Set RAID Level to RAID-1, select physical disks, set the basic settings, use default virtual disk size, virtual disk name, and then click OK.

Note: The OS partition is not I/O intensive. RAID 1 is recommended for OS partitions so that they have hardware redundancy.

8. When the following message appears, click OK:

It is recommended that all newly created logical drives be initialized unless you are attempting to recreate a previous configuration and recover data as initialization is a destructive process. Are you sure you want to skip initialization?

The virtual disk is created.

9. Exit Setup and restart the server.

Page 25: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 5: Virtualization Configuration

25 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

Configuring prerequisites to install Windows Server Configure the prerequisites to install Windows Server:

1. Map the virtual disk:

In the virtual console, click Connect Virtual Media, and then click Map CD/DVD.

In the Drive/Image File dialog box, provide the drive location, and then click Map Device.

2. Set the boot device and load the OS executable files:

In the virtual console, select Next Boot, and then select Virtual CD/DVD/ISO.

When the following message appears, click OK:

The selected device is set as the boot device for the next boot until another user changes the selected boot device. Therefore, it is recommended to reboot the server immediately after saving this selection. Click OK to save the selection.

Virtual CD/DVD/ISO is set as the boot device.

Restart the server.

Installing Windows Server 2016 OS on the PowerEdge R740 server

Install Windows Server 2016 on the PowerEdge R740 server:

1. Power on the server and press any key after you see the following message:

Booting from Virtual CD Press any key to boot from CD or DVD.

The Windows Server setup appears.

2. Select language preference, time and currency format, and keyboard or input method, and then click Next.

3. In Windows Setup, click Install now.

4. Type the product key, and then click Next.

5. Select OS - Windows Server 2016 Datacenter (Server with GUI), and then click Next.

6. In License terms, select I accept the license terms, and then click Next.

7. In Installation type, select Custom: Install windows only (advanced).

8. Select Drive0 Unallocated Space and click New to create the partition, and then click Next > Next.

Page 26: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 5: Virtualization Configuration

26

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

9. When the following message appears, click OK:

To ensure that all Windows features work correctly, Windows might create additional partitions for system files

10. After the installation is complete, on the Settings page, set the username and password.

Installing Broadcom network driver files on Windows Server 2016 Install the Broadcom network driver files on Windows Server 2016:

1. Log in to the PowerEdge R740 server.

2. Copy the Broadcom 57412 network driver for 64-bit Windows to a location on the PowerEdge R740 server.

3. Run the network driver installer.

4. On the welcome screen, click Next.

5. At the License Agreement, select I accept the terms in the license agreement, and then click Next.

6. In Custom Setup, select the default settings, and then click Next.

7. At Ready to Install the Program, click Install.

8. In InstallShield Wizard, click Finish.

9. To view the network card, on the Windows desktop, click Start, select Run, and then type ncpa.cpl.

The Network Connections page displays all the NIC cards.

Enabling Hyper-V, failover clustering, and multipath features in Windows Server 2016

Type the following Windows PowerShell command to install Windows features.

Note: In Windows Server 2016, run the Windows PowerShell command as an administrator. This step requires a restart.

Install-WindowsFeature –Name Failover-Clustering, Multipath-IO, Hyper-V–IncludeManagementTools – Restart

Setting up NIC teaming in Windows Server 2016 Set up NIC teaming in Windows Server 2016:

1. In Server Manager, select Local Server.

2. In Properties, click NIC Teaming status – Disabled.

3. In NIC Teaming, from TASKS, select New Team.

Page 27: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 5: Virtualization Configuration

27 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

4. In New team, type the team name, for example ConvergedNet Team, and select the NICs that you want to include in the team.

5. In Additional properties, set Teaming mode to Switch Independent and Load balancing mode to Dynamic, and then click OK.

Note: The dynamic mode is a new feature of Windows Server 2016. The load balancing algorithm, which balances traffic using flowlets, can spread both inbound and outbound traffic. The Hyper-V port algorithm forces all VM traffic only through one physical NIC, whereas the dynamic mode spreads traffic across all the NICs, regardless of workload.

6. Verify that the NICs are active.

Page 28: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 6: Post-Virtualization Configuration

28

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Chapter 6 Post-Virtualization Configuration

This chapter presents the following topics:

Configuring SAN switches and Fibre Channel array for Hyper-V .................. 29

Storage specifications ....................................................................................... 32

Configuring the network in Windows Server 2016 .......................................... 32

Configuring the vEthernet switch in Windows Server 2016 ........................... 33

Renaming and adding servers to the domain .................................................. 33

Installing Dell EMC PowerPath software .......................................................... 33

Adding volumes in the PowerEdge R740 server ............................................. 34

Page 29: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 6: Post-Virtualization Configuration

29 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

Configuring SAN switches and Fibre Channel array for Hyper-V To map storage volumes to the Hyper-V cluster, perform the following tasks, as described in this section:

1. Create a zone configuration.

2. Create a zone alias to easily manage the zone configuration.

3. Create zones.

4. Enable the zone configuration.

5. Create a storage pool.

6. Add the host to the Unity 400 storage.

7. Create a LUN and map it to the host. Create and enable a zone configuration:

1. In Web Tools, select the switch from the Fabric tree.

2. Click Configure, and then click Zone Admin.

3. In Zone Administration, from the New list box, select New Zone Config.

4. In the Create New Config dialog box, type a name for the new configuration, and then click OK.

Create a zone alias:

1. In Web Tools, select the switch from the Fabric tree.

2. Click Configure > Zone Admin.

3. In the Zone Administration window, from the New list box, click New Alias.

4. In the Create New Alias dialog box, type a name for the new alias and click OK.

For example, server ports, storage ports.

5. Expand the Member Selection List to view the nested elements.

6. Click the ports that are connected.

7. Click the World Wide Name (WWN) of the card, and then click the right arrow to add the WWN to alias members.

8. Repeat the preceding steps to create an alias for all the servers and storage physical ports and virtual ports.

9. Click Action > Save Config to save the configuration changes.

Note: You can also view the WWN of the servers from the iDRAC console.

Creating a zone configuration

Creating a zone alias

Page 30: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 6: Post-Virtualization Configuration

30

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Create zones:

1. In Web Tools, select the switch from the Fabric tree.

2. Click Configure > Zone Admin.

3. In the Zone Administration window, from the New list box, click New Zone.

4. In the Create New Zone dialog box, type a name for the new zone, and click OK.

5. Expand Member Selection List to view the nested elements.

6. In Member Selection List, select the storage virtual ports and server ports alias that you want to include in the zone.

7. Click the right arrow to add the zone members to the zone alias.

8. Select Zoning Actions > Save Config to save the configuration changes.

9. Repeat the preceding steps to create zones for all the servers and storage virtual ports.

Enable the zone configuration:

1. In Web Tools, select the switch from the Fabric tree.

2. Click Configure > Zone Admin.

3. In the Zone Administration window, click the Zone Config tab.

4. Expand Member Selection List to view the nested elements.

5. In Member Selection List, select the zones that you have created.

6. Click the right arrow to add the zones.

7. Select Zoning Actions > Save Config to save the configuration changes.

8. On the toolbar, click Enable Config.

9. In the Choose Zone Config to be enabled dialog box, select the config, and click OK.

10. Click Yes to confirm that you want to enable the configuration.

The Brocade switch for SAN connectivity is configured and enabled.

Create a storage pool:

1. Log in to the Unisphere DBUnity 400 dashboard.

2. In the left panel, go to Storage > Pools, and click the plus sign (+).

3. In the Create Pool window, type the name of the pool and then click Next.

4. Select the type of tier from the available options—Extreme Performance, Performance, and Capacity.

5. Select Use FAST Cache if you want to enable FAST cache for this pool.

6. Select a RAID configuration for the drives.

7. Click Next.

Creating zones

Enabling the zone configuration

Creating a storage pool

Page 31: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 6: Post-Virtualization Configuration

31 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

8. In the Summary window, select the drives to be included in the pool.

9. Verify the total capacity of the pool.

10. Click Finish. Add the host to the Unity 400:

1. Log in to the Unisphere DBUnity 400 dashboard.

2. In the left panel, go to Access > Hosts, click the plus sign (+), and then select Host.

3. In the Add a Host window, type the following details:

Hostname

Operating system

Network address (IP of the host)

4. Click Next.

5. In the Initiators window, select Initiator WWN, and then click Next.

6. In the Summary window, click Finish.

Create a LUN and map it to the host:

1. Log in to the Unisphere DBUnity 400 dashboard.

2. In the left panel, go to Storage > Block, and click the plus sign (+).

The Create LUN window opens.

3. In the Configure tab, type or select the following details:

Number of LUNs

Name of the LUN

Pool (select the pool that you created from the list of pools)

Tiering policy (choose one of the options—Start High Then Auto-Tier, Highest Available Tier, and Lowest Available Tier)

Size of the pool

Host I/O limit (select No Limit)

4. In the Access tab, click the plus sign (+).

5. In the Select Host Access window, select the hostname that you configured earlier.

6. Click OK.

7. Click Next.

8. In the Summary window, click Finish.

Adding the host to the Unity 400

Creating a LUN and mapping it to the host

Page 32: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 6: Post-Virtualization Configuration

32

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Storage specifications Typically, you can enhance SQL Server performance by placing the database and transaction log files on separate drives. Read I/O for database files is typically random while the I/O for the transaction log is typically sequential. Table 5 lists the storage specifications for the Hyper-V cluster and the SQL Server databases.

Table 5. Storage specifications

Storage specification Number of volumes Size of each volume

Hyper-V cluster

Clustered shared volume for hosting VMs

1 2 TB

Quorum volume 1 1 GB

SQL Server database servers

SQL Server datafile 1 1 TB

SQL Server log file 1 500 GB

tempdb 1 200 GB

Quorum volume (guest clustering) 1 1 GB

Configuring the network in Windows Server 2016 On the PowerEdge R740 server, start Windows PowerShell and configure the network:

1. Create a VM switch:

New-VMSwitch –AllowManagementOS 1 –Name ConvergedNetSwitch –MinimumBandwidthmode weight – Verbose NetAdapterName: ConvergedNet Team

2. Create a VM network adapter for the cluster:

Add-VMNetworkAdapter –ManagementOS –SwitchName ConvergedNetSwitch –Name Cluster –Verbose

3. Create a VM network adapter for a live migration:

Add-VMNetworkAdapter –ManagementOS –SwitchName ConvergedNetSwitch –Name LiveMigration – Verbose

4. Set VLAN access properties for the management network adapter:

Set-VMNetworkAdapterVlan –ManagementOS –VMNetworkAdapterName ConvergedNetSwitch –Access – VlanId 10

5. Set VLAN access properties for the cluster network adapter:

Set-VMNetworkAdapterVlan –ManagementOS –VMNetworkAdapterName Cluster –Access –VlanId 20

Page 33: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 6: Post-Virtualization Configuration

33 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

6. Set VLAN access properties to LiveMigration:

Set-VMNetworkAdapterVlan –ManagementOS –VMNetworkAdapterName LiveMigration –Access –VlanId 30

7. Set the minimum bandwidth reservation for the management network adapter:

Set-VMNetworkAdapter -ManagementOS -Name ConvergedNetSwitch -MinimumBandwidthWeight 5

8. Set the minimum bandwidth reservation for the cluster network adapter:

Set-VMNetworkAdapter -ManagementOS -Name Cluster -MinimumBandwidthWeight 40

9. Set the minimum bandwidth reservation for the live migration network adapter:

Set-VMNetworkAdapter -ManagementOS -Name LiveMigration - MinimumBandwidthWeight 20

Note: In Network Connections, you can view vEthernet (ConvergedNetSwitch) and adapters for the cluster and live migration networks.

Configuring the vEthernet switch in Windows Server 2016 Configure the vEthernet switch:

1. In Network Connections, right-click vEthernet (ConvergedNetSwitch), and select Properties from the list box.

2. In vEthernet (ConvergedNetSwitch) Properties, configure IPV4 protocol properties, include the IP address and DNS server details, and then click OK.

3. Ping the VLAN 10 network to test the network connection.

Renaming and adding servers to the domain Rename and add servers to the domain:

1. Type the following Windows PowerShell command:

Add-Computer -DomainName <domainname> -NewName <Hostname> –Restart -Force

2. At the Windows prompt, type the credentials of the domain controller.

Installing Dell EMC PowerPath software Install Dell EMC PowerPath™ software:

1. Download the PowerPath software from the Dell EMC website.

2. Follow the instructions in the installation wizard to install the software.

Page 34: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 6: Post-Virtualization Configuration

34

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

3. Activate the PowerPath software using the license key that you received when you purchased it.

Adding volumes in the PowerEdge R740 server Add volumes in the PowerEdge R740 server:

1. Log in to the PowerEdge R740 server and, in Run, type:

diskmgmt.msc

2. In Disk Management:

Right-click New Disk and select Online.

Right-click the disk and select Initialize disk.

Right-click the disk and select New Simple Volume.

3. In the New Simple Volume wizard, click Next.

4. In Specify volume size in MB, use the default disk size, and then click Next.

5. In Assign Driver Letter or Path, select Do not assign a driver letter or driver path, and then click Next.

6. In Format Partition:

Select Format this volume with the following settings.

Set File system to NTFS, Allocation unit size to 64fK, and Volume label to Quorum.

Select perform a quick format.

Click Next.

7. In the Completing the New Simple Volume wizard, click Finish.

8. Repeat the preceding steps to create the second volume for storing the VHD files of the VMs.

Page 35: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 7: Cluster Configuration

35 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

Chapter 7 Cluster Configuration

This chapter presents the following topics:

Creating a cluster ............................................................................................... 36

Establishing VM-to-SAN connectivity .............................................................. 36

Page 36: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 7: Cluster Configuration

36

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Creating a cluster Perform the following tasks on any one of the nodes that you are going to add to the cluster:

1. Validate configuration.

2. Create a Hyper-V host cluster.

Perform the tasks as described in this section only once.

Ensure that you are logged in with a domain account that has administrative privileges.

The following command initiates a series of tests to verify if the configuration meets the guidelines for failover clustering:

Test-Cluster –Node "Node1", "Node2" -Include "Storage", Inventory, Network, "System Configuration"

After the test is complete, the tool displays the results. If any messages indicate failures with the tests, resolve the issues before proceeding.

The following command creates a two-node cluster with a static IP address, which is used for the cluster’s management connection:

New-Cluster –Name <"ClusterName"> –Node "Node1", "Node2" –StaticAddress <IPaddress>

Establishing VM-to-SAN connectivity The Virtual Fibre Channel feature in Hyper-V makes it possible for a VM to connect directly to a SAN through a virtualized Fibre Channel adapter. Establishing connectivity to the SAN by using a virtual Fibre Channel adapter is a two-step process. Create a VMware vSAN, and then add a virtual Fibre Channel adapter to the VM and connect it to the vSAN.

Create a vSAN:

1. On the Windows Start screen, click Server Manager.

2. Click Tools, and then click Hyper-V Manager.

3. In the Action panel, click Virtual SAN Manager.

4. Click Create.

5. In the Name field, type the name for the new vSAN.

6. In the Notes field, type any notes that are important for the vSAN.

7. Ensure that you select at least one available WWN for the vSAN to be used by the virtual Fibre Channel adapter.

Overview

Prerequisite

Validating the configuration

Creating a Hyper-V host cluster

Overview

Creating a vSAN

Page 37: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 7: Cluster Configuration

37 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

8. Click OK to create the vSAN.

9. In Hyper-V Manager, click Virtual SAN Manager to see the new vSAN.

Add and connect a virtual Fibre Channel adapter:

1. On the Windows Start screen, click Server Manager.

2. Click Tools, and then click Hyper-V Manager.

3. In Hyper-V Manager, under Virtual Machines, click the name of the VM that you want to add.

4. In the Action panel, click Settings.

In Add Hardware, you can view a list of hardware options that you can add to the VM.

5. Click Fibre Channel Adapter, and then click Add.

6. In Settings, connect the virtual Fibre Channel adapter to a vSAN that you previously created:

Click the Virtual SAN list box that shows Not connected.

Click the name of the required vSAN.

7. Configure the WWNs (Set A and Set B) for the virtual Fibre Channel adapter.

You can use the automatically generated default WWNs or manually assign them. Configure both WWN sets to ensure a successful live migration of the VM.

Create a VM, running the PowerShell commands as an administrator:

1. Create fixed VHD for better I/O performance:

$VHDPath="C:\ClusteredStorage\volume1\HDD\<HDDname>.vhdx" New-VHD -SizeBytes <size> –Path $VHDPath –Fixed

2. Create a VM:

$VMPath="C:\ClusteredStorage\volume1\VMs\<VMname>" New-VM -Name SP -Path $VMPath -MemoryStartupBytes <Memory> -BootDevice CD -SwitchName <switchname> -VHDPath $VHDPath

3. Configure the VM:

Set-VMProcessor -VMName DB -Count <vcpu count> Add-VMNetworkAdapter -VMName <VMName> -Name <Virtual Network adapter> Set-VMNetworkAdapterVlan -VMName <VMName> -VMNetworkAdapterName <Virtual Network adapter> - Access -VlanId <VLANID>

4. Add the vSAN switches to the VM:

Add-VMFibreChannelHba –VMName <VMName> –SanName <vSAN switch name1> Add-VMFibreChannelHba –VMName <VMname> –SanName <vSAN switch name2>

Adding and connecting a virtual Fibre Channel adapter to vSAN

Creating a VM

Page 38: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 8: Deployment Verification

38

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Chapter 8 Deployment Verification

This chapter presents the following topics:

Verifying the deployment ................................................................................... 39

Page 39: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 8: Deployment Verification

39 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

Verifying the deployment After you complete the deployment, verify the solution as follows:

1. Create VMs.

2. Migrate VMs across the cluster and check to see if the migration is progressing without any interruption.

3. Shut down one of the hosts and check to see if the VMs on that host are migrating within the cluster.

4. Power off one of the S4048-ON network switches and ensure that the VMs are running without any network loss.

Page 40: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 9: SQL Server 2016 Failover Cluster Installation

40

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

Chapter 9 SQL Server 2016 Failover Cluster Installation

This chapter presents the following topics:

Prerequisites for installing a SQL Server 2016 failover cluster ..................... 41

Configuring database VMs ................................................................................ 41

Initializing and formatting the storage volumes .............................................. 41

Installing the failover cluster ............................................................................. 42

Page 41: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 9: SQL Server 2016 Failover Cluster Installation

41 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

Prerequisites for installing a SQL Server 2016 failover cluster Before you install a SQL Server 2016 failover cluster, ensure that you have completed these steps:

1. Created a VM

2. Installed the operating system

3. Renamed and added a guest Windows server to the domain

4. Installed PowerPath software

5. Installed and configured Windows failover clustering

Configuring database VMs Table 6 lists the specifications for the database VMs.

Table 6. Configuring database VMs

Component Specification

vCPUs 24

Memory 160 GB

Memory for database 128 GB

Size of database LUN 600 GB

Size of log LUN 100 GB

Size of tempdb LUN 100 GB

Initializing and formatting the storage volumes The storage volumes are formatted with a 64 KB allocation unit to maximize the disk performance. Initialize and format the storage volumes on all the database server nodes by running the PowerShell commands in the following procedure.

Note: Ensure that both the database servers are assigned the same drive letter for a LUN.

1. Get newly added storage volumes:

Get-Disk | where-object Isoffline -eq $True

2. Initialize the disk:

Initialize-Disk -Number 1 -PartitionStyle MBR

3. Partition the disk:

New-Partition -DiskNumber 1 -DriveLetter 'E' –UseMaximumSize

Page 42: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 9: SQL Server 2016 Failover Cluster Installation

42

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

4. Format the volume:

Format-Volume -DriveLetter 'E' -FileSystem NTFS -AllocationUnitSize 65536 -Confirm:$false

5. Repeat the preceding steps for all the storage volumes that are assigned to the server.

Installing the failover cluster Before you install the failover cluster, ensure that the SQL Server installation media is ready to start the installation. Install a SQL Server cluster instance by first running the setup in the first node. After the initial installation in the first node, run setup.exe in all the other nodes where you want to install the SQL Server clustered instance. Install the SQL Server failover cluster in the first node:

1. Initiate the installation:

Run Setup.exe as an administrator.

In the SQL Server Installation Center window, select Installation in the left panel, and then click New SQL Server failover cluster installation.

In Product key, type the product key, and then click Next.

In License Terms, select I Accept the license terms, and then click Next.

The installation wizard identifies any issues in the Global Rules window and reports them.

In Microsoft Update, select Use Microsoft Update to check for updates (recommended), and then click Next.

2. Click Next and continue with the installation:

In Install Failover Cluster Rules, review and resolve any reported errors, and then click Next.

In Setup Role, select SQL Server Feature Installation, and then click Next.

In Feature Selection, select Database Engine Services and Management Tools - Basic, and then click Next.

In Feature Rules, ensure that all the rules have passed, and then click Next.

In Instance Configuration, type the SQL Server instance network name in SQL Server Network Name, and then click Next.

In Cluster Resource Group, type the SQL Server cluster resource group name in SQL Server Cluster Resource Group Name, and then click Next.

In Cluster Disk Selection, select the default cluster disk, and then click Next.

In Cluster Network Configuration, select the IPv4 network and configure the IP address.

Installing the SQL Server failover cluster in the first node

Page 43: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 9: SQL Server 2016 Failover Cluster Installation

43 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

In Server Configuration:

i On the Service Accounts tab, specify the domain accounts and passwords for the SQL Server agent and SQL Server engine.

ii On the Collation tab, click Customize, and then select SQL_Latin1_General_CP1_CI_AS for the SQL collation.

iii Select Grant Perform Volume Maintenance Task privilege to SQL Server Database Engine Service.

In the Server Configuration tab of Database Engine Configuration, select Windows authentication mode, and then click Add to enter the SQL server administrators.

In Database Engine Configuration:

i Click the Data Directories tab.

ii To store the SQL database files, define the paths for disks or paths of the root for the following:

System databases directory

User databases

Log files

Backup files

tempdb

Click Next.

In Feature Configuration, click Next.

In Ready to Install, review all the displayed configurations, and then click Install.

The wizard displays the installation progress.

3. In the Complete window, verify that all the items have been successfully installed, and then click Close.

4. Add the other nodes to the SQL Server failover clustered instance.

Install the SQL Server failover cluster in the second node:

1. Initiate the installation:

Run Setup.exe as an administrator.

In the SQL Server Installation Center window, select Installation in the left panel, and then click Add node to a SQL Server failover cluster.

In Product key, verify the product key, and then click Next.

In License Terms, select I Accept the license terms, and then click Next.

The installation wizard identifies any issues in the Global Rules window and reports them.

Installing SQL Server 2016 failover cluster in the second node

Page 44: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 9: SQL Server 2016 Failover Cluster Installation

44

DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage Deployment Guide

In Microsoft Update, select Use Microsoft Update to check for updates (recommended), and then click Next.

2. Continue with the installation:

In Node Rules, review and resolve any reported errors, and then click Next.

In Cluster Nodes Configuration, select the SQL Server instance that you want to add to the node.

In Cluster Network Configuration, select the IPv4 network and configure the IP address.

In Service Accounts, type and confirm the SQL Server agent and SQL Server engine passwords.

In Feature Rules, review all the displayed rules, and then click Next.

In Ready to Add Node, confirm the settings, and then click Install.

The wizard displays the installation progress and prompts you with the completed window after the installation is over.

3. Click Close to exit the installation wizard.

The SQL Server failover cluster installation is now complete.

To get the best database performance, perform these steps:

1. Open SQL Server Management Studio and click New Query.

2. Set the maximum memory by typing the following SQL query:

sp_configure 'show advanced options', 1; GO RECONFIGURE; GO sp_configure 'max server memory', <'Memory in MB'>; GO RECONFIGURE; GO

3. Set MAXDOP to 0 by typing the following SQL query:

USE Master: GO EXEC sp_configure 'show advanced options', 1; GO RECONFIGURE WITH OVERRIDE; GO EXEC sp_configure 'max degree of parallelism', 0; GO RECONFIGURE WITH OVERRIDE; GO

Configuring SQL Server 2016

Page 45: Dell EMC Ready Bundle for Microsoft SQL Server 2016...According to Microsoft SQL Server 2016 best practices and Dell EMC infrastructure design principles, each application network

Chapter 9: SQL Server 2016 Failover Cluster Installation

45 DELL EMC READY BUNDLE FOR MICROSOFT SQL SERVER 2016 Enabled by Hyper-V Virtualization on Windows Server 2016, PowerEdge R740 Servers, and Unity 400 Hybrid Flash Storage

Deployment Guide

4. Move the tempdb to a different volume to isolate the tempdb I/O operations from other databases:

Open SQL Server Management Studio, and click New Query.

Type the following SQL query to move the tempdb files:

USE master; GO ALTER DATABASE tempdb MODIFY FILE (NAME = temp, FILENAME = 'E:\SQLData\tempdb.mdf'); GO ALTER DATABASE tempdb MODIFY FILE (NAME = temp2, FILENAME = 'E:\SQLData\tempdb_mssql_2.ndf'); GO ALTER DATABASE tempdb MODIFY FILE (NAME = temp3, FILENAME = 'E:\SQLData\tempdb_mssql_3.ndf'); GO ALTER DATABASE tempdb MODIFY FILE (NAME = temp4, FILENAME = 'E:\SQLData\tempdb_mssql_4.ndf'); GO ALTER DATABASE tempdb MODIFY FILE (NAME = temp5, FILENAME = 'E:\SQLData\tempdb_mssql_5.ndf'); GO ALTER DATABASE tempdb MODIFY FILE (NAME = temp6, FILENAME = 'E:\SQLData\tempdb_mssql_6.ndf'); GO ALTER DATABASE tempdb MODIFY FILE (NAME = temp7, FILENAME = 'E:\SQLData\tempdb_mssql_7.ndf'); GO ALTER DATABASE tempdb MODIFY FILE (NAME = temp8, FILENAME = 'E:\SQLData\tempdb_mssql_8.ndf'); GO ALTER DATABASE tempdb MODIFY FILE (NAME = templog, FILENAME = 'E:\SQLLog\templog.ldf'); GO

5. Restart the SQL Server service.