Ceph – Software Defined Storage für
die Cloud
CeBIT 2016 15. März 2015
Michel Rode
Linux/Unix Consultant & Trainer
B1 Systems GmbH
rode@b1-systems.de
B1 Systems GmbH - Linux/Open Source Consulting,Training, Support & Development
Vorstellung B1 Systems
gegründet 2004
primär Linux/Open Source-Themen
national & international tätig
über 70 Mitarbeiter
unabhängig von Soft- und Hardware-Herstellern
Leistungsangebot:
Beratung & Consulting
Support
Entwicklung
Training
Betrieb
Lösungen
dezentrale Strukturen
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 2 / 36
Schwerpunkte
Virtualisierung (XEN, KVM & RHEV)
Systemmanagement (Spacewalk, Red Hat Satellite, SUSE
Manager)
Konfigurationsmanagement (Puppet & Chef)
Monitoring (Nagios & Icinga)
IaaS Cloud (OpenStack & SUSE Cloud & RDO)
Hochverfügbarkeit (Pacemaker)
Shared Storage (GPFS, OCFS2, DRBD & CEPH)
Dateiaustausch (ownCloud)
Paketierung (Open Build Service)
Administratoren oder Entwickler zur Unterstützung des Teams
vor Ort
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 3 / 36
Storage Cluster
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 4 / 36
Was sind Storage Cluster?
hochverfügbare Systeme
verteilte Standorte
skalierbar (mehr oder weniger)
Problem: Häufig Vendor-Lock-In
80%+ basieren auf FC
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 5 / 36
Beispiele 1/2
Dell PowerVault
IBM SVC
NetApp Metro Cluster
NetApp Clustered Ontap
. . .
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 6 / 36
Beispiele 2/2
AWS S3
Rackspace Files
Google Cloud Storage
Microsoft Azure
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 7 / 36
Alternativen
DRBD
CEPH
. . .
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 8 / 36
Was ist Ceph?
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 9 / 36
Was ist Ceph?
Storage Cluster (Distributed Object Store)
Open Source (LGPL)
Object/Block/File Storage
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 10 / 36
Ziele bei der Entwicklung von Ceph
kein SPOF (Single Point of Failure)
hohe Skalierbarkeit
gute Parallelisierung
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 11 / 36
Block Storage
Block Storage:
Files werden
gesplittet → Blocks
jeweils eigene
Adresse
keine Metadata
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 12 / 36
Block Storage
RADOS Block Device/RBD
Integration in KVM
OpenStack
SUSE OpenStack Cloud
Proxmox
resizeable images
read-only snapshots
revert to snapshots
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 13 / 36
Object Storage
Data – Bilder bis Manuals bis Videos
Metadata – Kontextinformationen für die Daten
Index/Identifier – natürlich unique!
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 14 / 36
Object vs. Block
Quelle: http://www.druva.com/wp-content/uploads/
Screen-Shot-2014-08-18-at-11.02.02-AM-500x276.png
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 15 / 36
File Storage
„Stronger data safety for mission-critical applications“
POSIX-konform
automatisches Verteilen – bessere Performance!
CephFS
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 16 / 36
Gateway/RGW
RESTful API
Interface für
OpenStack Swift
Amazon S3
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 17 / 36
Aufbau von Ceph
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 18 / 36
Aufbau von Ceph
Object Storage Device – OSD
Monitor – MON
Metadata Server – MDS
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 19 / 36
Aufbau
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 20 / 36
Funktionsweise von Ceph
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 21 / 36
Funktionsweise von Ceph
automatisches Verteilen und Replizieren der Daten
RAID-0
CRUSH Map
Client kommuniziert direkt mit allen Systemen im Cluster
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 22 / 36
Funktionsweise von Ceph
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 23 / 36
ceph-mon – Ceph Monitor Daemon
Map – aktive/inaktive Nodes
mindestens 1
hochverfügbar!
mit Paxos zum Quorum (2/3, 3/5)
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 24 / 36
ceph-osd – Ceph Object Storage Daemon
1/4
kann und darf ausfallen
mindestens drei Knoten
paralleler Zugriff
CRUSH-Map
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 25 / 36
ceph-osd – Ceph Object Storage Daemon
2/4
Object → File → Disk
Tabelle
ID Binary Metadata
1234 100101 name1 value1
4321 010010 name2 value2
Semantik liegt beim Client
ID ist eindeutig
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 26 / 36
ceph-osd – Ceph Object Storage Daemon
3/4
Dateisystem:
Test-Umgebungen:
BTRFS
ZFS
Produktiv-Systeme:
ext3 (kleine Umgebung)
XFS (Enterprise-Umgebung)
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 27 / 36
ceph-osd – Ceph Object Storage Daemon
4/4
Daten werden erst in Journal geschrieben
Tipp: 4 OSD pro SSD
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 28 / 36
ceph-mds – Ceph Metadata Server Daemon
speichert Inodes und Directories
erforderlich für CephFS
kein separater Speicher
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 29 / 36
CRUSH Maps
Quelle: http://www.sebastien-han.fr/
images/ceph-data-placement.jpg
CRUSH – Controlled
Replication Under
Scalable Hashing
Datei (oid) → Objekt
(pgid) → PGs →
CRUSH (pgid) →
osd1,osd2
Jeder mit Jedem!
Platzierungsregeln
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 30 / 36
War das alles?
Pools
Replicated
Erasure Coding
Tiering
Federation
Chef
Calamari
Backend for LIO (lrbd)
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 31 / 36
Calamari 1/2
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 32 / 36
Calamari 2/2
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 33 / 36
Openstack & Ceph 1/2
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 34 / 36
Openstack & Ceph 2/2
Glance
Upload, Download, Status, Snapshots, ...
Cinder
Volumes, Boot Volume, Resizing, ...
Nova
Live-Migration, Ephemeral, ...
B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 35 / 36
Vielen Dank für Ihre Aufmerksamkeit!
Bei weiteren Fragen wenden Sie sich bitte an info@b1-systems.de
oder +49 (0)8457 - 931096.
Besuchen Sie uns auch hier auf der CeBIT,
Halle 3, D36/410.
B1 Systems GmbH - Linux/Open Source Consulting,Training, Support & Development

Ceph - Software Defined Storage für die Cloud

  • 1.
    Ceph – SoftwareDefined Storage für die Cloud CeBIT 2016 15. März 2015 Michel Rode Linux/Unix Consultant & Trainer B1 Systems GmbH rode@b1-systems.de B1 Systems GmbH - Linux/Open Source Consulting,Training, Support & Development
  • 2.
    Vorstellung B1 Systems gegründet2004 primär Linux/Open Source-Themen national & international tätig über 70 Mitarbeiter unabhängig von Soft- und Hardware-Herstellern Leistungsangebot: Beratung & Consulting Support Entwicklung Training Betrieb Lösungen dezentrale Strukturen B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 2 / 36
  • 3.
    Schwerpunkte Virtualisierung (XEN, KVM& RHEV) Systemmanagement (Spacewalk, Red Hat Satellite, SUSE Manager) Konfigurationsmanagement (Puppet & Chef) Monitoring (Nagios & Icinga) IaaS Cloud (OpenStack & SUSE Cloud & RDO) Hochverfügbarkeit (Pacemaker) Shared Storage (GPFS, OCFS2, DRBD & CEPH) Dateiaustausch (ownCloud) Paketierung (Open Build Service) Administratoren oder Entwickler zur Unterstützung des Teams vor Ort B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 3 / 36
  • 4.
    Storage Cluster B1 SystemsGmbH Ceph – Software Defined Storage für die Cloud 4 / 36
  • 5.
    Was sind StorageCluster? hochverfügbare Systeme verteilte Standorte skalierbar (mehr oder weniger) Problem: Häufig Vendor-Lock-In 80%+ basieren auf FC B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 5 / 36
  • 6.
    Beispiele 1/2 Dell PowerVault IBMSVC NetApp Metro Cluster NetApp Clustered Ontap . . . B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 6 / 36
  • 7.
    Beispiele 2/2 AWS S3 RackspaceFiles Google Cloud Storage Microsoft Azure B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 7 / 36
  • 8.
    Alternativen DRBD CEPH . . . B1Systems GmbH Ceph – Software Defined Storage für die Cloud 8 / 36
  • 9.
    Was ist Ceph? B1Systems GmbH Ceph – Software Defined Storage für die Cloud 9 / 36
  • 10.
    Was ist Ceph? StorageCluster (Distributed Object Store) Open Source (LGPL) Object/Block/File Storage B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 10 / 36
  • 11.
    Ziele bei derEntwicklung von Ceph kein SPOF (Single Point of Failure) hohe Skalierbarkeit gute Parallelisierung B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 11 / 36
  • 12.
    Block Storage Block Storage: Fileswerden gesplittet → Blocks jeweils eigene Adresse keine Metadata B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 12 / 36
  • 13.
    Block Storage RADOS BlockDevice/RBD Integration in KVM OpenStack SUSE OpenStack Cloud Proxmox resizeable images read-only snapshots revert to snapshots B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 13 / 36
  • 14.
    Object Storage Data –Bilder bis Manuals bis Videos Metadata – Kontextinformationen für die Daten Index/Identifier – natürlich unique! B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 14 / 36
  • 15.
    Object vs. Block Quelle:http://www.druva.com/wp-content/uploads/ Screen-Shot-2014-08-18-at-11.02.02-AM-500x276.png B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 15 / 36
  • 16.
    File Storage „Stronger datasafety for mission-critical applications“ POSIX-konform automatisches Verteilen – bessere Performance! CephFS B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 16 / 36
  • 17.
    Gateway/RGW RESTful API Interface für OpenStackSwift Amazon S3 B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 17 / 36
  • 18.
    Aufbau von Ceph B1Systems GmbH Ceph – Software Defined Storage für die Cloud 18 / 36
  • 19.
    Aufbau von Ceph ObjectStorage Device – OSD Monitor – MON Metadata Server – MDS B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 19 / 36
  • 20.
    Aufbau B1 Systems GmbHCeph – Software Defined Storage für die Cloud 20 / 36
  • 21.
    Funktionsweise von Ceph B1Systems GmbH Ceph – Software Defined Storage für die Cloud 21 / 36
  • 22.
    Funktionsweise von Ceph automatischesVerteilen und Replizieren der Daten RAID-0 CRUSH Map Client kommuniziert direkt mit allen Systemen im Cluster B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 22 / 36
  • 23.
    Funktionsweise von Ceph B1Systems GmbH Ceph – Software Defined Storage für die Cloud 23 / 36
  • 24.
    ceph-mon – CephMonitor Daemon Map – aktive/inaktive Nodes mindestens 1 hochverfügbar! mit Paxos zum Quorum (2/3, 3/5) B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 24 / 36
  • 25.
    ceph-osd – CephObject Storage Daemon 1/4 kann und darf ausfallen mindestens drei Knoten paralleler Zugriff CRUSH-Map B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 25 / 36
  • 26.
    ceph-osd – CephObject Storage Daemon 2/4 Object → File → Disk Tabelle ID Binary Metadata 1234 100101 name1 value1 4321 010010 name2 value2 Semantik liegt beim Client ID ist eindeutig B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 26 / 36
  • 27.
    ceph-osd – CephObject Storage Daemon 3/4 Dateisystem: Test-Umgebungen: BTRFS ZFS Produktiv-Systeme: ext3 (kleine Umgebung) XFS (Enterprise-Umgebung) B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 27 / 36
  • 28.
    ceph-osd – CephObject Storage Daemon 4/4 Daten werden erst in Journal geschrieben Tipp: 4 OSD pro SSD B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 28 / 36
  • 29.
    ceph-mds – CephMetadata Server Daemon speichert Inodes und Directories erforderlich für CephFS kein separater Speicher B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 29 / 36
  • 30.
    CRUSH Maps Quelle: http://www.sebastien-han.fr/ images/ceph-data-placement.jpg CRUSH– Controlled Replication Under Scalable Hashing Datei (oid) → Objekt (pgid) → PGs → CRUSH (pgid) → osd1,osd2 Jeder mit Jedem! Platzierungsregeln B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 30 / 36
  • 31.
    War das alles? Pools Replicated ErasureCoding Tiering Federation Chef Calamari Backend for LIO (lrbd) B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 31 / 36
  • 32.
    Calamari 1/2 B1 SystemsGmbH Ceph – Software Defined Storage für die Cloud 32 / 36
  • 33.
    Calamari 2/2 B1 SystemsGmbH Ceph – Software Defined Storage für die Cloud 33 / 36
  • 34.
    Openstack & Ceph1/2 B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 34 / 36
  • 35.
    Openstack & Ceph2/2 Glance Upload, Download, Status, Snapshots, ... Cinder Volumes, Boot Volume, Resizing, ... Nova Live-Migration, Ephemeral, ... B1 Systems GmbH Ceph – Software Defined Storage für die Cloud 35 / 36
  • 36.
    Vielen Dank fürIhre Aufmerksamkeit! Bei weiteren Fragen wenden Sie sich bitte an info@b1-systems.de oder +49 (0)8457 - 931096. Besuchen Sie uns auch hier auf der CeBIT, Halle 3, D36/410. B1 Systems GmbH - Linux/Open Source Consulting,Training, Support & Development