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/
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
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/
0 comments
Post a comment