Professional Documents
Culture Documents
Farley San School Book
Farley San School Book
GETTING STARTED:
SAN SCHOOL 101
Marc Farley
President of Building Storage, Inc
Author, Building Storage Networks, Inc.
Agenda
Lesson 1: Basics of SANs
Lesson 2: The I/O path
Lesson 3: Storage subsystems
Lesson 4: RAID, volume management
and virtualization
Lesson 5: SAN network technology
Lesson 6: File systems
Lesson #1
Connecting
Concentrator
Dish
Router
HBA or
NIC
Network Switch/hub
Bridge
Computer
System
VPN
Connecting
Networking or bus technology
Cables + connectors
System adapters + network device drivers
Network devices such as hubs, switches, routers
Virtual networking
Flow control
Network security
Storing
Host
Software
Storage
Protocol
Storage
Devices
Volume
Manager
Software
Storage
Device
Drivers
Mirroring
Software
Tape
Drives
Disk
Drives
RAID
Subsystem
Storing
Device (target) command and control
Drives, subsystems, device emulation
Filing
C:\directory\file
Database
Object
User/Application View
User/Application View
Filing
Namespace presents data to end users and
applications as files and directories (folders)
Manages use of storage address spaces
Metadata for identifying data
file name
owner
dates
Filing
Storing
Wiring
Connecting
HBA or
NIC
Cable
Cable
Network Switch/hub
Storing function in
an HBA driver
Computer System
Disk Drive
NAS
SAN
Network
Filing
Storing
Wiring
Connecting
NAS Head
Server
NAS
+
Server
SAN Initiator
System
NAS
Head
SAN
SAN
Target
Storage
Filing
Filing
Storing
Storing
Wiring
Connecting
Wiring
Connecting
NAS Head
Server
NAS
Head
System
Filing
Filing
SAN
Storage
Target
Storing
Storing
Wiring
Connecting
Lesson #2
Memory
Processor
Memory
Bus
System
I/O Bus
Storage
Adapter
(HBA)
Application
Operating Filing Cache Volume
System System Manager Manager
MultiPathing
Device
Driver
Cabling
Fiber optic
Copper
Access and
Security
Fabric
Services
Routing
Flow
Control
Virtual
Networking
Network
Ports
Access and
Security
Cache
Resource
Manager
Internal Bus
or Network
Disk drives
Tape drives
Tape Media
App
Memory
Processor Operating
System
Cabling
Network Systems
Subsystem
Network Poirt
Access and
Security
Access
and Security
Cache
Fabric
Services
Resource
Manager
Memory System
I/O Bus
Bus
Routing
Internal Bus
or Network
Flow
Control
Disk
drives
Device Storage
Driver Adapter
(HBA)
Virtual
Networking
Tape
drives
Lesson #3
Storage subsystems
Resource manager
Cache Memory
Internal Bus
or Network
Storage
Resources
Power
Exported
storage
Exported
storage
Exported
storage
Exported
storage
Exported
storage
Exported
storage
Exported
storage
Subsystem Controller
Resource Manager
(RAID, mirroring,
etc.)
Physical
storage
device
Physical
storage
device
Physical
storage
device
Physical
storage
device
Hot
Spare
Device
Provisioning storage
LUN 0
SCSI LU
UUID A
LUN 1
Port S1
LUN 1
Port S2
Port S3
SCSI LU
UUID B
LUN 2
LUN 2
LUN 3
SCSI LU
UUID C
LUN 3
Port S4
LUN 0
Physical
storage
devices
SCSI LU
UUID D
Controller functions
Physical
storage
devices
Physical
storage
devices
Multipathing
LUN X
Path 1
SCSI LU
UUID A
MP SW
LUN X
Path 2
Caching
Exported
Volume
Exported
Volume
Exported
Volume
Exported
Volume
Read Caches
Write Caches
1. Recently Used
2. Read Ahead
Tape subsystems
Tape
Drive
Tape
Drive
Tape
Drive
Tape Slots
Robot
Tape
Drive
Subsystem management
Now
Now
with
with
SMIS
SMIS
Management station
browser-based
network mgmt software
Ethernet/TCP/IP
Out-of-band management port
In-band
management
Storage Subsystem
Exported
Storage
Resource
Data redundancy
2n
Duplication
Parity
n+1
Difference
-1
d(x) = f(x) f(x-1)
f(x-1)
I/O Path
Within a subsystem
Mirroring
Operator
Terminate I/O & regenerate new I/Os
Error recovery/notification
I/O PathA
I/O PathB
Point-in-time snapshot
Subsystem Snapshot
Host
Lesson #4
2n
Duplication
Parity
n+1
Difference
-1
d(x) = f(x) f(x-1)
f(x-1)
History of RAID
Late 1980s R&D project at UC Berkeley
David Patterson
Garth Gibson
(independent)
Redundant array of inexpensive disks
Benefits of RAID
Capacity scaling
Capacity scaling
Combined extents
1 - 12
Exported
RAID
disk
volume
(1 address)
RAID
Controller
(resource
manager)
Storage
extent 1
Storage
extent 2
Storage
extent 3
Storage
extent 4
Storage
extent 5
Storage
extent 6
Storage
extent 7
Storage
extent 8
Storage Storage
extent 9 extent10
Storage
extent11
Storage
extent12
Performance
RAID controller (microsecond performance)
Disk
drive
Disk
drive
Disk
drive
Disk
drive
Disk
drive
Disk
drive
Parity redundancy
RAID arrays use XOR for calculating parity
Operand 1
False
False
True
True
Operand 2
False
True
False
True
XOR Result
False
True
True
False
XOR {M1&M2&M3&P}
Parity rebuild
XOR {M1&M2&M3&P}
RAID 0+1, 10
Hybrid RAID:
0+1
RAID Controller
DiskDisk
drivedrive
1
DiskDisk
drive
drive
2
DiskDisk
drive
drive
3
DiskDisk
drive
drive
4
Mirrored pairs of striped members
DiskDisk
drive
drive
5
OS kernel
File system
Volume management
Volume Manager
HBA drivers
HBAs
Server system
Virtual
Storage
Volume
manager
HBA drivers
SAN HBA
SCSI Bus
SAN cable
SAN disk
resources
SAN Switch
In-band virtualization
Exported virtual storage
SAN
virtualization
I/O Path
system
System(s),
switch or
router
Disk
subsystems
Out-of-band virtualization
Distributed volume
management
Virtualization
management
system
Virtualization
agents
Virtualization agents
are managed from a
central system in the
SAN
Disk
subsystems
Lesson #5
SAN networks
Fibre channel
The first major SAN networking technology
Very low latency
High reliability
Fiber optic cables
Copper cables
Extended distance
1, 2 or 4 Gb transmission speeds
Strongly typed
Fibre channel
A Fibre Channel fabric presents a consistent interface
and set of services across all switches in a network
Host and subsystems all 'see' the same resources
SAN
Storage
Target
Subsystem
SAN
Storage
Target
Subsystem
SAN
Storage
Target
Subsystem
iSCSI
Native storage I/O over TCP/IP
New industry standard
Locally over Gigabit Ethernet
Remotely over ATM, SONET, 10Gb Ethernet
iSCSI
TCP
IP
MAC
PHY
iSCSI equipment
Cables
Copper and fiber
Network systems
Switches/routers
Firewalls
FC/IP
Extending FC SANs over TCP/IP networks
FCIP gateways operate as virtual E-port connections
FCIP creates a single fabric where all resources appear
to be local
One fabric
FCIP
FCIP
Gateway
Gateway
E-port
TCP/IP
LAN, MAN
or WAN
FCIP
FCIP
Gateway
Gateway
E-port
Directors
64+ ports
HA redundancy
Dual system supervisor
Live SW upgrades
SAN topologies
Star
Simplest
single hop
Dual star
Simple network
+ redundancy
Single hop
Independent or integrated
fabric(s)
SAN topologies
N-wide star
Scalable
Single hop
Independent or
integrated fabric(s)
Core - edge
Scalable
1 3 hops
integrated fabric
SAN topologies
Ring
Scalable
integrated fabric
1 to N2 hops
Ring + Star
Scalable
integrated fabric
1 to 3 hops
Lesson #6
File systems
Filing
Filing
Storing
Storing
12
21
.
.
.
.
.
.
84
13
.
.
.
.
.
.
.
85
6 7
14 15
. .
. .
. .
. .
. .
. .
. .
86 87
16
.
.
.
.
.
.
.
88
17
26
35
44
53
62
71
80
89
18
27
36
45
54
63
72
81
90
Superblocks
are known addresses used to find
Superblocks
file system roots (and mount the file system)
SB
SB
1
7
13
19
25
31
37
Filing
Filing
Storing
Storing
Storing
Storing
1
6
11
16
21
2
7
12
17
22
2
8
14
20
26
32
38
3
8
13
18
23
3
9
15
21
27
33
39
4
9
14
19
24
4
10
16
22
28
34
40
5
10
15
20
25
5
11
17
23
29
35
41
6
12
18
24
30
36
42