SlideShare a Scribd company logo
1 of 34
Storage 101
Taka Wang
2018.06.07
Protocol (通訊協定)
機器間訊息交換的規範
例如規定都
用
台語溝通,都
用
美式英
文
溝通等
Parallel vs Serial Interfaces
‣ SATA = Serial ATA
‣ PATA = Parallel ATA
‣ SAS = Serial Attached SCSI
‣ Serial SCSI
硬碟 (Hard disk drive)
Source Source
‣logical block 由
一
個或數個 physical sector 組成
‣為何有 block 這個抽象概念?
➡作業系統 (OS) 可以操作的地址有限,
用
戶
的概念
取代數
人
頭
SAMSUNG
SSD (solid-state drive)
Source
Controller
Cache (DDR)
NAND
NAND Die
Block
Page
Cell
一
個write IO的動作,會寫到
一
頁
或
多
頁
,不能直接操作 CELL
SSD
Source
Source
SATA3
6.0Gb/s (600MB/s)
PCIE x4 3.0
31.52Gb/s (3.94GB/s = 3940 MB/s)
Distributed Storage Interface Type
看起來像分享資料夾
很多
人
都可以共
用
同
一
個資料夾
看起來像顆硬碟
你可以格式化它
Block device不是共享的
容器有唯
一
的編號
容器可以擺任何東
西
(ex. 電影)
Distributed Storage Interface Type
Source
Source
RADOS (Reliable Autonomic Distributed Object Store)
A reliable, autonomic, distributed object store comprised of self-healing, self-managing,
intelligent storage nodes
LIBRADOS
A library allowing
apps to directly
access RADOS,
with support for C,
C++, Java, Python,
Ruby, and PHP.
RADOSGW (RGW)
(Object gateway)
A bucket-based
REST gateway,
compatible with S3
and Swift.
RBD
(Raw Block Device)
A reliable and fully-
distributed block
device, with a Linux
kernel client and a
QEMU/KVM driver
CEPH FS
(File System)
A POSIX-compilant
distributed
fi
le system
HOST/VM Client
APP
APP
ISCSI Target
HTTP NAS (NFS, CIFS)
SAN (iSCSI)
libRBD libCEPHFS
ISCSI GW
CEPH
block File
Object
Ceph on ARM
Ceph Appliance Mars 200/400
Source
https://www.youtube.com/watch?v=4rY3yrE2ysQ
xyxSCSI
‣SCSI (Small Computer Systems Interface)
‣SAS (Serial Attached SCSI)
‣iSCSI (Internet Small Computer Systems
Interface)
都叫xyzSCSI,意義大不同
SCSI vs IDE
1970+
1986
2003
• SCSI 具有應
用
範圍廣、多任務、頻寬
大
、
CPU佔
用
率低,以及熱插拔等優點
• 完全通過獨立的
高
速的SCSI卡來控制data 的
讀寫操作,CPU就不必浪費時間進
行
等待
• 透過 SCSI Command Set (protocol) 溝通
• 昂貴
Comparison IDE/ATA vs SCSI
Feature IDE/ATA SCSI
Connectivity Market Internal Storage Internal and External Storage
Speed (MB/sec) 100/133/150 320
Hot Pluggable No Yes
Expandability Easier to set up
Very good but very expensive to
set up
Cost/Performance Good High cost/Fast transfer speed
SAS (Serial Attached SCSI)
• SAS (Serial Attached SCSI)
用
來取代 Parallel SCSI (SCSI-3)
• SAS 同樣使
用
SCSI command set (protocol)
• SATA介
面
的硬碟可以插到SAS的插槽,但 SAS介
面
的硬碟不能插到 SATA 插槽
iSCSI (是一種通訊協定,ex. 台語)
•
又
稱為 IP-SAN
• 透過 TCP/IP (網路) 與 SCSI command set (通訊協定)
• Cable 就是網路線,但最好有搭配專屬的網路卡,不要跟 LAN 打架,會吃
一
些 CPU (IP header)
• 連接裝置數沒有上限 (SCSI-3 的上限是15台)
• 對主機
而
言
,看起來就像 local attached disk
• 主要競爭對
手
:光纖通道 (
fi
ber channel)
• 也是
一
種 protocol,傳遞媒介可以是光纖 (optical),也可以是銅線,也可以跑 SCSI
command,包在 FC frame 中,主流是16GFC,
目
前已經有32GFC的交換機產品。
iSCSI
iSCSI initiators
iSCSI target (software)
iSCSI LUN1
iSCSI LUN2
(logical unit number)
發起者
對象
Summary
‣ SCSI (Small Computer Systems Interface)
‣ 介
面
:各種針腳的 SCSI 頭與專
用
線
‣ 通訊協定: SCSI command set
‣ SAS (Serial Attached SCSI)
‣ 介
面
:SAS 插頭與專
用
線 (SAS 插頭 可以插 SATA 硬碟)
‣ 通訊協定: SCSI command set
‣ iSCSI (Internet Small Computer Systems Interface)
‣ 介
面
:走網路 (網路卡與網路線)
‣ 通訊協定: SCSI command set over TCP/IP
DAS vs NAS vs SAN
‣DAS (Directly Attached Storage)
‣NAS (Network Attached Storage)
‣SAN (Storage Area Network)
硬碟跟主機怎麼接才是重點
與有無 RAID 沒關係
接法
DAS (Directly Attached Storage)
可以是 SCSI 線,LAN,SAS,光纖
隨
身
碟也可以視為 DAS (雖然USB頻寬有限)
他看起來就是我的
一
部分
就像直接插在排線上
一
般
而
言
,速度最快
它跟我在同
一
個 rack上
Source
NAS (Network Attached Storage)
他看起來就是網路上某台電腦分享的
資料夾 (File)
而
不是網路上的 storage device
NSF (Network File System)
CIFS ( Common internet
fi
le system)
NAS (Network Attached Storage)
他看起來就是網路上某台電腦分享的
資料夾 (File)
而
不是網路上的 storage device
可以
用
這樣類比
區網上可以有
一
台網路印表機 (印表機有IP)
但也可以是
小
明電腦上接了
一
台印表機,然後分享出來 (印表
機本
身
沒IP,IP是
小
明區網上的電腦)
NSF (Network File System)
CIFS ( Common internet
fi
le system)
NAS 不一定要 RAID
RAID
ZFS (copy-on-write)
FreeBSD
NAS
SAN (storage area network)
Fibre channel
SAN Switch
SAN vs NAS
SAN NAS
Block level data access File level data access
Fiber channel is the primary media used
with SAN (單獨的
高
速通道). (也可以跑在網
路上,
fi
bre channel over Ethernet (FCoE),
或使
用
iSCSI protocol)
Ethernet is the primary media used use
NAS
SCSI is the main I/O protocol
NFS/CIFS is used as the main I/O protocol
in NAS
SAN storage appears to the computer as its
own storage
NAS appears as a shared folder to the
computer
It can have excellent speeds and
performance when used with
fi
ber channel
media
It can sometimes worsen the performances,
it the network is being used for other things
as well(which normally is the case)
Unified Storage
Source
Appendix
Comparison between local disks and
networked consolidated storage
Source
Storage 101 - 20180607

More Related Content

Similar to Storage 101 - 20180607

数据库与ssd的实践与探索-2011数据库技术大会
数据库与ssd的实践与探索-2011数据库技术大会数据库与ssd的实践与探索-2011数据库技术大会
数据库与ssd的实践与探索-2011数据库技术大会
freezr
 
OTN软硬件结合数据库解决方案
OTN软硬件结合数据库解决方案OTN软硬件结合数据库解决方案
OTN软硬件结合数据库解决方案
freezr
 
百度分布式数据库平台
百度分布式数据库平台百度分布式数据库平台
百度分布式数据库平台
Wyatt Fang
 
Hp Storage
Hp StorageHp Storage
Hp Storage
amulopan
 
Ocean base海量结构化数据存储系统 hadoop in china
Ocean base海量结构化数据存储系统 hadoop in chinaOcean base海量结构化数据存储系统 hadoop in china
Ocean base海量结构化数据存储系统 hadoop in china
knuthocean
 
intro syslog syslogng
intro syslog syslogngintro syslog syslogng
intro syslog syslogng
juruntang
 
Syslog Ng
Syslog NgSyslog Ng
Syslog Ng
flytod
 
syslog&syslog-ng
syslog&syslog-ngsyslog&syslog-ng
syslog&syslog-ng
jurntang
 
计算机硬件基础知识 台式机
计算机硬件基础知识 台式机计算机硬件基础知识 台式机
计算机硬件基础知识 台式机
yeminwang
 
F1 07 淘宝软件基础设施构建实践_章文嵩_淘宝
F1 07 淘宝软件基础设施构建实践_章文嵩_淘宝F1 07 淘宝软件基础设施构建实践_章文嵩_淘宝
F1 07 淘宝软件基础设施构建实践_章文嵩_淘宝
drewz lin
 

Similar to Storage 101 - 20180607 (20)

数据库与ssd的实践与探索-2011数据库技术大会
数据库与ssd的实践与探索-2011数据库技术大会数据库与ssd的实践与探索-2011数据库技术大会
数据库与ssd的实践与探索-2011数据库技术大会
 
OTN软硬件结合数据库解决方案
OTN软硬件结合数据库解决方案OTN软硬件结合数据库解决方案
OTN软硬件结合数据库解决方案
 
百度分布式数据库 刘斌 Sacc2010
百度分布式数据库 刘斌 Sacc2010百度分布式数据库 刘斌 Sacc2010
百度分布式数据库 刘斌 Sacc2010
 
百度分布式数据库平台
百度分布式数据库平台百度分布式数据库平台
百度分布式数据库平台
 
Proxmox 5.0
Proxmox 5.0Proxmox 5.0
Proxmox 5.0
 
Hp Storage
Hp StorageHp Storage
Hp Storage
 
9439AD2
9439AD29439AD2
9439AD2
 
Ch2 4
Ch2 4Ch2 4
Ch2 4
 
OpenStack Introduction Ecosystem
OpenStack Introduction EcosystemOpenStack Introduction Ecosystem
OpenStack Introduction Ecosystem
 
Ocean base海量结构化数据存储系统 hadoop in china
Ocean base海量结构化数据存储系统 hadoop in chinaOcean base海量结构化数据存储系统 hadoop in china
Ocean base海量结构化数据存储系统 hadoop in china
 
Exadata training
Exadata trainingExadata training
Exadata training
 
11/7王團研究室—SATA 6Gb/s大解密
11/7王團研究室—SATA 6Gb/s大解密11/7王團研究室—SATA 6Gb/s大解密
11/7王團研究室—SATA 6Gb/s大解密
 
intro syslog syslogng
intro syslog syslogngintro syslog syslogng
intro syslog syslogng
 
Syslog Ng
Syslog NgSyslog Ng
Syslog Ng
 
syslog&syslog-ng
syslog&syslog-ngsyslog&syslog-ng
syslog&syslog-ng
 
计算机硬件基础知识 台式机
计算机硬件基础知识 台式机计算机硬件基础知识 台式机
计算机硬件基础知识 台式机
 
F1 07 淘宝软件基础设施构建实践_章文嵩_淘宝
F1 07 淘宝软件基础设施构建实践_章文嵩_淘宝F1 07 淘宝软件基础设施构建实践_章文嵩_淘宝
F1 07 淘宝软件基础设施构建实践_章文嵩_淘宝
 
xxxx.pdf
xxxx.pdfxxxx.pdf
xxxx.pdf
 
利用新硬件提升数据库性能
利用新硬件提升数据库性能利用新硬件提升数据库性能
利用新硬件提升数据库性能
 
Sth About SSD
Sth About SSDSth About SSD
Sth About SSD
 

More from Jamie (Taka) Wang

More from Jamie (Taka) Wang (20)

20200606_insight_Ignition
20200606_insight_Ignition20200606_insight_Ignition
20200606_insight_Ignition
 
20200727_Insight workstation
20200727_Insight workstation20200727_Insight workstation
20200727_Insight workstation
 
20200723_insight_release_plan
20200723_insight_release_plan20200723_insight_release_plan
20200723_insight_release_plan
 
20210105_量產技轉
20210105_量產技轉20210105_量產技轉
20210105_量產技轉
 
20200808自營電商平台策略討論
20200808自營電商平台策略討論20200808自營電商平台策略討論
20200808自營電商平台策略討論
 
20200427_hardware
20200427_hardware20200427_hardware
20200427_hardware
 
20200429_ec
20200429_ec20200429_ec
20200429_ec
 
20200607_insight_sync
20200607_insight_sync20200607_insight_sync
20200607_insight_sync
 
20220113_product_day
20220113_product_day20220113_product_day
20220113_product_day
 
20200429_software
20200429_software20200429_software
20200429_software
 
20200602_insight_business
20200602_insight_business20200602_insight_business
20200602_insight_business
 
20200408_gen11_sequence_diagram
20200408_gen11_sequence_diagram20200408_gen11_sequence_diagram
20200408_gen11_sequence_diagram
 
20190827_activity_diagram
20190827_activity_diagram20190827_activity_diagram
20190827_activity_diagram
 
20150722 - AGV
20150722 - AGV20150722 - AGV
20150722 - AGV
 
20161220 - microservice
20161220 - microservice20161220 - microservice
20161220 - microservice
 
20160217 - Overview of Vortex Intelligent Data Sharing Platform
20160217 - Overview of Vortex Intelligent Data Sharing Platform20160217 - Overview of Vortex Intelligent Data Sharing Platform
20160217 - Overview of Vortex Intelligent Data Sharing Platform
 
20151111 - IoT Sync Up
20151111 - IoT Sync Up20151111 - IoT Sync Up
20151111 - IoT Sync Up
 
20151207 - iot strategy
20151207 - iot strategy20151207 - iot strategy
20151207 - iot strategy
 
20141210 - Microservice Container
20141210 - Microservice Container20141210 - Microservice Container
20141210 - Microservice Container
 
20161027 - edge part2
20161027 - edge part220161027 - edge part2
20161027 - edge part2
 

Storage 101 - 20180607

  • 3. Parallel vs Serial Interfaces ‣ SATA = Serial ATA ‣ PATA = Parallel ATA ‣ SAS = Serial Attached SCSI ‣ Serial SCSI
  • 4. 硬碟 (Hard disk drive) Source Source ‣logical block 由 一 個或數個 physical sector 組成 ‣為何有 block 這個抽象概念? ➡作業系統 (OS) 可以操作的地址有限, 用 戶 的概念 取代數 人 頭
  • 5. SAMSUNG SSD (solid-state drive) Source Controller Cache (DDR) NAND NAND Die Block Page Cell 一 個write IO的動作,會寫到 一 頁 或 多 頁 ,不能直接操作 CELL
  • 7. Source SATA3 6.0Gb/s (600MB/s) PCIE x4 3.0 31.52Gb/s (3.94GB/s = 3940 MB/s)
  • 8. Distributed Storage Interface Type 看起來像分享資料夾 很多 人 都可以共 用 同 一 個資料夾 看起來像顆硬碟 你可以格式化它 Block device不是共享的 容器有唯 一 的編號 容器可以擺任何東 西 (ex. 電影)
  • 10. Source RADOS (Reliable Autonomic Distributed Object Store) A reliable, autonomic, distributed object store comprised of self-healing, self-managing, intelligent storage nodes LIBRADOS A library allowing apps to directly access RADOS, with support for C, C++, Java, Python, Ruby, and PHP. RADOSGW (RGW) (Object gateway) A bucket-based REST gateway, compatible with S3 and Swift. RBD (Raw Block Device) A reliable and fully- distributed block device, with a Linux kernel client and a QEMU/KVM driver CEPH FS (File System) A POSIX-compilant distributed fi le system HOST/VM Client APP APP ISCSI Target HTTP NAS (NFS, CIFS) SAN (iSCSI) libRBD libCEPHFS ISCSI GW CEPH block File Object
  • 12. Ceph Appliance Mars 200/400 Source
  • 15. ‣SCSI (Small Computer Systems Interface) ‣SAS (Serial Attached SCSI) ‣iSCSI (Internet Small Computer Systems Interface) 都叫xyzSCSI,意義大不同
  • 16. SCSI vs IDE 1970+ 1986 2003 • SCSI 具有應 用 範圍廣、多任務、頻寬 大 、 CPU佔 用 率低,以及熱插拔等優點 • 完全通過獨立的 高 速的SCSI卡來控制data 的 讀寫操作,CPU就不必浪費時間進 行 等待 • 透過 SCSI Command Set (protocol) 溝通 • 昂貴
  • 17. Comparison IDE/ATA vs SCSI Feature IDE/ATA SCSI Connectivity Market Internal Storage Internal and External Storage Speed (MB/sec) 100/133/150 320 Hot Pluggable No Yes Expandability Easier to set up Very good but very expensive to set up Cost/Performance Good High cost/Fast transfer speed
  • 18. SAS (Serial Attached SCSI) • SAS (Serial Attached SCSI) 用 來取代 Parallel SCSI (SCSI-3) • SAS 同樣使 用 SCSI command set (protocol) • SATA介 面 的硬碟可以插到SAS的插槽,但 SAS介 面 的硬碟不能插到 SATA 插槽
  • 19. iSCSI (是一種通訊協定,ex. 台語) • 又 稱為 IP-SAN • 透過 TCP/IP (網路) 與 SCSI command set (通訊協定) • Cable 就是網路線,但最好有搭配專屬的網路卡,不要跟 LAN 打架,會吃 一 些 CPU (IP header) • 連接裝置數沒有上限 (SCSI-3 的上限是15台) • 對主機 而 言 ,看起來就像 local attached disk • 主要競爭對 手 :光纖通道 ( fi ber channel) • 也是 一 種 protocol,傳遞媒介可以是光纖 (optical),也可以是銅線,也可以跑 SCSI command,包在 FC frame 中,主流是16GFC, 目 前已經有32GFC的交換機產品。
  • 20. iSCSI iSCSI initiators iSCSI target (software) iSCSI LUN1 iSCSI LUN2 (logical unit number) 發起者 對象
  • 21. Summary ‣ SCSI (Small Computer Systems Interface) ‣ 介 面 :各種針腳的 SCSI 頭與專 用 線 ‣ 通訊協定: SCSI command set ‣ SAS (Serial Attached SCSI) ‣ 介 面 :SAS 插頭與專 用 線 (SAS 插頭 可以插 SATA 硬碟) ‣ 通訊協定: SCSI command set ‣ iSCSI (Internet Small Computer Systems Interface) ‣ 介 面 :走網路 (網路卡與網路線) ‣ 通訊協定: SCSI command set over TCP/IP
  • 22. DAS vs NAS vs SAN
  • 23. ‣DAS (Directly Attached Storage) ‣NAS (Network Attached Storage) ‣SAN (Storage Area Network) 硬碟跟主機怎麼接才是重點 與有無 RAID 沒關係 接法
  • 24. DAS (Directly Attached Storage) 可以是 SCSI 線,LAN,SAS,光纖 隨 身 碟也可以視為 DAS (雖然USB頻寬有限) 他看起來就是我的 一 部分 就像直接插在排線上 一 般 而 言 ,速度最快 它跟我在同 一 個 rack上
  • 26. NAS (Network Attached Storage) 他看起來就是網路上某台電腦分享的 資料夾 (File) 而 不是網路上的 storage device NSF (Network File System) CIFS ( Common internet fi le system)
  • 27. NAS (Network Attached Storage) 他看起來就是網路上某台電腦分享的 資料夾 (File) 而 不是網路上的 storage device 可以 用 這樣類比 區網上可以有 一 台網路印表機 (印表機有IP) 但也可以是 小 明電腦上接了 一 台印表機,然後分享出來 (印表 機本 身 沒IP,IP是 小 明區網上的電腦) NSF (Network File System) CIFS ( Common internet fi le system)
  • 28. NAS 不一定要 RAID RAID ZFS (copy-on-write) FreeBSD NAS
  • 29. SAN (storage area network) Fibre channel SAN Switch
  • 30. SAN vs NAS SAN NAS Block level data access File level data access Fiber channel is the primary media used with SAN (單獨的 高 速通道). (也可以跑在網 路上, fi bre channel over Ethernet (FCoE), 或使 用 iSCSI protocol) Ethernet is the primary media used use NAS SCSI is the main I/O protocol NFS/CIFS is used as the main I/O protocol in NAS SAN storage appears to the computer as its own storage NAS appears as a shared folder to the computer It can have excellent speeds and performance when used with fi ber channel media It can sometimes worsen the performances, it the network is being used for other things as well(which normally is the case)
  • 33. Comparison between local disks and networked consolidated storage Source