SlideShare a Scribd company logo
Linux höchstpersönlich.
Unlimited Fileserver with Samba CTDB and CephFS
[Ceph Day Berlin 2018-11-12]
Robert Sander <r.sander@heinlein-support.de>
Unlimited Fileserver with Samba CTDB and CephFS
Linux höchstpersönlich.
Unlimited Fileserver with Samba CTDB and CephFS
[Ceph Day Berlin 2018-11-12]
Robert Sander <r.sander@heinlein-support.de>
Who?
Robert Sander
➞ Linux since 1995
➞ @gurubert
Heinlein Support GmbH
➞ 20+ years experience and knowledge around Linux servers and E-Mail
➞ IT Consulting and 24/7 Linux-Support with > 30 employees
➞ Incorporated ISP since 1992
➞ jpberlin.de & mailbox.org
➞ Daily insights into the IT of small, medium and large businesses
Linux höchstpersönlich.
Unlimited Fileserver with Samba CTDB and CephFS
[Ceph Day Berlin 2018-11-12]
Robert Sander <r.sander@heinlein-support.de>
Concept
➞ multiple Samba gateways in front of Ceph cluster
➞ CephFS used for data + CTDB sync
➞ Samba config in CTDB "registry"
➞ Only file service covered
➞ not for Samba AD servers
➞ CTDB can also manage NFS kernel service
Linux höchstpersönlich.
Unlimited Fileserver with Samba CTDB and CephFS
[Ceph Day Berlin 2018-11-12]
Robert Sander <r.sander@heinlein-support.de>
Concept
ceph node ceph nodeceph node ceph node
SMB/NFS
GW
SMB/NFS
GW
SMB/NFS
GW
SMB/NFS
client
SMB/NFS
client
SMB/NFS
client
SMB/NFS
client
…
…
Linux höchstpersönlich.
Unlimited Fileserver with Samba CTDB and CephFS
[Ceph Day Berlin 2018-11-12]
Robert Sander <r.sander@heinlein-support.de>
Ceph Setup
➞ A working cluster with CephFS
Linux höchstpersönlich.
Unlimited Fileserver with Samba CTDB and CephFS
[Ceph Day Berlin 2018-11-12]
Robert Sander <r.sander@heinlein-support.de>
Gateway Setup
➞ CephFS-Clients are SMB/NFS servers
➞ Samba CTDB
➞ Samba smbd
➞ NFS kernel server
➞ CentOS
➞ Debian/Ubuntu issues with /etc/ctdb scripts
➞ https://bugs.launchpad.net/ubuntu/+source/ctdb/+bug/722201
Linux höchstpersönlich.
Unlimited Fileserver with Samba CTDB and CephFS
[Ceph Day Berlin 2018-11-12]
Robert Sander <r.sander@heinlein-support.de>
CephFS mount
➞ cephx key for cephfs access
➞ caps: [mds] allow rw
➞ caps: [mon] allow r
➞ caps: [osd] allow rw pool=fs
➞ /etc/ceph/ceph.conf
➞ [client]
client_acl_type = posix_acl
fuse_default_permissions = false
client reconnect stale = true
➞ /etc/fstab entry:
➞ id=clientid /cephfs fuse.ceph _netdev 0 0
➞ with /etc/ceph/ceph.client.clientid.keyring or
➞ mon1:6789,mon2:6789,mon3:6789:/ /cephfs ceph name=clientid,secretfile=/etc/ceph/
ceph.client.clientid.secret
Linux höchstpersönlich.
Unlimited Fileserver with Samba CTDB and CephFS
[Ceph Day Berlin 2018-11-12]
Robert Sander <r.sander@heinlein-support.de>
CTDB
clustered trivial database
➞ provides a TDB that has
➞ consistent data and
➞ consistent locking
across all nodes in a cluster.
➞ In case of node failures,
CTDB will automatically recover and repair TDBs
➞ provides HA features such as
➞ node monitoring,
➞ node failover and
➞ IP takeover.
➞ flexible with application specific management scripts
Linux höchstpersönlich.
Unlimited Fileserver with Samba CTDB and CephFS
[Ceph Day Berlin 2018-11-12]
Robert Sander <r.sander@heinlein-support.de>
CTDB configuration
➞ /etc/systemd/system/ctdb.service.d/override.conf
➞ [Unit]
After=cephfs.mount
RequiresMountsFor=/cephfs
➞ /etc/ctdb/ctdbd.conf
➞ CTDB_RECOVERY_LOCK=/cephfs/ctdb/lock
CTDB_NODES=/etc/ctdb/nodes
CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses
CTDB_MANAGES_SAMBA=yes
CTDB_MANAGES_WINBIND=yes
# CTDB_MANAGES_NFS=yes
CTDB_MAX_OPEN_FILES=65536
CTDB_LOGGING=file:/var/log/log.ctdb
Linux höchstpersönlich.
Unlimited Fileserver with Samba CTDB and CephFS
[Ceph Day Berlin 2018-11-12]
Robert Sander <r.sander@heinlein-support.de>
ctdb configuration
➞ /etc/ctdb/nodes
➞ list of host IPs
➞ /etc/ctdb/public_addresses
➞ list of service IPs
➞ one for each host
➞ Service IPs in round-robin DNS
➞ fileserver.example.com IN A 10.0.1.11
IN A 10.0.1.12
IN A 10.0.1.13
➞ SMB clients pick a random IP at mount time
➞ CLI: ctdb status
Linux höchstpersönlich.
Unlimited Fileserver with Samba CTDB and CephFS
[Ceph Day Berlin 2018-11-12]
Robert Sander <r.sander@heinlein-support.de>
Samba configuration
➞ /etc/samba/smb.conf
➞ [global]
clustering = yes
include = registry
➞ net conf
➞ net conf addshare
➞ net conf setparm
➞ net conf list
➞ net conf import
➞ share paths on CephFS mount
Linux höchstpersönlich.
Unlimited Fileserver with Samba CTDB and CephFS
[Ceph Day Berlin 2018-11-12]
Robert Sander <r.sander@heinlein-support.de>
NFS configuration
➞ /etc/exports
➞ /cephfs/nfs *(rw,fsid=1235,async,crossmnt,no_subtree_check)
➞ identical on all gateway hosts, filesystem ID is a small integer != 0 or UUID
➞ /etc/sysconfig/nfs
➞ NFS_HOSTNAME="fileserver"
RPCNFSDARGS="-N 4"
RPCNFSDCOUNT=32
STATD_PORT=595
STATD_OUTGOING_PORT=596
STATD_HOSTNAME="$NFS_HOSTNAME"
STATD_HA_CALLOUT="/etc/ctdb/statd-callout"
GSS_USE_PROXY="yes"
MOUNTD_PORT=597
RQUOTAD_PORT=598
LOCKD_UDPPORT=599
LOCKD_TCPPORT=599
➞ same port numbers on every host
Linux höchstpersönlich.
Unlimited Fileserver with Samba CTDB and CephFS
[Ceph Day Berlin 2018-11-12]
Robert Sander <r.sander@heinlein-support.de>
SMB client configuration
➞ no special config needed
➞ Important: use RRDNS hostname as fileserver name
➞ /etc/fstab examples:
➞ //fileserver/data /mnt/smb cifs guest,iocharset=utf8,_netdev 0 0
➞ fileserver:/cephfs/nfs /mnt/nfs nfs rw,_netdev 0 0

More Related Content

What's hot

Hdp security overview
Hdp security overview Hdp security overview
Hdp security overview Hortonworks
 
Apache Iceberg - A Table Format for Hige Analytic Datasets
Apache Iceberg - A Table Format for Hige Analytic DatasetsApache Iceberg - A Table Format for Hige Analytic Datasets
Apache Iceberg - A Table Format for Hige Analytic DatasetsAlluxio, Inc.
 
Getting started with Docker
Getting started with DockerGetting started with Docker
Getting started with DockerRavindu Fernando
 
Apache Tez - A New Chapter in Hadoop Data Processing
Apache Tez - A New Chapter in Hadoop Data ProcessingApache Tez - A New Chapter in Hadoop Data Processing
Apache Tez - A New Chapter in Hadoop Data ProcessingDataWorks Summit
 
Compression Options in Hadoop - A Tale of Tradeoffs
Compression Options in Hadoop - A Tale of TradeoffsCompression Options in Hadoop - A Tale of Tradeoffs
Compression Options in Hadoop - A Tale of TradeoffsDataWorks Summit
 
Using HashiCorp’s Terraform to build your infrastructure on AWS - Pop-up Loft...
Using HashiCorp’s Terraform to build your infrastructure on AWS - Pop-up Loft...Using HashiCorp’s Terraform to build your infrastructure on AWS - Pop-up Loft...
Using HashiCorp’s Terraform to build your infrastructure on AWS - Pop-up Loft...Amazon Web Services
 
Apache Iceberg: An Architectural Look Under the Covers
Apache Iceberg: An Architectural Look Under the CoversApache Iceberg: An Architectural Look Under the Covers
Apache Iceberg: An Architectural Look Under the CoversScyllaDB
 
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...Edureka!
 
Optimizing Performance in Rust for Low-Latency Database Drivers
Optimizing Performance in Rust for Low-Latency Database DriversOptimizing Performance in Rust for Low-Latency Database Drivers
Optimizing Performance in Rust for Low-Latency Database DriversScyllaDB
 
Ceph - A distributed storage system
Ceph - A distributed storage systemCeph - A distributed storage system
Ceph - A distributed storage systemItalo Santos
 
[OpenInfra Days Korea 2018] Day 2 - CEPH 운영자를 위한 Object Storage Performance T...
[OpenInfra Days Korea 2018] Day 2 - CEPH 운영자를 위한 Object Storage Performance T...[OpenInfra Days Korea 2018] Day 2 - CEPH 운영자를 위한 Object Storage Performance T...
[OpenInfra Days Korea 2018] Day 2 - CEPH 운영자를 위한 Object Storage Performance T...OpenStack Korea Community
 
Hadoop REST API Security with Apache Knox Gateway
Hadoop REST API Security with Apache Knox GatewayHadoop REST API Security with Apache Knox Gateway
Hadoop REST API Security with Apache Knox GatewayDataWorks Summit
 
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019Storage 101: Rook and Ceph - Open Infrastructure Denver 2019
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019Sean Cohen
 
Introduction to Bigdata and HADOOP
Introduction to Bigdata and HADOOP Introduction to Bigdata and HADOOP
Introduction to Bigdata and HADOOP vinoth kumar
 
HDFS on Kubernetes—Lessons Learned with Kimoon Kim
HDFS on Kubernetes—Lessons Learned with Kimoon KimHDFS on Kubernetes—Lessons Learned with Kimoon Kim
HDFS on Kubernetes—Lessons Learned with Kimoon KimDatabricks
 
Apache Sentry for Hadoop security
Apache Sentry for Hadoop securityApache Sentry for Hadoop security
Apache Sentry for Hadoop securitybigdatagurus_meetup
 

What's hot (20)

Hdp security overview
Hdp security overview Hdp security overview
Hdp security overview
 
Apache Iceberg - A Table Format for Hige Analytic Datasets
Apache Iceberg - A Table Format for Hige Analytic DatasetsApache Iceberg - A Table Format for Hige Analytic Datasets
Apache Iceberg - A Table Format for Hige Analytic Datasets
 
Getting started with Docker
Getting started with DockerGetting started with Docker
Getting started with Docker
 
Apache Tez - A New Chapter in Hadoop Data Processing
Apache Tez - A New Chapter in Hadoop Data ProcessingApache Tez - A New Chapter in Hadoop Data Processing
Apache Tez - A New Chapter in Hadoop Data Processing
 
Compression Options in Hadoop - A Tale of Tradeoffs
Compression Options in Hadoop - A Tale of TradeoffsCompression Options in Hadoop - A Tale of Tradeoffs
Compression Options in Hadoop - A Tale of Tradeoffs
 
Intro to docker
Intro to dockerIntro to docker
Intro to docker
 
Using HashiCorp’s Terraform to build your infrastructure on AWS - Pop-up Loft...
Using HashiCorp’s Terraform to build your infrastructure on AWS - Pop-up Loft...Using HashiCorp’s Terraform to build your infrastructure on AWS - Pop-up Loft...
Using HashiCorp’s Terraform to build your infrastructure on AWS - Pop-up Loft...
 
Apache Iceberg: An Architectural Look Under the Covers
Apache Iceberg: An Architectural Look Under the CoversApache Iceberg: An Architectural Look Under the Covers
Apache Iceberg: An Architectural Look Under the Covers
 
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...
Apache Sqoop Tutorial | Sqoop: Import & Export Data From MySQL To HDFS | Hado...
 
Optimizing Performance in Rust for Low-Latency Database Drivers
Optimizing Performance in Rust for Low-Latency Database DriversOptimizing Performance in Rust for Low-Latency Database Drivers
Optimizing Performance in Rust for Low-Latency Database Drivers
 
Ceph - A distributed storage system
Ceph - A distributed storage systemCeph - A distributed storage system
Ceph - A distributed storage system
 
Saltstack with Zabbix
Saltstack with ZabbixSaltstack with Zabbix
Saltstack with Zabbix
 
Upgrading HDFS to 3.3.0 and deploying RBF in production #LINE_DM
Upgrading HDFS to 3.3.0 and deploying RBF in production #LINE_DMUpgrading HDFS to 3.3.0 and deploying RBF in production #LINE_DM
Upgrading HDFS to 3.3.0 and deploying RBF in production #LINE_DM
 
HDFS Internals
HDFS InternalsHDFS Internals
HDFS Internals
 
[OpenInfra Days Korea 2018] Day 2 - CEPH 운영자를 위한 Object Storage Performance T...
[OpenInfra Days Korea 2018] Day 2 - CEPH 운영자를 위한 Object Storage Performance T...[OpenInfra Days Korea 2018] Day 2 - CEPH 운영자를 위한 Object Storage Performance T...
[OpenInfra Days Korea 2018] Day 2 - CEPH 운영자를 위한 Object Storage Performance T...
 
Hadoop REST API Security with Apache Knox Gateway
Hadoop REST API Security with Apache Knox GatewayHadoop REST API Security with Apache Knox Gateway
Hadoop REST API Security with Apache Knox Gateway
 
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019Storage 101: Rook and Ceph - Open Infrastructure Denver 2019
Storage 101: Rook and Ceph - Open Infrastructure Denver 2019
 
Introduction to Bigdata and HADOOP
Introduction to Bigdata and HADOOP Introduction to Bigdata and HADOOP
Introduction to Bigdata and HADOOP
 
HDFS on Kubernetes—Lessons Learned with Kimoon Kim
HDFS on Kubernetes—Lessons Learned with Kimoon KimHDFS on Kubernetes—Lessons Learned with Kimoon Kim
HDFS on Kubernetes—Lessons Learned with Kimoon Kim
 
Apache Sentry for Hadoop security
Apache Sentry for Hadoop securityApache Sentry for Hadoop security
Apache Sentry for Hadoop security
 

Similar to CEPH DAY BERLIN - UNLIMITED FILESERVER WITH SAMBA CTDB AND CEPHFS

Ceph Day Berlin: Ceph and iSCSI in a high availability setup
Ceph Day Berlin: Ceph and iSCSI in a high availability setupCeph Day Berlin: Ceph and iSCSI in a high availability setup
Ceph Day Berlin: Ceph and iSCSI in a high availability setupCeph Community
 
Ceph Day Berlin: Ceph and iSCSI in a high availability setup
Ceph Day Berlin: Ceph and iSCSI in a high availability setupCeph Day Berlin: Ceph and iSCSI in a high availability setup
Ceph Day Berlin: Ceph and iSCSI in a high availability setupCeph Community
 
Robert Sander: CloudStack and Terraform
Robert Sander: CloudStack and TerraformRobert Sander: CloudStack and Terraform
Robert Sander: CloudStack and TerraformShapeBlue
 
DORS/CLUC How to setup Kolab and Seafile as your personal secure data bank
DORS/CLUC How to setup Kolab and Seafile as your personal secure data bankDORS/CLUC How to setup Kolab and Seafile as your personal secure data bank
DORS/CLUC How to setup Kolab and Seafile as your personal secure data bankhcderaad
 
More on Using Haystack + DASH7 with MQTT
More on Using Haystack + DASH7 with MQTTMore on Using Haystack + DASH7 with MQTT
More on Using Haystack + DASH7 with MQTTHaystack Technologies
 
GlusterFS CTDB Integration
GlusterFS CTDB IntegrationGlusterFS CTDB Integration
GlusterFS CTDB IntegrationEtsuji Nakai
 
IBMHadoopofferingTechline-Systems2015
IBMHadoopofferingTechline-Systems2015IBMHadoopofferingTechline-Systems2015
IBMHadoopofferingTechline-Systems2015Daniela Zuppini
 
TIAD 2016 : Application delivery in a container world
TIAD 2016 : Application delivery in a container worldTIAD 2016 : Application delivery in a container world
TIAD 2016 : Application delivery in a container worldThe Incredible Automation Day
 
Dell Solutions Tour 2015- Dells Storage-strategi - Et hav av muligheter, Clae...
Dell Solutions Tour 2015- Dells Storage-strategi - Et hav av muligheter, Clae...Dell Solutions Tour 2015- Dells Storage-strategi - Et hav av muligheter, Clae...
Dell Solutions Tour 2015- Dells Storage-strategi - Et hav av muligheter, Clae...Kenneth de Brucq
 
Secure and private collaboration - LinuxDays 2015 Kolab and Univention
Secure and private collaboration - LinuxDays 2015 Kolab and UniventionSecure and private collaboration - LinuxDays 2015 Kolab and Univention
Secure and private collaboration - LinuxDays 2015 Kolab and Univentionhcderaad
 
Hadoop Meetup Jan 2019 - Router-Based Federation and Storage Tiering
Hadoop Meetup Jan 2019 - Router-Based Federation and Storage TieringHadoop Meetup Jan 2019 - Router-Based Federation and Storage Tiering
Hadoop Meetup Jan 2019 - Router-Based Federation and Storage TieringErik Krogen
 
Virtual training intro to InfluxDB - June 2021
Virtual training  intro to InfluxDB  - June 2021Virtual training  intro to InfluxDB  - June 2021
Virtual training intro to InfluxDB - June 2021InfluxData
 
Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba serverVeeral Bhateja
 
Designate: An Overview
Designate: An OverviewDesignate: An Overview
Designate: An OverviewGraham Hayes
 
(BDT323) Amazon EBS & Cassandra: 1 Million Writes Per Second
(BDT323) Amazon EBS & Cassandra: 1 Million Writes Per Second(BDT323) Amazon EBS & Cassandra: 1 Million Writes Per Second
(BDT323) Amazon EBS & Cassandra: 1 Million Writes Per SecondAmazon Web Services
 
Getting started with Hadoop, Hive, Spark and Kafka
Getting started with Hadoop, Hive, Spark and KafkaGetting started with Hadoop, Hive, Spark and Kafka
Getting started with Hadoop, Hive, Spark and KafkaEdelweiss Kammermann
 
Fast Insight from Fast Data: Integrating ClickHouse and Apache Kafka
Fast Insight from Fast Data: Integrating ClickHouse and Apache KafkaFast Insight from Fast Data: Integrating ClickHouse and Apache Kafka
Fast Insight from Fast Data: Integrating ClickHouse and Apache KafkaAltinity Ltd
 
Cephfs - Red Hat Openstack and Ceph meetup, Pune 28th november 2015
Cephfs - Red Hat Openstack and Ceph meetup, Pune 28th november 2015Cephfs - Red Hat Openstack and Ceph meetup, Pune 28th november 2015
Cephfs - Red Hat Openstack and Ceph meetup, Pune 28th november 2015bipin kunal
 
Episode 3: Kubernetes and Big Data Services
Episode 3: Kubernetes and Big Data ServicesEpisode 3: Kubernetes and Big Data Services
Episode 3: Kubernetes and Big Data ServicesMesosphere Inc.
 

Similar to CEPH DAY BERLIN - UNLIMITED FILESERVER WITH SAMBA CTDB AND CEPHFS (20)

Ceph Day Berlin: Ceph and iSCSI in a high availability setup
Ceph Day Berlin: Ceph and iSCSI in a high availability setupCeph Day Berlin: Ceph and iSCSI in a high availability setup
Ceph Day Berlin: Ceph and iSCSI in a high availability setup
 
Ceph Day Berlin: Ceph and iSCSI in a high availability setup
Ceph Day Berlin: Ceph and iSCSI in a high availability setupCeph Day Berlin: Ceph and iSCSI in a high availability setup
Ceph Day Berlin: Ceph and iSCSI in a high availability setup
 
Robert Sander: CloudStack and Terraform
Robert Sander: CloudStack and TerraformRobert Sander: CloudStack and Terraform
Robert Sander: CloudStack and Terraform
 
DORS/CLUC How to setup Kolab and Seafile as your personal secure data bank
DORS/CLUC How to setup Kolab and Seafile as your personal secure data bankDORS/CLUC How to setup Kolab and Seafile as your personal secure data bank
DORS/CLUC How to setup Kolab and Seafile as your personal secure data bank
 
More on Using Haystack + DASH7 with MQTT
More on Using Haystack + DASH7 with MQTTMore on Using Haystack + DASH7 with MQTT
More on Using Haystack + DASH7 with MQTT
 
GlusterFS CTDB Integration
GlusterFS CTDB IntegrationGlusterFS CTDB Integration
GlusterFS CTDB Integration
 
IBMHadoopofferingTechline-Systems2015
IBMHadoopofferingTechline-Systems2015IBMHadoopofferingTechline-Systems2015
IBMHadoopofferingTechline-Systems2015
 
TIAD 2016 : Application delivery in a container world
TIAD 2016 : Application delivery in a container worldTIAD 2016 : Application delivery in a container world
TIAD 2016 : Application delivery in a container world
 
Dell Solutions Tour 2015- Dells Storage-strategi - Et hav av muligheter, Clae...
Dell Solutions Tour 2015- Dells Storage-strategi - Et hav av muligheter, Clae...Dell Solutions Tour 2015- Dells Storage-strategi - Et hav av muligheter, Clae...
Dell Solutions Tour 2015- Dells Storage-strategi - Et hav av muligheter, Clae...
 
Secure and private collaboration - LinuxDays 2015 Kolab and Univention
Secure and private collaboration - LinuxDays 2015 Kolab and UniventionSecure and private collaboration - LinuxDays 2015 Kolab and Univention
Secure and private collaboration - LinuxDays 2015 Kolab and Univention
 
Hadoop Meetup Jan 2019 - Router-Based Federation and Storage Tiering
Hadoop Meetup Jan 2019 - Router-Based Federation and Storage TieringHadoop Meetup Jan 2019 - Router-Based Federation and Storage Tiering
Hadoop Meetup Jan 2019 - Router-Based Federation and Storage Tiering
 
Virtual training intro to InfluxDB - June 2021
Virtual training  intro to InfluxDB  - June 2021Virtual training  intro to InfluxDB  - June 2021
Virtual training intro to InfluxDB - June 2021
 
Presentation on samba server
Presentation on samba serverPresentation on samba server
Presentation on samba server
 
Designate: An Overview
Designate: An OverviewDesignate: An Overview
Designate: An Overview
 
(BDT323) Amazon EBS & Cassandra: 1 Million Writes Per Second
(BDT323) Amazon EBS & Cassandra: 1 Million Writes Per Second(BDT323) Amazon EBS & Cassandra: 1 Million Writes Per Second
(BDT323) Amazon EBS & Cassandra: 1 Million Writes Per Second
 
Getting started with Hadoop, Hive, Spark and Kafka
Getting started with Hadoop, Hive, Spark and KafkaGetting started with Hadoop, Hive, Spark and Kafka
Getting started with Hadoop, Hive, Spark and Kafka
 
Fast Insight from Fast Data: Integrating ClickHouse and Apache Kafka
Fast Insight from Fast Data: Integrating ClickHouse and Apache KafkaFast Insight from Fast Data: Integrating ClickHouse and Apache Kafka
Fast Insight from Fast Data: Integrating ClickHouse and Apache Kafka
 
Cephfs - Red Hat Openstack and Ceph meetup, Pune 28th november 2015
Cephfs - Red Hat Openstack and Ceph meetup, Pune 28th november 2015Cephfs - Red Hat Openstack and Ceph meetup, Pune 28th november 2015
Cephfs - Red Hat Openstack and Ceph meetup, Pune 28th november 2015
 
linux
linuxlinux
linux
 
Episode 3: Kubernetes and Big Data Services
Episode 3: Kubernetes and Big Data ServicesEpisode 3: Kubernetes and Big Data Services
Episode 3: Kubernetes and Big Data Services
 

Recently uploaded

JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaRTTS
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesBhaskar Mitra
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...Product School
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Alison B. Lowndes
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupCatarinaPereira64715
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCzechDreamin
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...CzechDreamin
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...Product School
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...Sri Ambati
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...Product School
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Tobias Schneck
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlPeter Udo Diehl
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2DianaGray10
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Product School
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoTAnalytics
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...Elena Simperl
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...Product School
 

Recently uploaded (20)

JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 

CEPH DAY BERLIN - UNLIMITED FILESERVER WITH SAMBA CTDB AND CEPHFS

  • 1. Linux höchstpersönlich. Unlimited Fileserver with Samba CTDB and CephFS [Ceph Day Berlin 2018-11-12] Robert Sander <r.sander@heinlein-support.de> Unlimited Fileserver with Samba CTDB and CephFS
  • 2. Linux höchstpersönlich. Unlimited Fileserver with Samba CTDB and CephFS [Ceph Day Berlin 2018-11-12] Robert Sander <r.sander@heinlein-support.de> Who? Robert Sander ➞ Linux since 1995 ➞ @gurubert Heinlein Support GmbH ➞ 20+ years experience and knowledge around Linux servers and E-Mail ➞ IT Consulting and 24/7 Linux-Support with > 30 employees ➞ Incorporated ISP since 1992 ➞ jpberlin.de & mailbox.org ➞ Daily insights into the IT of small, medium and large businesses
  • 3. Linux höchstpersönlich. Unlimited Fileserver with Samba CTDB and CephFS [Ceph Day Berlin 2018-11-12] Robert Sander <r.sander@heinlein-support.de> Concept ➞ multiple Samba gateways in front of Ceph cluster ➞ CephFS used for data + CTDB sync ➞ Samba config in CTDB "registry" ➞ Only file service covered ➞ not for Samba AD servers ➞ CTDB can also manage NFS kernel service
  • 4. Linux höchstpersönlich. Unlimited Fileserver with Samba CTDB and CephFS [Ceph Day Berlin 2018-11-12] Robert Sander <r.sander@heinlein-support.de> Concept ceph node ceph nodeceph node ceph node SMB/NFS GW SMB/NFS GW SMB/NFS GW SMB/NFS client SMB/NFS client SMB/NFS client SMB/NFS client … …
  • 5. Linux höchstpersönlich. Unlimited Fileserver with Samba CTDB and CephFS [Ceph Day Berlin 2018-11-12] Robert Sander <r.sander@heinlein-support.de> Ceph Setup ➞ A working cluster with CephFS
  • 6. Linux höchstpersönlich. Unlimited Fileserver with Samba CTDB and CephFS [Ceph Day Berlin 2018-11-12] Robert Sander <r.sander@heinlein-support.de> Gateway Setup ➞ CephFS-Clients are SMB/NFS servers ➞ Samba CTDB ➞ Samba smbd ➞ NFS kernel server ➞ CentOS ➞ Debian/Ubuntu issues with /etc/ctdb scripts ➞ https://bugs.launchpad.net/ubuntu/+source/ctdb/+bug/722201
  • 7. Linux höchstpersönlich. Unlimited Fileserver with Samba CTDB and CephFS [Ceph Day Berlin 2018-11-12] Robert Sander <r.sander@heinlein-support.de> CephFS mount ➞ cephx key for cephfs access ➞ caps: [mds] allow rw ➞ caps: [mon] allow r ➞ caps: [osd] allow rw pool=fs ➞ /etc/ceph/ceph.conf ➞ [client] client_acl_type = posix_acl fuse_default_permissions = false client reconnect stale = true ➞ /etc/fstab entry: ➞ id=clientid /cephfs fuse.ceph _netdev 0 0 ➞ with /etc/ceph/ceph.client.clientid.keyring or ➞ mon1:6789,mon2:6789,mon3:6789:/ /cephfs ceph name=clientid,secretfile=/etc/ceph/ ceph.client.clientid.secret
  • 8. Linux höchstpersönlich. Unlimited Fileserver with Samba CTDB and CephFS [Ceph Day Berlin 2018-11-12] Robert Sander <r.sander@heinlein-support.de> CTDB clustered trivial database ➞ provides a TDB that has ➞ consistent data and ➞ consistent locking across all nodes in a cluster. ➞ In case of node failures, CTDB will automatically recover and repair TDBs ➞ provides HA features such as ➞ node monitoring, ➞ node failover and ➞ IP takeover. ➞ flexible with application specific management scripts
  • 9. Linux höchstpersönlich. Unlimited Fileserver with Samba CTDB and CephFS [Ceph Day Berlin 2018-11-12] Robert Sander <r.sander@heinlein-support.de> CTDB configuration ➞ /etc/systemd/system/ctdb.service.d/override.conf ➞ [Unit] After=cephfs.mount RequiresMountsFor=/cephfs ➞ /etc/ctdb/ctdbd.conf ➞ CTDB_RECOVERY_LOCK=/cephfs/ctdb/lock CTDB_NODES=/etc/ctdb/nodes CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses CTDB_MANAGES_SAMBA=yes CTDB_MANAGES_WINBIND=yes # CTDB_MANAGES_NFS=yes CTDB_MAX_OPEN_FILES=65536 CTDB_LOGGING=file:/var/log/log.ctdb
  • 10. Linux höchstpersönlich. Unlimited Fileserver with Samba CTDB and CephFS [Ceph Day Berlin 2018-11-12] Robert Sander <r.sander@heinlein-support.de> ctdb configuration ➞ /etc/ctdb/nodes ➞ list of host IPs ➞ /etc/ctdb/public_addresses ➞ list of service IPs ➞ one for each host ➞ Service IPs in round-robin DNS ➞ fileserver.example.com IN A 10.0.1.11 IN A 10.0.1.12 IN A 10.0.1.13 ➞ SMB clients pick a random IP at mount time ➞ CLI: ctdb status
  • 11. Linux höchstpersönlich. Unlimited Fileserver with Samba CTDB and CephFS [Ceph Day Berlin 2018-11-12] Robert Sander <r.sander@heinlein-support.de> Samba configuration ➞ /etc/samba/smb.conf ➞ [global] clustering = yes include = registry ➞ net conf ➞ net conf addshare ➞ net conf setparm ➞ net conf list ➞ net conf import ➞ share paths on CephFS mount
  • 12. Linux höchstpersönlich. Unlimited Fileserver with Samba CTDB and CephFS [Ceph Day Berlin 2018-11-12] Robert Sander <r.sander@heinlein-support.de> NFS configuration ➞ /etc/exports ➞ /cephfs/nfs *(rw,fsid=1235,async,crossmnt,no_subtree_check) ➞ identical on all gateway hosts, filesystem ID is a small integer != 0 or UUID ➞ /etc/sysconfig/nfs ➞ NFS_HOSTNAME="fileserver" RPCNFSDARGS="-N 4" RPCNFSDCOUNT=32 STATD_PORT=595 STATD_OUTGOING_PORT=596 STATD_HOSTNAME="$NFS_HOSTNAME" STATD_HA_CALLOUT="/etc/ctdb/statd-callout" GSS_USE_PROXY="yes" MOUNTD_PORT=597 RQUOTAD_PORT=598 LOCKD_UDPPORT=599 LOCKD_TCPPORT=599 ➞ same port numbers on every host
  • 13. Linux höchstpersönlich. Unlimited Fileserver with Samba CTDB and CephFS [Ceph Day Berlin 2018-11-12] Robert Sander <r.sander@heinlein-support.de> SMB client configuration ➞ no special config needed ➞ Important: use RRDNS hostname as fileserver name ➞ /etc/fstab examples: ➞ //fileserver/data /mnt/smb cifs guest,iocharset=utf8,_netdev 0 0 ➞ fileserver:/cephfs/nfs /mnt/nfs nfs rw,_netdev 0 0