SlideShare una empresa de Scribd logo
1 de 46
SQL Server onStorage Area Networks
Brent Ozar SQL Server MVPfor Quest Software Managed SQL, VM,  80tb SAN for $7b co Published author Made lots of expensive mistakes www.BrentOzar.com @BrentO on Twitter
BrentOzar.com/go/insidetheblackbox
The Agenda Inside the SAN DBA Pros & Cons Starting From The Beginning How to Use SQLIO Multipathing
In The Beginning…
Next: External Storage
Storage Area Networks Independent Expandable Well-Protected Blazing Fast Complex Expensive
Photo Licensed with Creative Commons from http://www.flickr.com/photos/tophost/2247031208/
Photo Licensed with Creative Commons from http://www.flickr.com/photos/tophost/2246209421/
Photo Source http://www.flickr.com/photos/tophost/2246209421/
SAN Components Drive enclosures Controllers (& Cache) Switch networks Host Bus Adapters HBA Drivers Servers
Drive Allocation Methods
Good Things Clustering Table partitioning Faster builds Easier growth Caching speed PhotoSource http://www.flickr.com/photos/pcka/3240903696/
Not-So-Good Things Black box Cachingmay not help Compatibility lists More drivers Tough to grow SAN adminsmay not help Photo Source http://www.flickr.com/photos/stewf/95709873/
“How many gigs do you need?”
“We’ll keep an eye on it for ya.” Perfmon changes Neighbors change SAN changes SAN monitoring software is tough Photo Source http://www.flickr.com/photos/mrjoro/39470992/
What’s Your Bottleneck? Not Enough Drives Drives Too Slow Shared Drives RAID Level SAN Controllers Partition Alignment Drivers Multipathing
Things to Monitor Hard drives Controllers (CPU, caching) Controller connectivity to the network Network switch throughput Server connectivity to the SAN (the HBA)  Server drivers
The X Factor: Redundancy Hard drives – hundreds Controllers – 2+ Controller connectivity to network – 4+ Network – separate networks, switches Server connectivity to SAN – 2+ Network fabrics – iSCSI, Fiber, WAN
SAN Monitoring Strict HCLs, SCLs Cross-platformmeans JAVA No “full” picture Very, very, veryexpensive Photo Source: http://flickr.com/photos/earthandeden/865393933/
Unpredictable, Unexplainable
Start From The Beginning Get block sizes right Align partitions Design for pathing Test with SQLIO Install SQL Server Monitor sec/read, write Save history
Simple SAN Pathing
Simple SAN Pathing
Simple SAN Pathing
Simple SAN Pathing
SIMPLE?!?1#%&@!?
Photo Licensed with Creative Commons from http://www.flickr.com/photos/creatista/204265480/
Goals of Multipathing Protection Performance
Active/Active Can Mean
Active/Active Gotchas One path per LUN/volume Sending vs receiving Post-failover stickiness Network design
Network Bottleneck Example
Pathing Really Matters Now
Photo Licensed with Creative Commons from http://www.flickr.com/photos/thatguyfromcchs08/2300190277/
Photo Licensed with Creative Commons from http://www.flickr.com/photos/atomdocs/3127663764/ Why Can’t We Go Faster?
How to Run SQLIO sqlio -kW -t2 -s120 -dM -o1 -frandom -b64 -BH -LS Testfile.dat
Write This Down. It’s Important. sqlio -kW -t2 -s120 -dM -o1 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o2 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o4 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o8 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o16 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o32 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o64 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o128 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t4 -s120 -dM -o1 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t4 -s120 -dM -o2 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t4 -s120 -dM -o4 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t4 -s120 -dM -o8 -frandom -b64 -BH -LS Testfile.dat
We Did the Hard Work
The Output E:rogram Files (x86)QLIO>sqlio -kW -t2 -s120 -dM -o1 -frandom -b64 -BH -LS Testfile.dat sqlio v1.5.SG using system counter for latency timings, -1361967296 counts per second 2 threads writing for 120 secs to file M:Testfile.dat 	using 64KB random IOs 	enabling multiple I/Os per thread with 1 outstanding 	buffering set to use hardware disk cache (but not file cache) using current size: 24576 MB for file: M:Testfile.dat initialization done CUMULATIVE DATA: throughput metrics: IOs/sec:  1539.50 MBs/sec:    96.21 latency metrics: Min_Latency(ms): 0 Avg_Latency(ms): 0 Max_Latency(ms): 572 histogram: ms: 0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24+ %: 66 32  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
Common Bottlenecks 1 gig = ~125 MB/sec 2 gig = ~250 MB/sec 4 gig = ~500 MB/sec 10 gig = ~1250 MB/sec
Working Around It Data/logs/tempdbon different volumes Separategroups of DBs Separate DBinto filegroups TempDB, backups Photo Source http://www.flickr.com/photos/doodlemonger/2667917978/
Wrapping It Up Test before deployment Learn multipathing Design DB files around SAN limits Monitor forever Get vendor help Photo Source http://www.flickr.com/photos/doodlemonger/2667917978/
Advanced Topics Table partitioning Filegroups & files Snapshot backups Storage virtualization Storage VMotion SAN administration Photo Source http://www.flickr.com/photos/thomasthomas/504369245/
BrentOzar.com/go/insidetheblackbox

Más contenido relacionado

La actualidad más candente

Websockets in Node.js - Making them reliable and scalable
Websockets in Node.js - Making them reliable and scalableWebsockets in Node.js - Making them reliable and scalable
Websockets in Node.js - Making them reliable and scalable
Gareth Marland
 

La actualidad más candente (18)

Orchestration? You Don't Need Orchestration. What You Want Is Choreography by...
Orchestration? You Don't Need Orchestration. What You Want Is Choreography by...Orchestration? You Don't Need Orchestration. What You Want Is Choreography by...
Orchestration? You Don't Need Orchestration. What You Want Is Choreography by...
 
Scaling and Managing Selenium Grid
Scaling and Managing Selenium GridScaling and Managing Selenium Grid
Scaling and Managing Selenium Grid
 
Cloud forensics putting the bits back together
Cloud forensics putting the bits back togetherCloud forensics putting the bits back together
Cloud forensics putting the bits back together
 
Capistrano
CapistranoCapistrano
Capistrano
 
(WEB304) Running and Scaling Magento on AWS | AWS re:Invent 2014
(WEB304) Running and Scaling Magento on AWS | AWS re:Invent 2014(WEB304) Running and Scaling Magento on AWS | AWS re:Invent 2014
(WEB304) Running and Scaling Magento on AWS | AWS re:Invent 2014
 
Building Real-Time Applications with Android and WebSockets
Building Real-Time Applications with Android and WebSocketsBuilding Real-Time Applications with Android and WebSockets
Building Real-Time Applications with Android and WebSockets
 
Continuous Security
Continuous SecurityContinuous Security
Continuous Security
 
Odoo Performance Limits
Odoo Performance LimitsOdoo Performance Limits
Odoo Performance Limits
 
Wordpress y Docker, de desarrollo a produccion
Wordpress y Docker, de desarrollo a produccionWordpress y Docker, de desarrollo a produccion
Wordpress y Docker, de desarrollo a produccion
 
Nagios Conference 2014 - Troy Lea - Monitoring VMware Virtualization Using vMA
Nagios Conference 2014 - Troy Lea - Monitoring VMware Virtualization Using vMANagios Conference 2014 - Troy Lea - Monitoring VMware Virtualization Using vMA
Nagios Conference 2014 - Troy Lea - Monitoring VMware Virtualization Using vMA
 
Odoo Online platform: architecture and challenges
Odoo Online platform: architecture and challengesOdoo Online platform: architecture and challenges
Odoo Online platform: architecture and challenges
 
Ch10.애플리케이션 서버의 병목_발견_방법
Ch10.애플리케이션 서버의 병목_발견_방법Ch10.애플리케이션 서버의 병목_발견_방법
Ch10.애플리케이션 서버의 병목_발견_방법
 
Nagios Conference 2014 - Jeff Mendoza - Monitoring Microsoft Azure with Nagios
Nagios Conference 2014 - Jeff Mendoza - Monitoring Microsoft Azure with NagiosNagios Conference 2014 - Jeff Mendoza - Monitoring Microsoft Azure with Nagios
Nagios Conference 2014 - Jeff Mendoza - Monitoring Microsoft Azure with Nagios
 
Salt conf 2014 - Using SaltStack in high availability environments
Salt conf 2014 - Using SaltStack in high availability environmentsSalt conf 2014 - Using SaltStack in high availability environments
Salt conf 2014 - Using SaltStack in high availability environments
 
Websockets in Node.js - Making them reliable and scalable
Websockets in Node.js - Making them reliable and scalableWebsockets in Node.js - Making them reliable and scalable
Websockets in Node.js - Making them reliable and scalable
 
KOWAZA for mackerel
KOWAZA for mackerelKOWAZA for mackerel
KOWAZA for mackerel
 
Google App Engine with JSF 2.x
Google App Engine with JSF 2.xGoogle App Engine with JSF 2.x
Google App Engine with JSF 2.x
 
Puppet Camp Berlin 2014 Closing Keynote: Next steps for doing more awesome th...
Puppet Camp Berlin 2014 Closing Keynote: Next steps for doing more awesome th...Puppet Camp Berlin 2014 Closing Keynote: Next steps for doing more awesome th...
Puppet Camp Berlin 2014 Closing Keynote: Next steps for doing more awesome th...
 

Similar a SQL Server On SANs

download it from here
download it from heredownload it from here
download it from here
webhostingguy
 
Csdn Drdobbs Tenni Theurer Yahoo
Csdn Drdobbs Tenni Theurer YahooCsdn Drdobbs Tenni Theurer Yahoo
Csdn Drdobbs Tenni Theurer Yahoo
guestb1b95b
 
Http/2 - What's it all about?
Http/2  - What's it all about?Http/2  - What's it all about?
Http/2 - What's it all about?
Andy Davies
 
Drizzle Keynote at the MySQL User's Conference
Drizzle Keynote at the MySQL User's ConferenceDrizzle Keynote at the MySQL User's Conference
Drizzle Keynote at the MySQL User's Conference
Brian Aker
 
Framework and Application Benchmarking
Framework and Application BenchmarkingFramework and Application Benchmarking
Framework and Application Benchmarking
Paul Jones
 

Similar a SQL Server On SANs (20)

5 Steps to Faster Web Sites and HTML5 Games
5 Steps to Faster Web Sites and HTML5 Games5 Steps to Faster Web Sites and HTML5 Games
5 Steps to Faster Web Sites and HTML5 Games
 
5 steps to faster web sites & HTML5 games - updated for DDDscot
5 steps to faster web sites & HTML5 games - updated for DDDscot5 steps to faster web sites & HTML5 games - updated for DDDscot
5 steps to faster web sites & HTML5 games - updated for DDDscot
 
(WEB301) Operational Web Log Analysis | AWS re:Invent 2014
(WEB301) Operational Web Log Analysis | AWS re:Invent 2014(WEB301) Operational Web Log Analysis | AWS re:Invent 2014
(WEB301) Operational Web Log Analysis | AWS re:Invent 2014
 
Practical Performance Tips and Tricks to Make Your HTML/JavaScript Apps Faster
Practical Performance Tips and Tricks to Make Your HTML/JavaScript Apps FasterPractical Performance Tips and Tricks to Make Your HTML/JavaScript Apps Faster
Practical Performance Tips and Tricks to Make Your HTML/JavaScript Apps Faster
 
download it from here
download it from heredownload it from here
download it from here
 
gofortution
gofortutiongofortution
gofortution
 
vBACD - Introduction to Opscode Chef - 2/29
vBACD - Introduction to Opscode Chef - 2/29vBACD - Introduction to Opscode Chef - 2/29
vBACD - Introduction to Opscode Chef - 2/29
 
Chicago Docker Meetup Presentation - Mediafly
Chicago Docker Meetup Presentation - MediaflyChicago Docker Meetup Presentation - Mediafly
Chicago Docker Meetup Presentation - Mediafly
 
HTTP cache @ PUG Rome 03-29-2011
HTTP cache @ PUG Rome 03-29-2011HTTP cache @ PUG Rome 03-29-2011
HTTP cache @ PUG Rome 03-29-2011
 
Csdn Drdobbs Tenni Theurer Yahoo
Csdn Drdobbs Tenni Theurer YahooCsdn Drdobbs Tenni Theurer Yahoo
Csdn Drdobbs Tenni Theurer Yahoo
 
Http/2 - What's it all about?
Http/2  - What's it all about?Http/2  - What's it all about?
Http/2 - What's it all about?
 
Check the version with fixes. Link in description
Check the version with fixes. Link in descriptionCheck the version with fixes. Link in description
Check the version with fixes. Link in description
 
Swift: One Language To Rule Them All
Swift: One Language To Rule Them AllSwift: One Language To Rule Them All
Swift: One Language To Rule Them All
 
Azure Nights August2017
Azure Nights August2017Azure Nights August2017
Azure Nights August2017
 
The Case for HTTP/2 - Internetdagarna 2015 - Stockholm
The Case for HTTP/2  - Internetdagarna 2015 - StockholmThe Case for HTTP/2  - Internetdagarna 2015 - Stockholm
The Case for HTTP/2 - Internetdagarna 2015 - Stockholm
 
Azure + DataStax Enterprise (DSE) Powers Office365 Per User Store
Azure + DataStax Enterprise (DSE) Powers Office365 Per User StoreAzure + DataStax Enterprise (DSE) Powers Office365 Per User Store
Azure + DataStax Enterprise (DSE) Powers Office365 Per User Store
 
Champion Fas Deduplication
Champion Fas DeduplicationChampion Fas Deduplication
Champion Fas Deduplication
 
Drizzle Keynote at the MySQL User's Conference
Drizzle Keynote at the MySQL User's ConferenceDrizzle Keynote at the MySQL User's Conference
Drizzle Keynote at the MySQL User's Conference
 
IBM SAN Volume Controller Performance Analysis
IBM SAN Volume Controller Performance AnalysisIBM SAN Volume Controller Performance Analysis
IBM SAN Volume Controller Performance Analysis
 
Framework and Application Benchmarking
Framework and Application BenchmarkingFramework and Application Benchmarking
Framework and Application Benchmarking
 

Más de Quest Software

Perfmon And Profiler 101
Perfmon And Profiler 101Perfmon And Profiler 101
Perfmon And Profiler 101
Quest Software
 

Más de Quest Software (10)

Perfmon And Profiler 201
Perfmon And Profiler 201Perfmon And Profiler 201
Perfmon And Profiler 201
 
Advanced Index Tuning for SQL Server
Advanced Index Tuning for SQL ServerAdvanced Index Tuning for SQL Server
Advanced Index Tuning for SQL Server
 
Perfmon And Profiler 101
Perfmon And Profiler 101Perfmon And Profiler 101
Perfmon And Profiler 101
 
Disaster Recovery 101
Disaster Recovery 101Disaster Recovery 101
Disaster Recovery 101
 
CMDB Basics
CMDB BasicsCMDB Basics
CMDB Basics
 
How To Write A SQL Server Performance Review
How To Write A SQL Server Performance ReviewHow To Write A SQL Server Performance Review
How To Write A SQL Server Performance Review
 
Get Your Boss To Say Yes
Get Your Boss To Say YesGet Your Boss To Say Yes
Get Your Boss To Say Yes
 
Sql Server Service Broker In The Real World
Sql Server Service Broker In The Real WorldSql Server Service Broker In The Real World
Sql Server Service Broker In The Real World
 
Perfmon And Profiler 101
Perfmon And Profiler 101Perfmon And Profiler 101
Perfmon And Profiler 101
 
Advanced Index Tuning
Advanced Index TuningAdvanced Index Tuning
Advanced Index Tuning
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Último (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

SQL Server On SANs

  • 1. SQL Server onStorage Area Networks
  • 2. Brent Ozar SQL Server MVPfor Quest Software Managed SQL, VM, 80tb SAN for $7b co Published author Made lots of expensive mistakes www.BrentOzar.com @BrentO on Twitter
  • 4. The Agenda Inside the SAN DBA Pros & Cons Starting From The Beginning How to Use SQLIO Multipathing
  • 7. Storage Area Networks Independent Expandable Well-Protected Blazing Fast Complex Expensive
  • 8.
  • 9. Photo Licensed with Creative Commons from http://www.flickr.com/photos/tophost/2247031208/
  • 10. Photo Licensed with Creative Commons from http://www.flickr.com/photos/tophost/2246209421/
  • 12. SAN Components Drive enclosures Controllers (& Cache) Switch networks Host Bus Adapters HBA Drivers Servers
  • 14.
  • 15. Good Things Clustering Table partitioning Faster builds Easier growth Caching speed PhotoSource http://www.flickr.com/photos/pcka/3240903696/
  • 16. Not-So-Good Things Black box Cachingmay not help Compatibility lists More drivers Tough to grow SAN adminsmay not help Photo Source http://www.flickr.com/photos/stewf/95709873/
  • 17. “How many gigs do you need?”
  • 18. “We’ll keep an eye on it for ya.” Perfmon changes Neighbors change SAN changes SAN monitoring software is tough Photo Source http://www.flickr.com/photos/mrjoro/39470992/
  • 19. What’s Your Bottleneck? Not Enough Drives Drives Too Slow Shared Drives RAID Level SAN Controllers Partition Alignment Drivers Multipathing
  • 20. Things to Monitor Hard drives Controllers (CPU, caching) Controller connectivity to the network Network switch throughput Server connectivity to the SAN (the HBA) Server drivers
  • 21. The X Factor: Redundancy Hard drives – hundreds Controllers – 2+ Controller connectivity to network – 4+ Network – separate networks, switches Server connectivity to SAN – 2+ Network fabrics – iSCSI, Fiber, WAN
  • 22. SAN Monitoring Strict HCLs, SCLs Cross-platformmeans JAVA No “full” picture Very, very, veryexpensive Photo Source: http://flickr.com/photos/earthandeden/865393933/
  • 24. Start From The Beginning Get block sizes right Align partitions Design for pathing Test with SQLIO Install SQL Server Monitor sec/read, write Save history
  • 30. Photo Licensed with Creative Commons from http://www.flickr.com/photos/creatista/204265480/
  • 31. Goals of Multipathing Protection Performance
  • 33. Active/Active Gotchas One path per LUN/volume Sending vs receiving Post-failover stickiness Network design
  • 36. Photo Licensed with Creative Commons from http://www.flickr.com/photos/thatguyfromcchs08/2300190277/
  • 37. Photo Licensed with Creative Commons from http://www.flickr.com/photos/atomdocs/3127663764/ Why Can’t We Go Faster?
  • 38. How to Run SQLIO sqlio -kW -t2 -s120 -dM -o1 -frandom -b64 -BH -LS Testfile.dat
  • 39. Write This Down. It’s Important. sqlio -kW -t2 -s120 -dM -o1 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o2 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o4 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o8 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o16 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o32 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o64 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t2 -s120 -dM -o128 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t4 -s120 -dM -o1 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t4 -s120 -dM -o2 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t4 -s120 -dM -o4 -frandom -b64 -BH -LS Testfile.dat sqlio -kW -t4 -s120 -dM -o8 -frandom -b64 -BH -LS Testfile.dat
  • 40. We Did the Hard Work
  • 41. The Output E:rogram Files (x86)QLIO>sqlio -kW -t2 -s120 -dM -o1 -frandom -b64 -BH -LS Testfile.dat sqlio v1.5.SG using system counter for latency timings, -1361967296 counts per second 2 threads writing for 120 secs to file M:Testfile.dat using 64KB random IOs enabling multiple I/Os per thread with 1 outstanding buffering set to use hardware disk cache (but not file cache) using current size: 24576 MB for file: M:Testfile.dat initialization done CUMULATIVE DATA: throughput metrics: IOs/sec: 1539.50 MBs/sec: 96.21 latency metrics: Min_Latency(ms): 0 Avg_Latency(ms): 0 Max_Latency(ms): 572 histogram: ms: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24+ %: 66 32 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  • 42. Common Bottlenecks 1 gig = ~125 MB/sec 2 gig = ~250 MB/sec 4 gig = ~500 MB/sec 10 gig = ~1250 MB/sec
  • 43. Working Around It Data/logs/tempdbon different volumes Separategroups of DBs Separate DBinto filegroups TempDB, backups Photo Source http://www.flickr.com/photos/doodlemonger/2667917978/
  • 44. Wrapping It Up Test before deployment Learn multipathing Design DB files around SAN limits Monitor forever Get vendor help Photo Source http://www.flickr.com/photos/doodlemonger/2667917978/
  • 45. Advanced Topics Table partitioning Filegroups & files Snapshot backups Storage virtualization Storage VMotion SAN administration Photo Source http://www.flickr.com/photos/thomasthomas/504369245/