SlideShare une entreprise Scribd logo
1  sur  45
SAN Basics for DBAs
Joey D’Antoni
Central Pennsylvania User Group
November 13, 2012




 www.facebook.com/prpass
About Me

   Principal Architect SQL Server at Comcast Cable
   Blog: joedantoni.wordpress.com
   Twitter: @jdanton
   Email: jdanton1@yahoo.com
Storage

   Understanding Storage Types
   SSDs
   RAID Levels
   Components of a SAN
   SAN Benefits
   SANs and DR
   Summary
Storage
Different Kind of Storage
Hard Drive Components
Caching

 Almost all hard drives (SAN, Direct Attached)
  have some form of caching (RAM in front of
  storage)
 For SQL Servers—make sure you have a
  battery backed cache—if you don’t and
  power fails—you will lose data!
Disk Drives

 Hard Drives can only spin at 15,000 RPM.
 Hard Drive Performance has improved
  approximately 50x
 Have grown in capacity
 During the performance improvement CPU
  speed increase 5521x
Why is storage the bottleneck?
Memory versus Hard Drives
Latency

 ―Disk latency is around 13ms, but it depends on the
    quality and rotational speed of the hard drive. RAM
    latency is around 83 nanoseconds. How big is the
    difference?
 If RAM was an F-18 Hornet with a max speed of 1,190
mph (more than 1.5x the speed of sound), disk access
speed is a banana slug with a top speed of 0.007 mph.‖



--credit Christian Paredes Blue Box Group
SSDs (Solid State Drives)
SSDs are Fast

 Much faster on random reads and writes
   At least 5x better performance, often much more
   Up to 350x faster on seeks
 Not nearly as much of difference on
  sequential reads and writes
SSDs are Expensive

 List Prices From Fusion-IO
    160GB SLC ioDrive - $8495
    320GB SLC ioDrive - $15495
    320GB MLC ioDrive - $7495
    640GB MLC ioDrive - $11495

    320GB SLC ioDrive Duo – 16,990
    640GB SLC ioDrive Duo - $30,990
    640GB MLC ioDrive Duo - $14,990
    1.28TB MLC ioDrive Duo - $22,990

 These are really great for TempDB
SANs and SSDs

 More to come later!
RAID

 RAID—Redundant Array of Independent
  Disks
 Hard Drives Will Fail, RAID is what gives you
  protection from that
RAID 0
RAID 0, Don’t Do This

 From a major virtualization vendor
  benchmark
RAID 0

 No data protection
  at all
 Best performance
 If you lose one disk,
  you lose it all
 As you add disks
  risk increases
RAID 1--Mirroring

 Mirroring
 No increase in
  write performance
 Read
  performance is
  increased
 50% Capacity
  Loss
RAID 5—Striping (What you SAN Admin Wants)

 Maximum Capacity
 Big Write Penalty—
  gets worse as more
  disks are added
 Not good for highly
  transaction
  databases
 *Caveat
RAID 1+0 (10) Mirrored Striping

 Best performance
 Requires 4 or more
  drives
 Only 50% of actual
  capacity is used
Summary of RAID Levels

 Ask for RAID 10 for Everything (you won’t get
  it)
 Make sure your TempDB and Logs are on
  RAID 10
 NEVER USE RAID 0!!!
Storage Area Network
What is a SAN?

 Basically a specialized computer for storage
 Computer, Switches and Hard Drives
 Not a performance device
 Can be used for redundancy and DR
  purposes
 Will serve many servers—so critical piece of
  your infrastructure
SAN Components

 HBA (Fibre) Card—Connects your server to SAN
  via Fiber Optic cable
 iSCSI Card—Ethernet Card connecting server to
  SAN
 Switch—Either fibre or ethernet switch
  connecting server to SAN
 SAN head unit—Controls processing, RAID
  levels
 Disk Array—The physical array behind your SAN
  (a bunch of hard drives)
SAN Terms

 LUN—Logical Unit Number, but in practical
  terms, what your SAN admin will call a disk
  that he presents to your server
 Fibre Channel—Cable connection to SAN
 IOPs—I/O Operations Per Second—the way
  your SAN admin measures performance
iSCSI vs Fibre Channel

 iSCSI is cheaper, and in smaller shops your
  network admin can manage the switches
 Over 10G Ethernet iSCSI is faster, unless…
   16 GB FC is still uncommond
 Fiber is more susceptible to breakage, but
  currently more common
 Note—all SAN components must be the
  same speed, or network traffic reverts to
  slowest in chain
Multi-Pathing

 How your SAN
  admin sleeps at
  night!
 Make sure your
  databases
  servers are
  multi-pathed
SAN Throughput
                               Max Mb/S


 10 GB iSCSI



    8 GB FC

                                                                Max Mb/S

   4 GB FC



  1 GB iSCSI


               0   200   400   600   800   1000   1200   1400
What are the Benefits of a SAN

 Expand Capacity easily and on the fly
 High availability
 Disaster Recovery
SANs and SQL Server—What to ask for

 TempDB absolutely needs its own disk (and
  you should have multiple TempDB files)
 Logs should be on a separate disk from data
  files
 Ideally separate system and user DBs
 If shared instance, put split high utilization
  DBs onto separate disk devices
SANs and DR—Block

 WARNING!—Don’t try this unless you have a
  real budget and a good SAN admin
 Most SANs vendors have as an option SAN
  replication
 Allows for multi-site failover
 Multi-site clustering fully supported in SQL
  Server 2012
 Expensive—requires fiber connection
  between sites and expensive software
SAN Replication
Shared Environment vs Dedicated
Environment
SANs are Multi-Tenant

 You don’t want to share disks with the
  Exchange server
 File servers are a decent partner for
  database servers
 But….
If you have are on a new SAN

 Most of the previous slides, don’t matter
 This technology on applies to really high
  end, enterprise-class storage arrays
 IBM, EMC, Hitachi
EMC VMax Fast DP

 Allows for dynamic moves of disk from faster
  to slower disks (Fibre channel to SATA), or
  slower to faster (FC to SSD)
 Totally dynamic, and seamless to servers
 Moves data in 768k extents
 Your SAN admin doesn’t know where your
  data is
FAST VP

Data
         SSD                  SSD                 SSD


 15K Fibre Channel      15k Fibre Channel   15k Fibre Channel
                     Log
       10K SATA            10K SATA            10K SATA
What does this mean for the DBA?

 Overall—don’t worry too much about—the
  technology is solid
 Make sure your transaction logs are in a
  group that can not go to SSD.
 A lot of what we did in the past, changes with
  this technology
Test Your SAN

 Good free tools available like SQLIO
 Never run this on a production server (and
  warn your SAN admin)
Summary

   RAID 0 is bad
   Hard Drives will always be the bottleneck
   Be nice to your SAN admin—ask for RAID 10
   Split your SQL files across many disks
   SSDs are fast, but pricey
Questions?
Platinum Sponsors:




Gold Sponsors:       Silver Sponsors:




                     Bronze Sponsors:   Swag Sponsors:
Contact Info

 Twitter: @jdanton
 Email: jdanton1@yahoo.com
 Blog (slides): joedantoni.wordpress.com

Contenu connexe

Tendances

Cassandra Day SV 2014: Designing Commodity Storage in Apache Cassandra
Cassandra Day SV 2014: Designing Commodity Storage in Apache CassandraCassandra Day SV 2014: Designing Commodity Storage in Apache Cassandra
Cassandra Day SV 2014: Designing Commodity Storage in Apache CassandraDataStax Academy
 
Deploying ssd in the data center 2014
Deploying ssd in the data center 2014Deploying ssd in the data center 2014
Deploying ssd in the data center 2014Howard Marks
 
Optimize Your Hardware for Drupal
Optimize Your Hardware for DrupalOptimize Your Hardware for Drupal
Optimize Your Hardware for DrupalChristoph Weber
 
Storage and performance, Whiptail
Storage and performance, Whiptail Storage and performance, Whiptail
Storage and performance, Whiptail Internet World
 
Varrow madness 2013 virtualizing sql presentation
Varrow madness 2013 virtualizing sql presentationVarrow madness 2013 virtualizing sql presentation
Varrow madness 2013 virtualizing sql presentationpittmantony
 
IMCSummit 2016 Keynote - Benzi Galili - More Memory for In-Memory Easy
IMCSummit 2016 Keynote - Benzi Galili - More Memory for In-Memory EasyIMCSummit 2016 Keynote - Benzi Galili - More Memory for In-Memory Easy
IMCSummit 2016 Keynote - Benzi Galili - More Memory for In-Memory EasyIn-Memory Computing Summit
 
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash TechnologyCeph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash TechnologyCeph Community
 
Get Your GeekOn With Ron - Session Two: Local Storage vs Centralized Storage ...
Get Your GeekOn With Ron - Session Two: Local Storage vs Centralized Storage ...Get Your GeekOn With Ron - Session Two: Local Storage vs Centralized Storage ...
Get Your GeekOn With Ron - Session Two: Local Storage vs Centralized Storage ...Unidesk Corporation
 
Xen Virtualization 2008
Xen Virtualization 2008Xen Virtualization 2008
Xen Virtualization 2008mwlang88
 
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...VMworld
 
Spinning Brown Donuts: Why Storage Still Counts
Spinning Brown Donuts: Why Storage Still CountsSpinning Brown Donuts: Why Storage Still Counts
Spinning Brown Donuts: Why Storage Still CountsSparkhound Inc.
 
Webinar: Overcoming the Storage Challenges Cassandra and Couchbase Create
Webinar: Overcoming the Storage Challenges Cassandra and Couchbase CreateWebinar: Overcoming the Storage Challenges Cassandra and Couchbase Create
Webinar: Overcoming the Storage Challenges Cassandra and Couchbase CreateStorage Switzerland
 
Cassandra and Solid State Drives
Cassandra and Solid State DrivesCassandra and Solid State Drives
Cassandra and Solid State DrivesRick Branson
 
Linux and H/W optimizations for MySQL
Linux and H/W optimizations for MySQLLinux and H/W optimizations for MySQL
Linux and H/W optimizations for MySQLYoshinori Matsunobu
 
Varrow datacenter storage today and tomorrow
Varrow   datacenter storage today and tomorrowVarrow   datacenter storage today and tomorrow
Varrow datacenter storage today and tomorrowpittmantony
 
Vm13 vnx mixed workloads
Vm13 vnx mixed workloadsVm13 vnx mixed workloads
Vm13 vnx mixed workloadspittmantony
 
Making the most of ssd in oracle11g
Making the most of ssd in oracle11gMaking the most of ssd in oracle11g
Making the most of ssd in oracle11gGuy Harrison
 

Tendances (19)

Cassandra Day SV 2014: Designing Commodity Storage in Apache Cassandra
Cassandra Day SV 2014: Designing Commodity Storage in Apache CassandraCassandra Day SV 2014: Designing Commodity Storage in Apache Cassandra
Cassandra Day SV 2014: Designing Commodity Storage in Apache Cassandra
 
Deploying ssd in the data center 2014
Deploying ssd in the data center 2014Deploying ssd in the data center 2014
Deploying ssd in the data center 2014
 
Optimize Your Hardware for Drupal
Optimize Your Hardware for DrupalOptimize Your Hardware for Drupal
Optimize Your Hardware for Drupal
 
Storage and performance, Whiptail
Storage and performance, Whiptail Storage and performance, Whiptail
Storage and performance, Whiptail
 
Varrow madness 2013 virtualizing sql presentation
Varrow madness 2013 virtualizing sql presentationVarrow madness 2013 virtualizing sql presentation
Varrow madness 2013 virtualizing sql presentation
 
IMCSummit 2016 Keynote - Benzi Galili - More Memory for In-Memory Easy
IMCSummit 2016 Keynote - Benzi Galili - More Memory for In-Memory EasyIMCSummit 2016 Keynote - Benzi Galili - More Memory for In-Memory Easy
IMCSummit 2016 Keynote - Benzi Galili - More Memory for In-Memory Easy
 
TDS-16489U - Dual Processor
TDS-16489U - Dual ProcessorTDS-16489U - Dual Processor
TDS-16489U - Dual Processor
 
Firebird and RAID
Firebird and RAIDFirebird and RAID
Firebird and RAID
 
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash TechnologyCeph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
Ceph Day San Jose - Red Hat Storage Acceleration Utlizing Flash Technology
 
Get Your GeekOn With Ron - Session Two: Local Storage vs Centralized Storage ...
Get Your GeekOn With Ron - Session Two: Local Storage vs Centralized Storage ...Get Your GeekOn With Ron - Session Two: Local Storage vs Centralized Storage ...
Get Your GeekOn With Ron - Session Two: Local Storage vs Centralized Storage ...
 
Xen Virtualization 2008
Xen Virtualization 2008Xen Virtualization 2008
Xen Virtualization 2008
 
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
VMworld 2013: Just Because You Could, Doesn't Mean You Should: Lessons Learne...
 
Spinning Brown Donuts: Why Storage Still Counts
Spinning Brown Donuts: Why Storage Still CountsSpinning Brown Donuts: Why Storage Still Counts
Spinning Brown Donuts: Why Storage Still Counts
 
Webinar: Overcoming the Storage Challenges Cassandra and Couchbase Create
Webinar: Overcoming the Storage Challenges Cassandra and Couchbase CreateWebinar: Overcoming the Storage Challenges Cassandra and Couchbase Create
Webinar: Overcoming the Storage Challenges Cassandra and Couchbase Create
 
Cassandra and Solid State Drives
Cassandra and Solid State DrivesCassandra and Solid State Drives
Cassandra and Solid State Drives
 
Linux and H/W optimizations for MySQL
Linux and H/W optimizations for MySQLLinux and H/W optimizations for MySQL
Linux and H/W optimizations for MySQL
 
Varrow datacenter storage today and tomorrow
Varrow   datacenter storage today and tomorrowVarrow   datacenter storage today and tomorrow
Varrow datacenter storage today and tomorrow
 
Vm13 vnx mixed workloads
Vm13 vnx mixed workloadsVm13 vnx mixed workloads
Vm13 vnx mixed workloads
 
Making the most of ssd in oracle11g
Making the most of ssd in oracle11gMaking the most of ssd in oracle11g
Making the most of ssd in oracle11g
 

Similaire à San presentation nov 2012 central pa

Storage, San And Business Continuity Overview
Storage, San And Business Continuity OverviewStorage, San And Business Continuity Overview
Storage, San And Business Continuity OverviewAlan McSweeney
 
Demystifying Storage
Demystifying  StorageDemystifying  Storage
Demystifying Storagebhavintu79
 
2015 deploying flash in the data center
2015 deploying flash in the data center2015 deploying flash in the data center
2015 deploying flash in the data centerHoward Marks
 
2015 deploying flash in the data center
2015 deploying flash in the data center2015 deploying flash in the data center
2015 deploying flash in the data centerHoward Marks
 
Need for Speed: Using Flash Storage to Optimise Performance and Reduce Costs
Need for Speed: Using Flash Storage to Optimise Performance and Reduce CostsNeed for Speed: Using Flash Storage to Optimise Performance and Reduce Costs
Need for Speed: Using Flash Storage to Optimise Performance and Reduce CostsNetApp
 
Need For Speed- Using Flash Storage to optimise performance and reduce costs-...
Need For Speed- Using Flash Storage to optimise performance and reduce costs-...Need For Speed- Using Flash Storage to optimise performance and reduce costs-...
Need For Speed- Using Flash Storage to optimise performance and reduce costs-...NetAppUK
 
Top Technology Trends
Top Technology Trends Top Technology Trends
Top Technology Trends InnoTech
 
VMware VSAN Technical Deep Dive - March 2014
VMware VSAN Technical Deep Dive - March 2014VMware VSAN Technical Deep Dive - March 2014
VMware VSAN Technical Deep Dive - March 2014David Davis
 
Fulcrum Group Storage And Storage Virtualization Presentation
Fulcrum Group Storage And Storage Virtualization PresentationFulcrum Group Storage And Storage Virtualization Presentation
Fulcrum Group Storage And Storage Virtualization PresentationSteve Meek
 
MySQL on AWS RDS
MySQL on AWS RDSMySQL on AWS RDS
MySQL on AWS RDSMydbops
 
SSD vs SAS vs SATA which is better for a dedicated server
SSD vs SAS vs SATA which is better for a dedicated serverSSD vs SAS vs SATA which is better for a dedicated server
SSD vs SAS vs SATA which is better for a dedicated serverCasperLAWRENCE
 
SAS vs SATA_ The Key Differences That You Should Know.pptx
SAS vs SATA_ The Key Differences That You Should Know.pptxSAS vs SATA_ The Key Differences That You Should Know.pptx
SAS vs SATA_ The Key Differences That You Should Know.pptxcalltutors
 
5 Things You Need to Know About Enterprise Fl
 5 Things You Need to Know About Enterprise Fl 5 Things You Need to Know About Enterprise Fl
5 Things You Need to Know About Enterprise FlWestern Digital
 
Database performance tuning for SSD based storage
Database  performance tuning for SSD based storageDatabase  performance tuning for SSD based storage
Database performance tuning for SSD based storageAngelo Rajadurai
 
Running Apache Spark on a High-Performance Cluster Using RDMA and NVMe Flash ...
Running Apache Spark on a High-Performance Cluster Using RDMA and NVMe Flash ...Running Apache Spark on a High-Performance Cluster Using RDMA and NVMe Flash ...
Running Apache Spark on a High-Performance Cluster Using RDMA and NVMe Flash ...Databricks
 
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...Виталий Стародубцев
 
The care and feeding of a MySQL database
The care and feeding of a MySQL databaseThe care and feeding of a MySQL database
The care and feeding of a MySQL databaseDave Stokes
 
SSD based storage tuning for databases
SSD based storage tuning for databasesSSD based storage tuning for databases
SSD based storage tuning for databasesAngelo Rajadurai
 
It's the End of Data Storage As We Know It (And I Feel Fine)
It's the End of Data Storage As We Know It (And I Feel Fine)It's the End of Data Storage As We Know It (And I Feel Fine)
It's the End of Data Storage As We Know It (And I Feel Fine)Stephen Foskett
 

Similaire à San presentation nov 2012 central pa (20)

Storage, San And Business Continuity Overview
Storage, San And Business Continuity OverviewStorage, San And Business Continuity Overview
Storage, San And Business Continuity Overview
 
Demystifying Storage
Demystifying  StorageDemystifying  Storage
Demystifying Storage
 
2015 deploying flash in the data center
2015 deploying flash in the data center2015 deploying flash in the data center
2015 deploying flash in the data center
 
2015 deploying flash in the data center
2015 deploying flash in the data center2015 deploying flash in the data center
2015 deploying flash in the data center
 
Need for Speed: Using Flash Storage to Optimise Performance and Reduce Costs
Need for Speed: Using Flash Storage to Optimise Performance and Reduce CostsNeed for Speed: Using Flash Storage to Optimise Performance and Reduce Costs
Need for Speed: Using Flash Storage to Optimise Performance and Reduce Costs
 
Need For Speed- Using Flash Storage to optimise performance and reduce costs-...
Need For Speed- Using Flash Storage to optimise performance and reduce costs-...Need For Speed- Using Flash Storage to optimise performance and reduce costs-...
Need For Speed- Using Flash Storage to optimise performance and reduce costs-...
 
IO Dubi Lebel
IO Dubi LebelIO Dubi Lebel
IO Dubi Lebel
 
Top Technology Trends
Top Technology Trends Top Technology Trends
Top Technology Trends
 
VMware VSAN Technical Deep Dive - March 2014
VMware VSAN Technical Deep Dive - March 2014VMware VSAN Technical Deep Dive - March 2014
VMware VSAN Technical Deep Dive - March 2014
 
Fulcrum Group Storage And Storage Virtualization Presentation
Fulcrum Group Storage And Storage Virtualization PresentationFulcrum Group Storage And Storage Virtualization Presentation
Fulcrum Group Storage And Storage Virtualization Presentation
 
MySQL on AWS RDS
MySQL on AWS RDSMySQL on AWS RDS
MySQL on AWS RDS
 
SSD vs SAS vs SATA which is better for a dedicated server
SSD vs SAS vs SATA which is better for a dedicated serverSSD vs SAS vs SATA which is better for a dedicated server
SSD vs SAS vs SATA which is better for a dedicated server
 
SAS vs SATA_ The Key Differences That You Should Know.pptx
SAS vs SATA_ The Key Differences That You Should Know.pptxSAS vs SATA_ The Key Differences That You Should Know.pptx
SAS vs SATA_ The Key Differences That You Should Know.pptx
 
5 Things You Need to Know About Enterprise Fl
 5 Things You Need to Know About Enterprise Fl 5 Things You Need to Know About Enterprise Fl
5 Things You Need to Know About Enterprise Fl
 
Database performance tuning for SSD based storage
Database  performance tuning for SSD based storageDatabase  performance tuning for SSD based storage
Database performance tuning for SSD based storage
 
Running Apache Spark on a High-Performance Cluster Using RDMA and NVMe Flash ...
Running Apache Spark on a High-Performance Cluster Using RDMA and NVMe Flash ...Running Apache Spark on a High-Performance Cluster Using RDMA and NVMe Flash ...
Running Apache Spark on a High-Performance Cluster Using RDMA and NVMe Flash ...
 
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...
Технологии работы с дисковыми хранилищами и файловыми системами Windows Serve...
 
The care and feeding of a MySQL database
The care and feeding of a MySQL databaseThe care and feeding of a MySQL database
The care and feeding of a MySQL database
 
SSD based storage tuning for databases
SSD based storage tuning for databasesSSD based storage tuning for databases
SSD based storage tuning for databases
 
It's the End of Data Storage As We Know It (And I Feel Fine)
It's the End of Data Storage As We Know It (And I Feel Fine)It's the End of Data Storage As We Know It (And I Feel Fine)
It's the End of Data Storage As We Know It (And I Feel Fine)
 

Plus de Joseph D'Antoni

The modern analytics architecture
The modern analytics architectureThe modern analytics architecture
The modern analytics architectureJoseph D'Antoni
 
Building perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsBuilding perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsJoseph D'Antoni
 
Pass 2013 dantoni azure a gs
Pass 2013 dantoni azure a gsPass 2013 dantoni azure a gs
Pass 2013 dantoni azure a gsJoseph D'Antoni
 
Accelerating Database Performance Using Compression
Accelerating Database Performance Using CompressionAccelerating Database Performance Using Compression
Accelerating Database Performance Using CompressionJoseph D'Antoni
 
Sql server 2012 ha and dr sql saturday boston
Sql server 2012 ha and dr sql saturday bostonSql server 2012 ha and dr sql saturday boston
Sql server 2012 ha and dr sql saturday bostonJoseph D'Antoni
 
Accelerating Database Performance with Compression
Accelerating Database Performance with CompressionAccelerating Database Performance with Compression
Accelerating Database Performance with CompressionJoseph D'Antoni
 
Sql Server 2012 HA and DR -- SQL Saturday Richmond
Sql Server 2012 HA and DR -- SQL Saturday RichmondSql Server 2012 HA and DR -- SQL Saturday Richmond
Sql Server 2012 HA and DR -- SQL Saturday RichmondJoseph D'Antoni
 
Sql server 2012 ha and dr sql saturday tampa
Sql server 2012 ha and dr sql saturday tampaSql server 2012 ha and dr sql saturday tampa
Sql server 2012 ha and dr sql saturday tampaJoseph D'Antoni
 
Windows server 2012 failover clustering new features
Windows server 2012 failover clustering new featuresWindows server 2012 failover clustering new features
Windows server 2012 failover clustering new featuresJoseph D'Antoni
 
Sql server 2012 ha and dr sql saturday dc
Sql server 2012 ha and dr sql saturday dcSql server 2012 ha and dr sql saturday dc
Sql server 2012 ha and dr sql saturday dcJoseph D'Antoni
 
Always on availability groups way too deep
Always on availability groups way too deepAlways on availability groups way too deep
Always on availability groups way too deepJoseph D'Antoni
 
South jersey sql virtualization
South jersey sql virtualizationSouth jersey sql virtualization
South jersey sql virtualizationJoseph D'Antoni
 
Sql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalSql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalJoseph D'Antoni
 
Sql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalSql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalJoseph D'Antoni
 
Sql server 2012 ha dr nova
Sql server 2012 ha dr novaSql server 2012 ha dr nova
Sql server 2012 ha dr novaJoseph D'Antoni
 

Plus de Joseph D'Antoni (20)

DBA Fundamentals VC
DBA Fundamentals VCDBA Fundamentals VC
DBA Fundamentals VC
 
The modern analytics architecture
The modern analytics architectureThe modern analytics architecture
The modern analytics architecture
 
Building perfect sql servers, every time -oops
Building perfect sql servers, every time -oopsBuilding perfect sql servers, every time -oops
Building perfect sql servers, every time -oops
 
Pass 2013 dantoni azure a gs
Pass 2013 dantoni azure a gsPass 2013 dantoni azure a gs
Pass 2013 dantoni azure a gs
 
Accelerating Database Performance Using Compression
Accelerating Database Performance Using CompressionAccelerating Database Performance Using Compression
Accelerating Database Performance Using Compression
 
Pass bac jd_sm
Pass bac jd_smPass bac jd_sm
Pass bac jd_sm
 
Sql server 2012 ha and dr sql saturday boston
Sql server 2012 ha and dr sql saturday bostonSql server 2012 ha and dr sql saturday boston
Sql server 2012 ha and dr sql saturday boston
 
Accelerating Database Performance with Compression
Accelerating Database Performance with CompressionAccelerating Database Performance with Compression
Accelerating Database Performance with Compression
 
Sql Server 2012 HA and DR -- SQL Saturday Richmond
Sql Server 2012 HA and DR -- SQL Saturday RichmondSql Server 2012 HA and DR -- SQL Saturday Richmond
Sql Server 2012 HA and DR -- SQL Saturday Richmond
 
Sql server 2012 ha and dr sql saturday tampa
Sql server 2012 ha and dr sql saturday tampaSql server 2012 ha and dr sql saturday tampa
Sql server 2012 ha and dr sql saturday tampa
 
Windows server 2012 failover clustering new features
Windows server 2012 failover clustering new featuresWindows server 2012 failover clustering new features
Windows server 2012 failover clustering new features
 
Sql server 2012 ha and dr sql saturday dc
Sql server 2012 ha and dr sql saturday dcSql server 2012 ha and dr sql saturday dc
Sql server 2012 ha and dr sql saturday dc
 
Always on availability groups way too deep
Always on availability groups way too deepAlways on availability groups way too deep
Always on availability groups way too deep
 
South jersey sql virtualization
South jersey sql virtualizationSouth jersey sql virtualization
South jersey sql virtualization
 
Virtualization for DBA
Virtualization for DBAVirtualization for DBA
Virtualization for DBA
 
Sql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalSql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_final
 
Sql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_finalSql server 2012 ha dr 24_hop_final
Sql server 2012 ha dr 24_hop_final
 
Sql server 2012 ha dr nova
Sql server 2012 ha dr novaSql server 2012 ha dr nova
Sql server 2012 ha dr nova
 
Sql server 2012 ha dr
Sql server 2012 ha drSql server 2012 ha dr
Sql server 2012 ha dr
 
Sql saturday dc vm ware
Sql saturday dc vm wareSql saturday dc vm ware
Sql saturday dc vm ware
 

San presentation nov 2012 central pa

  • 1. SAN Basics for DBAs Joey D’Antoni Central Pennsylvania User Group November 13, 2012 www.facebook.com/prpass
  • 2. About Me  Principal Architect SQL Server at Comcast Cable  Blog: joedantoni.wordpress.com  Twitter: @jdanton  Email: jdanton1@yahoo.com
  • 3. Storage  Understanding Storage Types  SSDs  RAID Levels  Components of a SAN  SAN Benefits  SANs and DR  Summary
  • 7. Caching  Almost all hard drives (SAN, Direct Attached) have some form of caching (RAM in front of storage)  For SQL Servers—make sure you have a battery backed cache—if you don’t and power fails—you will lose data!
  • 8. Disk Drives  Hard Drives can only spin at 15,000 RPM.  Hard Drive Performance has improved approximately 50x  Have grown in capacity  During the performance improvement CPU speed increase 5521x
  • 9. Why is storage the bottleneck?
  • 11. Latency  ―Disk latency is around 13ms, but it depends on the quality and rotational speed of the hard drive. RAM latency is around 83 nanoseconds. How big is the difference? If RAM was an F-18 Hornet with a max speed of 1,190 mph (more than 1.5x the speed of sound), disk access speed is a banana slug with a top speed of 0.007 mph.‖ --credit Christian Paredes Blue Box Group
  • 12. SSDs (Solid State Drives)
  • 13. SSDs are Fast  Much faster on random reads and writes  At least 5x better performance, often much more  Up to 350x faster on seeks  Not nearly as much of difference on sequential reads and writes
  • 14. SSDs are Expensive  List Prices From Fusion-IO 160GB SLC ioDrive - $8495 320GB SLC ioDrive - $15495 320GB MLC ioDrive - $7495 640GB MLC ioDrive - $11495 320GB SLC ioDrive Duo – 16,990 640GB SLC ioDrive Duo - $30,990 640GB MLC ioDrive Duo - $14,990 1.28TB MLC ioDrive Duo - $22,990  These are really great for TempDB
  • 15. SANs and SSDs  More to come later!
  • 16. RAID  RAID—Redundant Array of Independent Disks  Hard Drives Will Fail, RAID is what gives you protection from that
  • 18. RAID 0, Don’t Do This  From a major virtualization vendor benchmark
  • 19. RAID 0  No data protection at all  Best performance  If you lose one disk, you lose it all  As you add disks risk increases
  • 20. RAID 1--Mirroring  Mirroring  No increase in write performance  Read performance is increased  50% Capacity Loss
  • 21. RAID 5—Striping (What you SAN Admin Wants)  Maximum Capacity  Big Write Penalty— gets worse as more disks are added  Not good for highly transaction databases  *Caveat
  • 22. RAID 1+0 (10) Mirrored Striping  Best performance  Requires 4 or more drives  Only 50% of actual capacity is used
  • 23. Summary of RAID Levels  Ask for RAID 10 for Everything (you won’t get it)  Make sure your TempDB and Logs are on RAID 10  NEVER USE RAID 0!!!
  • 25. What is a SAN?  Basically a specialized computer for storage  Computer, Switches and Hard Drives  Not a performance device  Can be used for redundancy and DR purposes  Will serve many servers—so critical piece of your infrastructure
  • 26. SAN Components  HBA (Fibre) Card—Connects your server to SAN via Fiber Optic cable  iSCSI Card—Ethernet Card connecting server to SAN  Switch—Either fibre or ethernet switch connecting server to SAN  SAN head unit—Controls processing, RAID levels  Disk Array—The physical array behind your SAN (a bunch of hard drives)
  • 27. SAN Terms  LUN—Logical Unit Number, but in practical terms, what your SAN admin will call a disk that he presents to your server  Fibre Channel—Cable connection to SAN  IOPs—I/O Operations Per Second—the way your SAN admin measures performance
  • 28. iSCSI vs Fibre Channel  iSCSI is cheaper, and in smaller shops your network admin can manage the switches  Over 10G Ethernet iSCSI is faster, unless…  16 GB FC is still uncommond  Fiber is more susceptible to breakage, but currently more common  Note—all SAN components must be the same speed, or network traffic reverts to slowest in chain
  • 29. Multi-Pathing  How your SAN admin sleeps at night!  Make sure your databases servers are multi-pathed
  • 30. SAN Throughput Max Mb/S 10 GB iSCSI 8 GB FC Max Mb/S 4 GB FC 1 GB iSCSI 0 200 400 600 800 1000 1200 1400
  • 31. What are the Benefits of a SAN  Expand Capacity easily and on the fly  High availability  Disaster Recovery
  • 32. SANs and SQL Server—What to ask for  TempDB absolutely needs its own disk (and you should have multiple TempDB files)  Logs should be on a separate disk from data files  Ideally separate system and user DBs  If shared instance, put split high utilization DBs onto separate disk devices
  • 33. SANs and DR—Block  WARNING!—Don’t try this unless you have a real budget and a good SAN admin  Most SANs vendors have as an option SAN replication  Allows for multi-site failover  Multi-site clustering fully supported in SQL Server 2012  Expensive—requires fiber connection between sites and expensive software
  • 35. Shared Environment vs Dedicated Environment
  • 36. SANs are Multi-Tenant  You don’t want to share disks with the Exchange server  File servers are a decent partner for database servers  But….
  • 37. If you have are on a new SAN  Most of the previous slides, don’t matter  This technology on applies to really high end, enterprise-class storage arrays  IBM, EMC, Hitachi
  • 38. EMC VMax Fast DP  Allows for dynamic moves of disk from faster to slower disks (Fibre channel to SATA), or slower to faster (FC to SSD)  Totally dynamic, and seamless to servers  Moves data in 768k extents  Your SAN admin doesn’t know where your data is
  • 39. FAST VP Data SSD SSD SSD 15K Fibre Channel 15k Fibre Channel 15k Fibre Channel Log 10K SATA 10K SATA 10K SATA
  • 40. What does this mean for the DBA?  Overall—don’t worry too much about—the technology is solid  Make sure your transaction logs are in a group that can not go to SSD.  A lot of what we did in the past, changes with this technology
  • 41. Test Your SAN  Good free tools available like SQLIO  Never run this on a production server (and warn your SAN admin)
  • 42. Summary  RAID 0 is bad  Hard Drives will always be the bottleneck  Be nice to your SAN admin—ask for RAID 10  Split your SQL files across many disks  SSDs are fast, but pricey
  • 44. Platinum Sponsors: Gold Sponsors: Silver Sponsors: Bronze Sponsors: Swag Sponsors:
  • 45. Contact Info  Twitter: @jdanton  Email: jdanton1@yahoo.com  Blog (slides): joedantoni.wordpress.com