SAN, NAS and IP Storage: How to get your bits off disks to your servers.

23
SAN, NAS and IP Storage: How to get your bits off disks to your servers.

description

SAN, NAS and IP Storage: How to get your bits off disks to your servers. Who Am I?. SQL Server MVP Idera ACE Dell DBA Architect Austin UG Leader Fun Guy Have I ever told you about the time… @ SQLServerIO www.sqlserverio.com. 2 |. What we are going to learn. - PowerPoint PPT Presentation

Transcript of SAN, NAS and IP Storage: How to get your bits off disks to your servers.

Page 1: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

SAN, NAS and IP Storage: How to get your bits off disks to your servers.

Page 2: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

Who Am I?

Benchmarking, Baselines and Monitoring Storage

04/22/2023

2 |

• SQL Server MVP• Idera ACE• Dell DBA Architect• Austin UG Leader• Fun Guy

• Have I ever told you about the time…• @SQLServerIO• www.sqlserverio.com

Page 3: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

What we are going to learn

What makes up a Storage Area NetworkWhy SAN’s are needed

Network Attached Storage, sharing filesSMB, Filers

IP Storage, blurring the linesiSCSI

Fibre Channel over Ethernet, ATA over Ethernet

Pitfalls

General Configuration Advice

Page 4: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

In The Beginning…

Islands of disksDisjointed

Over utilization

Under utilization

UnreliableDifficult to make highly available

Limited disaster recovery options

Hard to manage

Page 5: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

A Network By Any Other Name

Page 6: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

Network Behind Your Servers

SAN makeupDedicated Network

Switches, routers, directors oh my!

Consolidation

Utilization

Server-less backups

Speed *

SAN != Fibre Channel

FC copper

Infiniband

Page 7: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

More Than Disks

Tape SystemsDrives

Autoloaders

Libraries

Chameleon storageExpose as NAS

Expose as iSCSI

Page 8: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

More Than Hardware

Storage ProcessorsDedicated

Redundant

SoftwareDisk management

JBOD

RAID

Replication

Block level

LAN/WAN

Page 9: SAN, NAS and IP Storage: How to get your bits off disks to your servers.
Page 10: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

Serving Files Network Style

Commodity ServersX86/X64

Dense

Standard NetworkingTCP/IP Stack

Ease Of Implementation Lower Management Overhead

Page 11: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

Server Message Block

Meant to live on top of TCP/IPBuild initially by IBM

Offer abstractionFile shares

Printers

IPC

Not supported for SQL Server prior to 2008 R2

Page 12: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

The Similar But Different

RedundantBoth use RAID

May be twists on a theme

Both have replication

Block Vs. File

Both use a “network”

One built specifically

One uses protocol layers on IP

!Danger!Not completely safe for SQL Server *

Page 13: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

SAN Behind, NAS In Front

Page 14: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

iSCSI, Building Bridges

Built on TCP/IPBundles SCSI commands

Common network infrastructure

!= SAN

Block level storage abstractionDirect attached storage

stand alone server acts as storage head

Network attached storage

NAS can still serve SMB/NFS

Storage Area Network

iSCSI being built into bridge heads or directly into storage head

Support for MPIO and other SAN features

Page 15: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

FCoE, AoE != iSCSI

Fibre Chanel over EthernetEarly winner as far as latency

Basically replacing the “Fiber” part with “Ethernet”

ATA over EthernetCurrently a player.

Not as heavy on requirements as FCoE

iSCSI, SCSI over EthernetSpeed is pretty good

Doesn’t require specialized hardware

Page 16: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

SAN Pitfalls

High utilizationServers outside your control effect your performance

Poor ConfigurationStriping data “wide and thin”

Over subscribing single disks “hot spots”

Fabric misconfiguration

SAN replication over large distance

Expensive to scaleSAN disk can be 10x DAS/NAS

Multiple FC HBA’s needed for high throughput

Dedicated network infrastructure

Page 17: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

NAS Pitfalls

Meant to serve filesGenerally, block level storage

Higher latency than SAN/DAS

May not honor “no cache” flagsPuts data at risk

Limited disk configurationsAlmost always “wide and thin”

VLAN != separate networkOften share traffic with other apps

QoS doesn’t fix this

Page 18: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

iSCSI Pitfalls

Hides back end storageAre you on a fibre SAN or NAS?

NAS vendors offering iSCSI calling it SAN

Easy to setup, hard to get it rightShould have dedicated network

Should have ToE or initiator HBA’s

Back end may not honor “no cache” flagsPuts data at risk

Page 19: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

SAN General Configuration

Always ask for IO’s not gigabytesSpace is cheap

SQL Server eats IO

Dedicated drivesRequest LUN’s dedicated to data files

Request LUN’s dedicated to log files

Request LUN’s dedicated to tempdb

Multiple FC portsSeparate IO traffic

Provide redundancy

Page 20: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

Network Attached Storage

Verify back end storageIs it a DAS or SAN?

Request drive pool separationPool data together

Separate logs from data

Request multiple NIC portsProvides load balancing

Provides redundancy

Separate IO workloads

Configure for jumbo frames

Separate client requests

Page 21: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

iSCSI General Configuration

Separate networkVLAN isn’t separate

Reduce routing

Configure for jumbo frames

Require ToE/Initiator HBA’sReduces server load

Can speed up IO

Request 10 gigabit MUCH larger pipe 125MB/sec Vs. 1250MB/sec

Request multiple portsMPIO

Separate IO workloads

Page 22: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

Monitoring IO Health

Very few vendor neutral tools

Response Time = Service Time + Wait Time

Disk Queue LengthCaches mask DQ

Focus on latency and waits

sys.dm_io_virtual_file_stats

Gives you time to read and write IO’s

Gives you amount of data written and read at the file level

Great for finding SAN hot spots

http://sqlserverio.com/2011/02/08/gather-virtual-file-statistics-using-t-sql-tsql2sday-15/

sys.dm_os_wait_stats

Gives you what SQL Server is doing besides IO

Only at a instance level

Page 23: SAN, NAS and IP Storage: How to get your bits off disks to your servers.

Questions?

Email: [email protected]

Twitter: @SQLServerIO

Blog: http://www.sqlserverio.com