<h1>SAN Storage Best Practices for SQL Server</h1>
<h3>How Storage Works</h3>Before we dive into how SQL Server works with storage, you might want to learn how storage works in general. This isnât required, but having a good foundation will help as we get into the more advanced stuff.
Fundamentals of Storage Systems by Wes Brown â this monster 13-part series explains the basics of spinning disks, disk controllers, RAID, solid state drives, and more.
SQL Server 2008 Internals and Troubleshooting â I think the storage chapter in this book is absolutely outstanding, but I might be biased because I wrote that one.
<h3>How SQL Server Connects to Storage</h3>The term SAN gets misused a lot because it really means Storage Area Network â the communication pipelines between your server and a magic black box called a SAN controller. That controller is the configurable hardware that manages RAID levels, caching, and more. Here, weâre talking about how we plug your SQL Server into the network (SAN) itself, and how it gets there is called pathing.
SAN Multipathing Part 1 â What Are Paths? - I start by explaining a little history of storage and how we got to the messy black boxes we have today.
SAN Multipathing Part 2 â What Multipathing Does - Iâll give you a hint: active/active multipathing isnât as cool as you think.
Finding Your SAN Bottlenecks with SQLIO - the name SQLIO is so misleading, because this free utility from Microsoft helps you troubleshoot bad performance no matter what servers youâre using.
Tomâs Hardware Hard Drive Charts â when youâve got your storage speed test results, compare them to how fast a single hard drive goes.
<h3>How SQL Server Uses Storage</h3>The relationship between memory (cache), data files, log files, and TempDB is like your Facebook status â itâs complicated.
SQL University Part 1: The Basics of Storage - the basics of data files, log files, and cache.
SQL University Part 2: Where We Store Stuff - RAID levels, magnetic drives versus solid state, and where to put your data and log files.
SQL University Part 3: Scary Storage Scenarios - why DBCC is so important in SANs and virtualization.
Analyzing What SQL Server Caches by Jonathan Allen â this query looks at the contents of your serverâs memory and shows what database is being cached.
Analyzing What SQL Server Accesses by David Pless â this DMV query checks the read and write latency by database file.
SQL Server Setup Checklist - Now that youâve learned about the basics of SQL Server storage, itâs time to put together a SQL Server. Weâre not just going by best practices here â weâre going for real-world maintainable performance. I tell you what changes to make before & after the install, and some of these have a big payoff in storage performance. Make sure to enable Instant File Initialization, for example, and I explain how in the checklist.
<h3>Vendor-Specific SAN Best Practices for SQL Server</h3>SAN gear is notoriously difficult to configure, but thankfully, storage vendors put a lot of work into writing good documentation on how to set up their gear for SQL Server. Read this stuff, and believe me, thereâs some fantastic tips in here that can make all the difference between good performance and bad.
<h3>Hereâs the most common vendor document repositories:</h3>
Dell EqualLogic with SQL Server â mix of a marketing and tech specs whitepaper, but good data.
EMC â EMC hides some of their documentation behind a paywall. You have to prove you have current EMC maintenance before you can access their docs. Boo, EMC. Youâll need to work with your SAN guy to get access to those, but the good news is that thereâs still a lot of useful info at that link.
Hitachi â I havenât worked with these myself, but clients have found these docs helpful.
HP LeftHand Documentation for SQL Server â unfortunately, HP doesnât have the best navigation for their support docs, so this link goes straight to Google, which makes searching HPâs documentation easier.
IBM SAN Storage Redbooks for SQL Server â IBM calls their best technical documents Redbooks.
IBM XIV with SQL Server â IBMâs XIV is an unusual kind of SAN.
NetApp SQL Server Resource Guide â those are NetAppâs favorite documents. For a complete list, check out the NetApp Technical Library. For the basics, check out PDF TR-3696 on SQL Server with NetApp.