SlideShare a Scribd company logo
1 of 11
在 Ceph 上 安裝作業系統的可能性
101502551 資工 3B 蔣彥亭
2014 / 10 / 20
2
Ceph 簡介
● Ceph 是一個具有高彈性、高可擴充性、高安全
性的叢集 (Cluster) 儲存平台。
● 支援 Object Storage, Block Storage, File
Storage
3
構想
●
利用 Ceph 的優勢 ( 高可擴充性、高安全
性 ...) ,將平時使用的作業系統環境建置於上
面 ...
一定很酷!
4
Ceph 基本概念
ref: https://www.ibm.com/developerworks/cn/linux/l-ceph/
5
如何利用?
●
將 OS 放置再 Ceph 上面,利用 Ceph 導出的 Block
Device 開機 ...
●
但是這有本質上的錯誤,有點類似 Diskless System 的
概念,在載入 Linux Kernel 之前無法掛載
RBD( Ceph's RADOS Block Devices)
●
解法:利用 iPXE 透過 iSCSI 開機
6
整體配置
● Ceph Cluster x1
● iSCSI Server x1 (RBD Mapped)
● DHCP Server x1
7
安裝流程
● 1. 建置 Ceph Cluster
● 2. 建置一台 iSCSI Target ,並在上面安裝 Ceph
Client
● 3. iSCSI Target 本身掛載 Ceph RBD ,並在其中
建立 Chroot 環境 (Debian Base OS 可採用
debootstrap 工具 ) ,
● 4. 配置 PXE Server ,使其回應 Client 端的請求
8
整體總結
● iPXE 設定網路 ( 透過 DHCP)
● iPXE 登入 iSCSI LUN 將其映射成 Local Disk
● 讀取 MBR 並開始開機流程,讀取
kernel 、 initrd 等
9
優劣評估
● 優點: Ceph 本身的機制,避免了 Cluster 本身
SPOF(Single point of failure) 的問題,並且有
Ceph 保證的安全性,確保在部份 OSD 毀損的
情況下,資料的完整性
● 缺點:採用 iSCSI 導致 SPOF 的問題,也就是
iSCSI 伺服器單點的故障,會導致無法開機的情
形
10
另一種可能性 ?!
● PXE v.s. NBD – Network Block Device
● PXE v.s. NFS – Network File System
11
參考資料
● Arch Linux Diskless Guide:
– https://wiki.archlinux.org/index.php/Diskless_system
● Ubuntu Linux Diskless Guide:
– https://help.ubuntu.com/community/DisklessUbuntuHowto
● NBD:
– http://etbe.coker.com.au/2009/08/23/nbd-pxe-booting-debian
● Diskless iSCSI Boot:
– http://backreference.org/2013/12/23/diskless-iscsi-boot-with-
●

More Related Content

What's hot

Bypat博客出品-利用cent os快速构建自己的发行版-进阶版v1.1
Bypat博客出品-利用cent os快速构建自己的发行版-进阶版v1.1Bypat博客出品-利用cent os快速构建自己的发行版-进阶版v1.1
Bypat博客出品-利用cent os快速构建自己的发行版-进阶版v1.1redhat9
 
锐起Windows XP无盘工作站
锐起Windows XP无盘工作站锐起Windows XP无盘工作站
锐起Windows XP无盘工作站Shawn Zhung
 
如何在 Tomcat 下安装 solr 4
如何在 Tomcat 下安装 solr 4如何在 Tomcat 下安装 solr 4
如何在 Tomcat 下安装 solr 4YUCHENG HU
 
Ceph中国社区9.19 Ceph IO 路径 和性能分析-王豪迈05
Ceph中国社区9.19 Ceph IO 路径 和性能分析-王豪迈05Ceph中国社区9.19 Ceph IO 路径 和性能分析-王豪迈05
Ceph中国社区9.19 Ceph IO 路径 和性能分析-王豪迈05Hang Geng
 
缓存基础
缓存基础缓存基础
缓存基础dynamiclu
 
WIN2003 - 介紹 V Mware, 並實地操作
WIN2003 - 介紹 V Mware, 並實地操作WIN2003 - 介紹 V Mware, 並實地操作
WIN2003 - 介紹 V Mware, 並實地操作阿狗 郭
 
OpenSTACK Installation on Ubuntu
OpenSTACK Installation on UbuntuOpenSTACK Installation on Ubuntu
OpenSTACK Installation on Ubuntu康志強 大人
 
(2020 03)SimpliVity change vcenter
(2020 03)SimpliVity change vcenter(2020 03)SimpliVity change vcenter
(2020 03)SimpliVity change vcenter裝機安 Angelo
 
关于服务器虚拟化的测试汇报
关于服务器虚拟化的测试汇报关于服务器虚拟化的测试汇报
关于服务器虚拟化的测试汇报博 孟
 
VMware Rhel5 Oracle10g Rac
VMware Rhel5 Oracle10g RacVMware Rhel5 Oracle10g Rac
VMware Rhel5 Oracle10g Racguest77e407
 
Kubernetes use-ceph
Kubernetes use-cephKubernetes use-ceph
Kubernetes use-cephYang Guanjun
 
StackOps step by-step guide
StackOps step by-step guideStackOps step by-step guide
StackOps step by-step guideslmagicbox
 
HPE SimpliVity VM保護備份
HPE SimpliVity VM保護備份HPE SimpliVity VM保護備份
HPE SimpliVity VM保護備份裝機安 Angelo
 
Installation and configuration 11g r2
Installation and configuration 11g r2Installation and configuration 11g r2
Installation and configuration 11g r2Zhaoyang Wang
 
Cinder Intro@Open Stack China Tour Beijing
Cinder Intro@Open Stack China Tour BeijingCinder Intro@Open Stack China Tour Beijing
Cinder Intro@Open Stack China Tour BeijingOpenCity Community
 

What's hot (20)

Bypat博客出品-利用cent os快速构建自己的发行版-进阶版v1.1
Bypat博客出品-利用cent os快速构建自己的发行版-进阶版v1.1Bypat博客出品-利用cent os快速构建自己的发行版-进阶版v1.1
Bypat博客出品-利用cent os快速构建自己的发行版-进阶版v1.1
 
Hw03 0983017
Hw03 0983017Hw03 0983017
Hw03 0983017
 
锐起Windows XP无盘工作站
锐起Windows XP无盘工作站锐起Windows XP无盘工作站
锐起Windows XP无盘工作站
 
如何在 Tomcat 下安装 solr 4
如何在 Tomcat 下安装 solr 4如何在 Tomcat 下安装 solr 4
如何在 Tomcat 下安装 solr 4
 
Ceph中国社区9.19 Ceph IO 路径 和性能分析-王豪迈05
Ceph中国社区9.19 Ceph IO 路径 和性能分析-王豪迈05Ceph中国社区9.19 Ceph IO 路径 和性能分析-王豪迈05
Ceph中国社区9.19 Ceph IO 路径 和性能分析-王豪迈05
 
HW03
HW03HW03
HW03
 
缓存基础
缓存基础缓存基础
缓存基础
 
WIN2003 - 介紹 V Mware, 並實地操作
WIN2003 - 介紹 V Mware, 並實地操作WIN2003 - 介紹 V Mware, 並實地操作
WIN2003 - 介紹 V Mware, 並實地操作
 
OpenSTACK Installation on Ubuntu
OpenSTACK Installation on UbuntuOpenSTACK Installation on Ubuntu
OpenSTACK Installation on Ubuntu
 
(2020 03)SimpliVity change vcenter
(2020 03)SimpliVity change vcenter(2020 03)SimpliVity change vcenter
(2020 03)SimpliVity change vcenter
 
关于服务器虚拟化的测试汇报
关于服务器虚拟化的测试汇报关于服务器虚拟化的测试汇报
关于服务器虚拟化的测试汇报
 
Hw03 0983016
Hw03 0983016Hw03 0983016
Hw03 0983016
 
VMware Rhel5 Oracle10g Rac
VMware Rhel5 Oracle10g RacVMware Rhel5 Oracle10g Rac
VMware Rhel5 Oracle10g Rac
 
Linux
LinuxLinux
Linux
 
Kubernetes use-ceph
Kubernetes use-cephKubernetes use-ceph
Kubernetes use-ceph
 
pfSsense
pfSsensepfSsense
pfSsense
 
StackOps step by-step guide
StackOps step by-step guideStackOps step by-step guide
StackOps step by-step guide
 
HPE SimpliVity VM保護備份
HPE SimpliVity VM保護備份HPE SimpliVity VM保護備份
HPE SimpliVity VM保護備份
 
Installation and configuration 11g r2
Installation and configuration 11g r2Installation and configuration 11g r2
Installation and configuration 11g r2
 
Cinder Intro@Open Stack China Tour Beijing
Cinder Intro@Open Stack China Tour BeijingCinder Intro@Open Stack China Tour Beijing
Cinder Intro@Open Stack China Tour Beijing
 

Similar to A possibility to install OS on CEPH

Ceph in UnitedStack
Ceph in UnitedStackCeph in UnitedStack
Ceph in UnitedStackRongze Zhu
 
Ceph customize ap is for programmatic access with python
Ceph customize ap is for programmatic access with pythonCeph customize ap is for programmatic access with python
Ceph customize ap is for programmatic access with pythonBo-Yu Chen
 
應用Ceph技術打造軟體定義儲存新局
應用Ceph技術打造軟體定義儲存新局應用Ceph技術打造軟體定義儲存新局
應用Ceph技術打造軟體定義儲存新局Alex Lau
 
DRBL-live-hadoop at TSLC
DRBL-live-hadoop at TSLCDRBL-live-hadoop at TSLC
DRBL-live-hadoop at TSLCYu-Chin Tsai
 
Docker tutorial
Docker tutorialDocker tutorial
Docker tutorialazole Lai
 
Asp.net mvc 6 新功能初探
Asp.net mvc 6 新功能初探Asp.net mvc 6 新功能初探
Asp.net mvc 6 新功能初探Gelis Wu
 
Clonezilla tutorial.v7
Clonezilla tutorial.v7Clonezilla tutorial.v7
Clonezilla tutorial.v7hs1250
 
如何使用 Xhprof 分析網站效能 (真實案例2)
如何使用 Xhprof 分析網站效能 (真實案例2)如何使用 Xhprof 分析網站效能 (真實案例2)
如何使用 Xhprof 分析網站效能 (真實案例2)Cyril Wang
 
Using Alluxio POSIX (FUSE) API in JD.com
Using Alluxio POSIX (FUSE) API in JD.comUsing Alluxio POSIX (FUSE) API in JD.com
Using Alluxio POSIX (FUSE) API in JD.comAlluxio, Inc.
 
2011 q2 drbl-clonezilla.advanced_v9
2011 q2 drbl-clonezilla.advanced_v92011 q2 drbl-clonezilla.advanced_v9
2011 q2 drbl-clonezilla.advanced_v9hs1250
 
基于Ubuntu 12.04 LTS Server的无盘工作站
基于Ubuntu 12.04 LTS Server的无盘工作站基于Ubuntu 12.04 LTS Server的无盘工作站
基于Ubuntu 12.04 LTS Server的无盘工作站Shawn Zhung
 
hicloud PaaS雲創平台(Java/PHP介紹)
hicloud PaaS雲創平台(Java/PHP介紹)hicloud PaaS雲創平台(Java/PHP介紹)
hicloud PaaS雲創平台(Java/PHP介紹)hicloud-paas
 
十二項架構設計原則
十二項架構設計原則十二項架構設計原則
十二項架構設計原則Philip Zheng
 
Continuous Delivery - Opening
Continuous Delivery - OpeningContinuous Delivery - Opening
Continuous Delivery - OpeningRick Hwang
 
Windows Container 101: dotNET, Container, Kubernetes
Windows Container 101: dotNET, Container, KubernetesWindows Container 101: dotNET, Container, Kubernetes
Windows Container 101: dotNET, Container, KubernetesWill Huang
 
Hadoop Deployment Model @ OSDC.TW
Hadoop Deployment Model @ OSDC.TWHadoop Deployment Model @ OSDC.TW
Hadoop Deployment Model @ OSDC.TWJazz Yao-Tsung Wang
 

Similar to A possibility to install OS on CEPH (20)

Ceph in UnitedStack
Ceph in UnitedStackCeph in UnitedStack
Ceph in UnitedStack
 
Ceph customize ap is for programmatic access with python
Ceph customize ap is for programmatic access with pythonCeph customize ap is for programmatic access with python
Ceph customize ap is for programmatic access with python
 
Linux File system
Linux File systemLinux File system
Linux File system
 
應用Ceph技術打造軟體定義儲存新局
應用Ceph技術打造軟體定義儲存新局應用Ceph技術打造軟體定義儲存新局
應用Ceph技術打造軟體定義儲存新局
 
DRBL-live-hadoop at TSLC
DRBL-live-hadoop at TSLCDRBL-live-hadoop at TSLC
DRBL-live-hadoop at TSLC
 
Ansible 101
Ansible 101Ansible 101
Ansible 101
 
Docker tutorial
Docker tutorialDocker tutorial
Docker tutorial
 
Asp.net mvc 6 新功能初探
Asp.net mvc 6 新功能初探Asp.net mvc 6 新功能初探
Asp.net mvc 6 新功能初探
 
Clonezilla tutorial.v7
Clonezilla tutorial.v7Clonezilla tutorial.v7
Clonezilla tutorial.v7
 
Mesos intro
Mesos introMesos intro
Mesos intro
 
如何使用 Xhprof 分析網站效能 (真實案例2)
如何使用 Xhprof 分析網站效能 (真實案例2)如何使用 Xhprof 分析網站效能 (真實案例2)
如何使用 Xhprof 分析網站效能 (真實案例2)
 
Using Alluxio POSIX (FUSE) API in JD.com
Using Alluxio POSIX (FUSE) API in JD.comUsing Alluxio POSIX (FUSE) API in JD.com
Using Alluxio POSIX (FUSE) API in JD.com
 
2011 q2 drbl-clonezilla.advanced_v9
2011 q2 drbl-clonezilla.advanced_v92011 q2 drbl-clonezilla.advanced_v9
2011 q2 drbl-clonezilla.advanced_v9
 
基于Ubuntu 12.04 LTS Server的无盘工作站
基于Ubuntu 12.04 LTS Server的无盘工作站基于Ubuntu 12.04 LTS Server的无盘工作站
基于Ubuntu 12.04 LTS Server的无盘工作站
 
Openstack的研究与实践
Openstack的研究与实践Openstack的研究与实践
Openstack的研究与实践
 
hicloud PaaS雲創平台(Java/PHP介紹)
hicloud PaaS雲創平台(Java/PHP介紹)hicloud PaaS雲創平台(Java/PHP介紹)
hicloud PaaS雲創平台(Java/PHP介紹)
 
十二項架構設計原則
十二項架構設計原則十二項架構設計原則
十二項架構設計原則
 
Continuous Delivery - Opening
Continuous Delivery - OpeningContinuous Delivery - Opening
Continuous Delivery - Opening
 
Windows Container 101: dotNET, Container, Kubernetes
Windows Container 101: dotNET, Container, KubernetesWindows Container 101: dotNET, Container, Kubernetes
Windows Container 101: dotNET, Container, Kubernetes
 
Hadoop Deployment Model @ OSDC.TW
Hadoop Deployment Model @ OSDC.TWHadoop Deployment Model @ OSDC.TW
Hadoop Deployment Model @ OSDC.TW
 

A possibility to install OS on CEPH

  • 1. 在 Ceph 上 安裝作業系統的可能性 101502551 資工 3B 蔣彥亭 2014 / 10 / 20
  • 2. 2 Ceph 簡介 ● Ceph 是一個具有高彈性、高可擴充性、高安全 性的叢集 (Cluster) 儲存平台。 ● 支援 Object Storage, Block Storage, File Storage
  • 3. 3 構想 ● 利用 Ceph 的優勢 ( 高可擴充性、高安全 性 ...) ,將平時使用的作業系統環境建置於上 面 ... 一定很酷!
  • 5. 5 如何利用? ● 將 OS 放置再 Ceph 上面,利用 Ceph 導出的 Block Device 開機 ... ● 但是這有本質上的錯誤,有點類似 Diskless System 的 概念,在載入 Linux Kernel 之前無法掛載 RBD( Ceph's RADOS Block Devices) ● 解法:利用 iPXE 透過 iSCSI 開機
  • 6. 6 整體配置 ● Ceph Cluster x1 ● iSCSI Server x1 (RBD Mapped) ● DHCP Server x1
  • 7. 7 安裝流程 ● 1. 建置 Ceph Cluster ● 2. 建置一台 iSCSI Target ,並在上面安裝 Ceph Client ● 3. iSCSI Target 本身掛載 Ceph RBD ,並在其中 建立 Chroot 環境 (Debian Base OS 可採用 debootstrap 工具 ) , ● 4. 配置 PXE Server ,使其回應 Client 端的請求
  • 8. 8 整體總結 ● iPXE 設定網路 ( 透過 DHCP) ● iPXE 登入 iSCSI LUN 將其映射成 Local Disk ● 讀取 MBR 並開始開機流程,讀取 kernel 、 initrd 等
  • 9. 9 優劣評估 ● 優點: Ceph 本身的機制,避免了 Cluster 本身 SPOF(Single point of failure) 的問題,並且有 Ceph 保證的安全性,確保在部份 OSD 毀損的 情況下,資料的完整性 ● 缺點:採用 iSCSI 導致 SPOF 的問題,也就是 iSCSI 伺服器單點的故障,會導致無法開機的情 形
  • 10. 10 另一種可能性 ?! ● PXE v.s. NBD – Network Block Device ● PXE v.s. NFS – Network File System
  • 11. 11 參考資料 ● Arch Linux Diskless Guide: – https://wiki.archlinux.org/index.php/Diskless_system ● Ubuntu Linux Diskless Guide: – https://help.ubuntu.com/community/DisklessUbuntuHowto ● NBD: – http://etbe.coker.com.au/2009/08/23/nbd-pxe-booting-debian ● Diskless iSCSI Boot: – http://backreference.org/2013/12/23/diskless-iscsi-boot-with- ●