Virtualisa)on* and SAN Basics for DBAs. *See, I used the S instead of the zed. I m pretty smart for a foreigner.



Similar documents
Best Practices for Monitoring Databases on VMware. Dean Richards Senior DBA, Confio Software

Deploying and Optimizing SQL Server for Virtual Machines

About Me: Brent Ozar. Perfmon and Profiler 101

Virtual server management: Top tips on managing storage in virtual server environments

Microsoft Hyper-V chose a Primary Server Virtualization Platform

The VMware Administrator s Guide to Hyper-V in Windows Server Brien Posey Microsoft

Virtualizing Microsoft SQL Server 2008 on the Hitachi Adaptable Modular Storage 2000 Family Using Microsoft Hyper-V

Gavin Payne Senior Consultant.

Barracuda Backup Vx. Virtual Appliance Deployment. White Paper

DIABLO TECHNOLOGIES MEMORY CHANNEL STORAGE AND VMWARE VIRTUAL SAN : VDI ACCELERATION

Monitoring Databases on VMware

IOmark- VDI. HP HP ConvergedSystem 242- HC StoreVirtual Test Report: VDI- HC b Test Report Date: 27, April

Best Practices for Virtualised SharePoint

Windows Server 2012 授 權 說 明

Hyper-V vs ESX at the datacenter

SharePoint Capacity Planning Balancing Organiza,onal Requirements with Performance and Cost

StarWind iscsi SAN Software Hands- On Review

Enabling Technologies for Distributed and Cloud Computing

What s New with VMware Virtual Infrastructure

Server and Storage Virtualization with IP Storage. David Dale, NetApp

IOmark-VM. DotHill AssuredSAN Pro Test Report: VM a Test Report Date: 16, August

Distribution One Server Requirements

ONSITE TRAINING CATALOG

I-Motion SQL Server admin concerns

DESKTOP VIRTUALIZATION SIZING AND COST MODELING PROCESSOR MEMORY STORAGE NETWORK

VDI Without Compromise with SimpliVity OmniStack and Citrix XenDesktop

Memory and SSD Optimization In Windows Server 2012 and SQL Server 2012

Virtualization of the MS Exchange Server Environment

Server and Storage Sizing Guide for Windows 7 TECHNICAL NOTES

Storage and SQL Server capacity planning and configuration (SharePoint...

VI Performance Monitoring

SharePoint 2013 Best Practices

SQL Server Virtualization

MaxDeploy Ready. Hyper- Converged Virtualization Solution. With SanDisk Fusion iomemory products

Enabling Technologies for Distributed Computing

One of the database administrators

Backup and recovery as agile as the virtual machines being protected

EMC PERFORMANCE OPTIMIZATION FOR MICROSOFT FAST SEARCH SERVER 2010 FOR SHAREPOINT

Bosch Video Management System High Availability with Hyper-V

VDI Optimization Real World Learnings. Russ Fellows, Evaluator Group

Virtual Server and Storage Provisioning Service. Service Description

Remote Network Accelerator

Microsoft Exchange Solutions on VMware

EMC Business Continuity for Microsoft SQL Server 2008

Entry level solutions: - FAS 22x0 series - Ontap Edge. Christophe Danjou Technical Partner Manager

MODULE 3 VIRTUALIZED DATA CENTER COMPUTE

Comparison of Hybrid Flash Storage System Performance

Datto Whitepaper: Business Continuity Built from the Ground Up. Business Continuity Built from the Ground Up THE ONLY CONTINUITY

E4 UNIFIED STORAGE powered by Syneto

SQL Server Virtualization 101. David Klee, Group Principal and Practice Lead. SQL PASS Virtualization VC,

Simply type the id# in the search mechanism of ACS Skills Online to access the learning assets outlined below.

Evaluation Report: Accelerating SQL Server Database Performance with the Lenovo Storage S3200 SAN Array

VMWare Workstation 11 Installation MICROSOFT WINDOWS SERVER 2008 R2 STANDARD ENTERPRISE ED.

Using EonStor FC-host Storage Systems in VMware Infrastructure 3 and vsphere 4

Laserfiche Hardware Planning and Specifications. White Paper

Accelerating Application Performance on Virtual Machines

IOS110. Virtualization 5/27/2014 1

Sawmill Log Analyzer Best Practices!! Page 1 of 6. Sawmill Log Analyzer Best Practices

Enterprise Deployment: Laserfiche 8 in a Virtual Environment. White Paper

Veeam Backup & Replication

Virtualization. Dr. Yingwu Zhu

A Comparison of VMware and {Virtual Server}

Addendum No. 1 to Packet No Enterprise Data Storage Solution and Strategy for the Ingham County MIS Department

MS EXCHANGE SERVER ACCELERATION IN VMWARE ENVIRONMENTS WITH SANRAD VXL

IOmark- VDI. Nimbus Data Gemini Test Report: VDI a Test Report Date: 6, September

The 5-minute SQL Server Health Check

Cloud Sure - Virtual Machines

VMware for Bosch VMS. en Software Manual

Technical Paper. Moving SAS Applications from a Physical to a Virtual VMware Environment

Qsan Document - White Paper. Performance Monitor Case Studies

Gladstone Health & Leisure Technical Services

Highly Available Tessitura

MS Exchange Server Acceleration

Getting the Most Out of Virtualization of Your Progress OpenEdge Environment. Libor Laubacher Principal Technical Support Engineer 8.10.

Hard Disk Drive vs. Kingston SSDNow V+ 200 Series 240GB: Comparative Test

Expert Reference Series of White Papers. Five Secrets for Successfully Virtualizing a Data Center

Best practices for operational excellence (SharePoint Server 2010)

Maximizing SQL Server Virtualization Performance

Description of Application

SQL Server 2014 New Features/In- Memory Store. Juergen Thomas Microsoft Corporation

Migrating to ESXi: How To

Comparing Free Virtualization Products

Analysis of VDI Storage Performance During Bootstorm

Capacity planning with Microsoft System Center

DATABASE ADMINISTRATOR SKILL SETS AND AREAS OF RESPONSIBILITY

Improving IT Operational Efficiency with a VMware vsphere Private Cloud on Lenovo Servers and Lenovo Storage SAN S3200

XenDesktop 7 Database Sizing

(Formerly Double-Take Backup)

SQL Clusters in Virtualized Environments April 10 th, 2013

Toolbox 4.3. System Requirements

SoftLayer Fundamentals. Storage and Backup. August, 2014

Outline. Introduction Virtualization Platform - Hypervisor High-level NAS Functions Applications Supported NAS models

101 Stupid Things Your Colleagues Do When Setting Up A SQL Server. Matt Slocum

Disk-to-Disk Backup Solution

Balancing CPU, Storage

VMware vrealize Configuration Manager Advanced Installation Guide vrealize Configuration Manager 5.8

Worry-free Storage. E-Series Simple SAN Storage

Avoid Paying The Virtualization Tax: Deploying Virtualized BI 4.0 The Right Way. Ashish C. Morzaria, SAP

Virtual SAN Design and Deployment Guide

Vocera Voice 4.3 and 4.4 Server Sizing Matrix

Transcription:

Virtualisa)on* and SAN Basics for DBAs *See, I used the S instead of the zed. I m pretty smart for a foreigner.

Brent Ozar - @BrentO

BrentOzar.com/go/san BrentOzar.com/go/virtual

Today s Agenda! How Virtualisa7on Changes:! CPU! Memory! Monitoring! SAN! Specific Guidelines! General Guidelines

Virtualisation is not here to make things faster. Virtualisation is here to make things cheaper.

Cheaper Can Mean:! Less hardware! Less sohware! Less licensing! Less management 7me

The SQL Server DBA's Role! Embrace cheaper and easier! Work within virtualisa7on's rules! Work around the hardware limits! Try not to leave performance on the datacenter floor

Virtualisa)on Changes:! CPU (and Licensing)! Memory! Monitoring! Storage! HA/DR

CPU Pop Quiz What % CPU average does your CIO want to see?

You're doing it wrong. Photo Source: http://www.flickr.com/photos/schwenke/4496632138/

CPU Speed A.V.M.! How many virtual cores do we need?! How many idle real cores are available?! How fast is each physical core? (Think power saving CPUs)! Do we get the same percentage of each?! Did we run our last instruc7on on the same cores? Photo Source: http://www.flickr.com/photos/schwenke/4496632138/

Our Scenario! 4- core host! Mostly sits idle! Just two guests: SQL and APP

Step 1: Working Core0 Core1 Core2 Core3 SQL SQL Idle Idle

Step 1: Wai)ng Core0 Core1 Core2 Core3 Idle Idle Idle Idle

Step 2: Sharing Core0 Core1 Core2 Core3 APP APP Idle Idle

One Approach: Cache Miss Core0 Core1 Core2 Core3 APP APP SQL SQL

Another Approach: Wait Core0 Core1 Core2 Core3 APP APP Idle Idle SQL SQL

Many Cores, One Cache Performance Insights to Intel Hyper-Threading Technology http://software.intel.com/en-us/articles/performance-insights-to-intel-hyper-threading-technology/

Uh Oh Performance Insights to Intel Hyper-Threading Technology http://software.intel.com/en-us/articles/performance-insights-to-intel-hyper-threading-technology/

ScoXy! We Need More Power!

CPU- Z From CPUID.com

VM SQL CPU Best Prac)ces! Use the newest version of hypervisor! Minimize number of virtual cores! Check CPU speeds & cache with CPUID! Strip out unnecessary virtual hardware! Floppy drives, CD drives, etc! Remove all background services! Screen savers, Acrobat, file sync tools, an7virus(?)! Monitor for throaling, other guests! Avoid affinity masking

Today s Agenda! How Virtualisa7on Changes:! CPU! Memory! Monitoring! SAN! Specific Guidelines! General Guidelines

Memory Pop Quiz Exactly how much memory does your SQL Server need?

We suck at this. Photo Source: http://www.flickr.com/photos/trojanguy/3361498441/

Shameless Plug: See Page 50! Perfmon Memory Manager Counters:! Total Server Memory (KB)! Target Server Memory (KB)! Buffer pool only! If Target > Total, there s memory pressure.

How the Magic Happens! Hypervisor dedupes, compresses memory (VM, XS prototype)! Balloon driver fakes memory pressure (HV, VM, XS)! Worst case scenario: host page file (VM)

VMware RAM Best Prac)ces! VMware:! Set a memory reserva7on! Set SQL's min/max memory appropriately! MS Hyper- V:! Avoid dynamic memory for SQL Servers today (works great for virtual desktops though) Vmware Performance and Scalability of Microsoft SQL Server on VMware vsphere 4 from http://www.vmware.com/resources/techresources/10033

Today s Agenda! How Virtualisa7on Changes:! CPU! Memory! Monitoring! SAN! Specific Guidelines! General Guidelines

New Perfmon Counters! VMware ESX 3.5 manual download! VMware vsphere 4.0 built in! No extra permissions required! Most VMware sysadmins don t even know about them

VM Processor Counters! % Processor Time! Host Processor Speed (MHz)! Limit (MHz)! Reserva7on (MHz)

VM Memory Counters! Memory Limit (MB)! Memory Reserva7on (MB)! Memory Ballooned (MB)! Memory Swapped (MB)! Just for curiosity:! Memory Shared (MB)! Memory Shared Saved (MB)

Today s Agenda! How Virtualisa7on Changes:! CPU! Memory! Monitoring! SAN! Specific Guidelines! General Guidelines

Who trusts their SAN administrators?

Know who else doesn t trust SAN admins?

Your SAN vendor.

You don t have to do everything exactly the way the vendor says. But if you don t, you need to explain why.

Sample TempDB Sec)on

COALESCE! Takes first non- null value! SELECT COALESCE(Field1, Field2, Field3)! Field1 = null, Field2 = null, Field3 = Brent Return value will be Brent! Field1 = null, Field2 = Rob, Field3 = Brent Return value will be Rob

How SAN Guidelines Really Work SELECT COALESCE( YourTestedAndProvenSeqng, VendorGuideline, GeneralGuideline) AS WhatToDo FROM dbo.internet WHERE source = Trusted

Today s Agenda! How Virtualisa7on Changes:! CPU! Memory! Monitoring! SAN! Specific Guidelines! General Guidelines

RAID 5 and RAID 10

General RAID Guidelines! RAID 10 everywhere you can afford it! When you can t it, RAID 5* in this order:! TempDB data files! TempDB log files! User database data files! User database log files! Backup target! Avoid RAID 0, not even for TempDB, unless you are okay with an outage. * - There s other RAID levels we ll get to that.

RAID 0, 5, 10 Explained! RAID 0:! Only one copy of your data, spread out across a lot of drives! Lose one drive, and you must restore! RAID 10:! Two copies of your data! RAID 5:! Only one copy of your data, but there s an extra drive for parity*! Lose one drive, and it ll rebuild w/a spare drive! Lose two drives, and you must restore * - before you raise your hand and say I m wrong, smart guy, lemme finish. I m teaching this slowly I ll explain 3 slides later.

Why RAID 5 Has Slower Writes Photo Source: http://en.wikipedia.org/wiki/standard_raid_levels

Way Oversimplified Parity! Drive A Sector 1 = 100! Drive B Sector 1 = 150! Drive C Sector 1 = 50! Parity = 300

How RAID 5 Really Works Photo Source: http://en.wikipedia.org/wiki/standard_raid_levels

RAID 6: RAID 5 with Extra Parity Photo Source: http://en.wikipedia.org/wiki/standard_raid_levels

If you have ten 1TB drives to use: RAID 5:! One copy of your data, less one drive for parity! 9TB of usable space RAID 10:! Two copies of your data! 5TB of usable space If you need 5TB of usable space: RAID 5:! One copy of your data, plus one drive for parity! 6 hard drives required RAID 10:! Two copies of your data! 10 hard drives required

General Shared vs Dedicated! Shared Arrays: Should I use one big pool of drives shared between lots of servers, or dedicate specific drives to specific servers?! Shared LUNs (Drive Leaers): Should I put my data and log files on the same drive leaer?

Shared vs Dedicated Arrays! If you have all these, dedicated is OK:! A trusted SAN admin! SAN performance monitoring sohware! Correctly configured ac7ve/ac7ve mul7pathing! More than a terabyte of data in one database! If not, consider a big shared pool of drives.! Share pools with dissimilar server load types, not similar load types & 7mes! Know your neighbor s backup & virus scan 7mes

Shared vs Dedicated LUNs! LUN = Windows drive leaer*! Consider data & logs on same LUN if:! You re using SAN snapshots and the mfr says to! It s all one big pool of drives anyway! Consider dedicated LUNs for data & logs if:! You re using filegroups & par77ons! You re considering filegroup backups! You can use 7ered storage (SATA + FC + SSD)! You re going to micromanage performance (and I think that s a good thing) * - yes, smart guy, I m simplifying this. When you teach a class, you try teaching the concept of SANs in three hours. It s hard.

General TempDB LUN Guidelines! My default: always use a separate LUN! May need to improve its performance separately from the user databases! Need to avoid SAN replica7on for it! My preference: one pool of SATA RAID 10 for all my SQL Server TempDBs! Cheap! Huge capacity! Similar load paaerns

General iscsi vs Fiber Channel! Use the fastest interface you can:! 10GB iscsi! 8GB Fiber! 4GB Fiber! 2GB Fiber! 1GB iscsi! The slower interface you have, the more you need mul7pathing.! Know your controller s connec7ons.! You can probably connect more there too.

General Purchasing Guideline! Un7l you can prove your boaleneck isn t your connec7vity, don t buy more drives.! SQLIO tutorial: hap://www.brentozar.com/go/sqlio

Today s Agenda! How Virtualisa7on Changes:! CPU! Memory! Monitoring! SAN! Specific Guidelines! General Guidelines

BrentOzar.com/go/san BrentOzar.com/go/virtual