SlideShare a Scribd company logo
1 of 21
Download to read offline
(c) Michael Schwartzkopff, 2010 1 / 21
Quo vadis Linux-HA?
Developments in Linux
Clustersoftware
Michael Schwartzkopff
misch@schwartzkopff.org
(c) Michael Schwartzkopff, 2010 2 / 21
Background
(c) Michael Schwartzkopff, 2010 3 / 21
Linux Clustersoftware
 Linux Virtual Server
 Scales nicely...
 … but is not high available.
 Linux-HA
 Offers high availability ...
 … but does not scale.
 Code is not maintained any more.
 Is beeing replaced by a collection of other
programs.
(c) Michael Schwartzkopff, 2010 4 / 21
Linux-HA Version 1 (heartbeat)
 Two servers exchange heartbeats.
 If the standby server does not receive
heartbeats from the active node any more it
starts the services.
 Configuration in a plain text file haresources.
 Cons:
 No monitoring of the services.
 No management of the resources.
(c) Michael Schwartzkopff, 2010 5 / 21
Linux-HA Version 2 (CRM)
 Mangement of the resources by a
Cluster Resource Manager (CRM):
 Aktive monitoring of the reosurces by the cluster
software.
 Up to 16 nodes in a cluster.
 Resources free moveable between the nodes.
 Communication in the cluster via heartbeat.
 Constraints determine which resource should run
on what node.
(c) Michael Schwartzkopff, 2010 6 / 21
Constraints in Linux-HAv2
 Order
A resource should start before or after an other
resource.
 Colocation
A resource should run on the same node as an
other resource.
 Location
A resource should run on a node with specific
attributes.
(c) Michael Schwartzkopff, 2010 7 / 21
Features of Linux-HAv2?
 Pros
 Monitoring of the resources.
 Cons
 Configuration in XML.
 Administration via the command line.
 GUI not really usable.
 Not maintained any more after 2007 (version 2.1.4).
(c) Michael Schwartzkopff, 2010 8 / 21
Linux-HA
Managment
Utilities
Communication
Linux-HAv1 Linux-HAv2
heartbeat heartbeat
CRM
(c) Michael Schwartzkopff, 2010 9 / 21
Restart
 If the CRM uses heartbeat only for the
communicaton in the cluster, this could be done
also by another program.
 The other software was OpenAIS.
 The developers organized the CRM code in a
separate project called pacemaker. It uses
either heartbeat or OpenAIS.
 Some utilities from the heartbeat-package
were still nescessary.
(c) Michael Schwartzkopff, 2010 10 / 21
pacemaker
Managment
Utilities
Communication
Linux-HAv1 Linux-HAv2 pacemaker
heartbeat heartbeat
CRM
heart-
beat
pacemaker
OpenAIS
(c) Michael Schwartzkopff, 2010 11 / 21
pacemaker
 Uses heartbeat or OpenAIS.
 Suitable GUI.
 Own subshell additional to the CLI.
 Sanboxes for testing.
 First test what would happen, if ...
→ only afterwards activate the new configuration.
 Exact history, what happened why.
(c) Michael Schwartzkopff, 2010 12 / 21
pacemaker: The GUI
(c) Michael Schwartzkopff, 2010 13 / 21
Sandboxes with graphics!
(c) Michael Schwartzkopff, 2010 14 / 21
The development goes on
 OpenAIS offers much more as needed by
pacemaker. The communication stack is
forked into a separate project called corosync.
 corosync is responsible for the
communication in the cluster.
 OpenAIS takes care for all ”higher” services in
a cluster.
 Simple clusters with pacemaker only need
corosync.
(c) Michael Schwartzkopff, 2010 15 / 21
Decomposition of heartbeat
 With pacemaker 1.0.5, heartbeat is
decomposed into three projects:
 cluster-glue includes all nescessary utilities.
 The resource-agents combines all resource
agents, the interfaces between pacemaker and the
application's binaries.
 In heartbeat (version ≥ 3.0.2) remains, what is
left from the project.
(c) Michael Schwartzkopff, 2010 16 / 21
HA-cluster with Linux
Management
Utilities
Communi-
cation
Linux-HAv1 Linux-HAv2 pacemaker pacemaker ≥ 1.0.5
heartbeat heartbeat
CRM
heart-
beat
pacemaker
OpenAIS
pacemaker
heart-
beat
coro-
sync
cluster-glue
resource-
agents
(c) Michael Schwartzkopff, 2010 17 / 21
Problem: Shared Data
 Many cluster applications need to access
shared data (data bases, ..)
 A locking mechanism, that guarantees
exclusive write access in inevitable.
 Locking included in NFS.
 Concurrent access nescessary?
 Ordinary filesystem or ...
 … or cluster filesystem.
(c) Michael Schwartzkopff, 2010 18 / 21
Filesystems in a cluster
 Cluster filesystems need a distributed locking
mechanism.
 dlm2 offers this serivce.
 dlm2 needs the ”higher” services of OpenAIS.
 With dlm2 cluster filesystems are possible:
 Oracle Cluster Filesystem (OCFS2)
 Red Hats Global Filesystem (GFS)
 Clustering extensions to LVM2 (cLVM)
(c) Michael Schwartzkopff, 2010 19 / 21
Filesystems in a cluster (II)
OpenAISpacemaker
corosynccluster-glue
resource-
agents
OCFS2
DLM2
GFSFilesystems
Distributed Locking
cLVM
Management
Communication /
Utilities
(c) Michael Schwartzkopff, 2010 20 / 21
Roadmap
 Java – based GUI of Linbit.
 Configuration of storage media incl. DRBD.
 Configuration of virtual machines.
 Role model for the administration.
 Distribution of the resources accoring to
nescessary capacities.
 Rewriting of the system health.
(c) Michael Schwartzkopff, 2010 21 / 21
Thank you very much for your attention!
Questions?

More Related Content

What's hot

Real Time Application Interface for Linux
Real Time Application Interface for LinuxReal Time Application Interface for Linux
Real Time Application Interface for LinuxSarah Hussein
 
Hacking+linux+kernel
Hacking+linux+kernelHacking+linux+kernel
Hacking+linux+kernelrobertsong
 
OpenContrail, Real Speed: Offloading vRouter
OpenContrail, Real Speed: Offloading vRouterOpenContrail, Real Speed: Offloading vRouter
OpenContrail, Real Speed: Offloading vRouterOpen-NFP
 
Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...
Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...
Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...Dr. Amarjeet Singh
 
Kuiper Resume 2015
Kuiper Resume 2015Kuiper Resume 2015
Kuiper Resume 2015Ben Kuiper
 

What's hot (7)

Foss Gadgematics
Foss GadgematicsFoss Gadgematics
Foss Gadgematics
 
Real Time Application Interface for Linux
Real Time Application Interface for LinuxReal Time Application Interface for Linux
Real Time Application Interface for Linux
 
Hacking+linux+kernel
Hacking+linux+kernelHacking+linux+kernel
Hacking+linux+kernel
 
Rtai
RtaiRtai
Rtai
 
OpenContrail, Real Speed: Offloading vRouter
OpenContrail, Real Speed: Offloading vRouterOpenContrail, Real Speed: Offloading vRouter
OpenContrail, Real Speed: Offloading vRouter
 
Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...
Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...
Simulation of BRKSS Architecture for Data Warehouse Employing Shared Nothing ...
 
Kuiper Resume 2015
Kuiper Resume 2015Kuiper Resume 2015
Kuiper Resume 2015
 

Similar to OSDC 2010 | Linux-HA: Quo Vadis? by Michael Schwartzkopff

55918644 13221359-heartbeat-tutorial
55918644 13221359-heartbeat-tutorial55918644 13221359-heartbeat-tutorial
55918644 13221359-heartbeat-tutorialJaebum Park
 
Pacemaker+DRBD
Pacemaker+DRBDPacemaker+DRBD
Pacemaker+DRBDDan Frincu
 
LO-PHI: Low-Observable Physical Host Instrumentation for Malware Analysis
LO-PHI: Low-Observable Physical Host Instrumentation for Malware AnalysisLO-PHI: Low-Observable Physical Host Instrumentation for Malware Analysis
LO-PHI: Low-Observable Physical Host Instrumentation for Malware AnalysisPietro De Nicolao
 
Deployment of an HPC Cloud based on Intel hardware
Deployment of an HPC Cloud based on Intel hardwareDeployment of an HPC Cloud based on Intel hardware
Deployment of an HPC Cloud based on Intel hardwareIntel IT Center
 
Network simulator 2 a simulation tool for linux
Network simulator 2 a simulation tool for linuxNetwork simulator 2 a simulation tool for linux
Network simulator 2 a simulation tool for linuxPratik Joshi
 
Cluster management (supercomputer)
Cluster management (supercomputer)Cluster management (supercomputer)
Cluster management (supercomputer)Hary HarysMatta
 
Parallel_and_Cluster_Computing.ppt
Parallel_and_Cluster_Computing.pptParallel_and_Cluster_Computing.ppt
Parallel_and_Cluster_Computing.pptMohmdUmer
 
Linux26 New Features
Linux26 New FeaturesLinux26 New Features
Linux26 New Featuresguest491c69
 
Practical virtual network functions with Snabb (SDN Barcelona VI)
Practical virtual network functions with Snabb (SDN Barcelona VI)Practical virtual network functions with Snabb (SDN Barcelona VI)
Practical virtual network functions with Snabb (SDN Barcelona VI)Igalia
 
Linux Introduction
Linux IntroductionLinux Introduction
Linux IntroductionRamasubbu .P
 
LibOS as a regression test framework for Linux networking #netdev1.1
LibOS as a regression test framework for Linux networking #netdev1.1LibOS as a regression test framework for Linux networking #netdev1.1
LibOS as a regression test framework for Linux networking #netdev1.1Hajime Tazaki
 
Teoria efectului defectului hardware: GoogleFS
Teoria efectului defectului hardware: GoogleFSTeoria efectului defectului hardware: GoogleFS
Teoria efectului defectului hardware: GoogleFSAsociatia ProLinux
 
Kernel maintainance in Linux distributions: Debian
Kernel maintainance in Linux distributions: DebianKernel maintainance in Linux distributions: Debian
Kernel maintainance in Linux distributions: DebianAnne Nicolas
 
2008-09-09 IBM Interaction Conference, Red Hat Update for System z
2008-09-09 IBM Interaction Conference, Red Hat Update for System z2008-09-09 IBM Interaction Conference, Red Hat Update for System z
2008-09-09 IBM Interaction Conference, Red Hat Update for System zShawn Wells
 

Similar to OSDC 2010 | Linux-HA: Quo Vadis? by Michael Schwartzkopff (20)

55918644 13221359-heartbeat-tutorial
55918644 13221359-heartbeat-tutorial55918644 13221359-heartbeat-tutorial
55918644 13221359-heartbeat-tutorial
 
test
testtest
test
 
HeartBeat
HeartBeatHeartBeat
HeartBeat
 
Pacemaker+DRBD
Pacemaker+DRBDPacemaker+DRBD
Pacemaker+DRBD
 
LO-PHI: Low-Observable Physical Host Instrumentation for Malware Analysis
LO-PHI: Low-Observable Physical Host Instrumentation for Malware AnalysisLO-PHI: Low-Observable Physical Host Instrumentation for Malware Analysis
LO-PHI: Low-Observable Physical Host Instrumentation for Malware Analysis
 
Deployment of an HPC Cloud based on Intel hardware
Deployment of an HPC Cloud based on Intel hardwareDeployment of an HPC Cloud based on Intel hardware
Deployment of an HPC Cloud based on Intel hardware
 
Network simulator 2 a simulation tool for linux
Network simulator 2 a simulation tool for linuxNetwork simulator 2 a simulation tool for linux
Network simulator 2 a simulation tool for linux
 
Cluster management (supercomputer)
Cluster management (supercomputer)Cluster management (supercomputer)
Cluster management (supercomputer)
 
Linux internals v4
Linux internals v4Linux internals v4
Linux internals v4
 
HIGH AVAILABLE CLUSTER IN WEB SERVER WITH HEARTBEAT + DRBD + OCFS2
HIGH AVAILABLE CLUSTER IN WEB SERVER WITH  HEARTBEAT + DRBD + OCFS2HIGH AVAILABLE CLUSTER IN WEB SERVER WITH  HEARTBEAT + DRBD + OCFS2
HIGH AVAILABLE CLUSTER IN WEB SERVER WITH HEARTBEAT + DRBD + OCFS2
 
Parallel_and_Cluster_Computing.ppt
Parallel_and_Cluster_Computing.pptParallel_and_Cluster_Computing.ppt
Parallel_and_Cluster_Computing.ppt
 
Linux26 New Features
Linux26 New FeaturesLinux26 New Features
Linux26 New Features
 
Practical virtual network functions with Snabb (SDN Barcelona VI)
Practical virtual network functions with Snabb (SDN Barcelona VI)Practical virtual network functions with Snabb (SDN Barcelona VI)
Practical virtual network functions with Snabb (SDN Barcelona VI)
 
Linux Introduction
Linux IntroductionLinux Introduction
Linux Introduction
 
LibOS as a regression test framework for Linux networking #netdev1.1
LibOS as a regression test framework for Linux networking #netdev1.1LibOS as a regression test framework for Linux networking #netdev1.1
LibOS as a regression test framework for Linux networking #netdev1.1
 
Cluster computer
Cluster  computerCluster  computer
Cluster computer
 
Teoria efectului defectului hardware: GoogleFS
Teoria efectului defectului hardware: GoogleFSTeoria efectului defectului hardware: GoogleFS
Teoria efectului defectului hardware: GoogleFS
 
Kernel maintainance in Linux distributions: Debian
Kernel maintainance in Linux distributions: DebianKernel maintainance in Linux distributions: Debian
Kernel maintainance in Linux distributions: Debian
 
Rhce ppt
Rhce pptRhce ppt
Rhce ppt
 
2008-09-09 IBM Interaction Conference, Red Hat Update for System z
2008-09-09 IBM Interaction Conference, Red Hat Update for System z2008-09-09 IBM Interaction Conference, Red Hat Update for System z
2008-09-09 IBM Interaction Conference, Red Hat Update for System z
 

Recently uploaded

Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?Watsoo Telematics
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...kellynguyen01
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsMehedi Hasan Shohan
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio, Inc.
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningVitsRangannavar
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 

Recently uploaded (20)

Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?What are the features of Vehicle Tracking System?
What are the features of Vehicle Tracking System?
 
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
Short Story: Unveiling the Reasoning Abilities of Large Language Models by Ke...
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software SolutionsXpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed DataAlluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
Alluxio Monthly Webinar | Cloud-Native Model Training on Distributed Data
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
cybersecurity notes for mca students for learning
cybersecurity notes for mca students for learningcybersecurity notes for mca students for learning
cybersecurity notes for mca students for learning
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 

OSDC 2010 | Linux-HA: Quo Vadis? by Michael Schwartzkopff

  • 1. (c) Michael Schwartzkopff, 2010 1 / 21 Quo vadis Linux-HA? Developments in Linux Clustersoftware Michael Schwartzkopff misch@schwartzkopff.org
  • 2. (c) Michael Schwartzkopff, 2010 2 / 21 Background
  • 3. (c) Michael Schwartzkopff, 2010 3 / 21 Linux Clustersoftware  Linux Virtual Server  Scales nicely...  … but is not high available.  Linux-HA  Offers high availability ...  … but does not scale.  Code is not maintained any more.  Is beeing replaced by a collection of other programs.
  • 4. (c) Michael Schwartzkopff, 2010 4 / 21 Linux-HA Version 1 (heartbeat)  Two servers exchange heartbeats.  If the standby server does not receive heartbeats from the active node any more it starts the services.  Configuration in a plain text file haresources.  Cons:  No monitoring of the services.  No management of the resources.
  • 5. (c) Michael Schwartzkopff, 2010 5 / 21 Linux-HA Version 2 (CRM)  Mangement of the resources by a Cluster Resource Manager (CRM):  Aktive monitoring of the reosurces by the cluster software.  Up to 16 nodes in a cluster.  Resources free moveable between the nodes.  Communication in the cluster via heartbeat.  Constraints determine which resource should run on what node.
  • 6. (c) Michael Schwartzkopff, 2010 6 / 21 Constraints in Linux-HAv2  Order A resource should start before or after an other resource.  Colocation A resource should run on the same node as an other resource.  Location A resource should run on a node with specific attributes.
  • 7. (c) Michael Schwartzkopff, 2010 7 / 21 Features of Linux-HAv2?  Pros  Monitoring of the resources.  Cons  Configuration in XML.  Administration via the command line.  GUI not really usable.  Not maintained any more after 2007 (version 2.1.4).
  • 8. (c) Michael Schwartzkopff, 2010 8 / 21 Linux-HA Managment Utilities Communication Linux-HAv1 Linux-HAv2 heartbeat heartbeat CRM
  • 9. (c) Michael Schwartzkopff, 2010 9 / 21 Restart  If the CRM uses heartbeat only for the communicaton in the cluster, this could be done also by another program.  The other software was OpenAIS.  The developers organized the CRM code in a separate project called pacemaker. It uses either heartbeat or OpenAIS.  Some utilities from the heartbeat-package were still nescessary.
  • 10. (c) Michael Schwartzkopff, 2010 10 / 21 pacemaker Managment Utilities Communication Linux-HAv1 Linux-HAv2 pacemaker heartbeat heartbeat CRM heart- beat pacemaker OpenAIS
  • 11. (c) Michael Schwartzkopff, 2010 11 / 21 pacemaker  Uses heartbeat or OpenAIS.  Suitable GUI.  Own subshell additional to the CLI.  Sanboxes for testing.  First test what would happen, if ... → only afterwards activate the new configuration.  Exact history, what happened why.
  • 12. (c) Michael Schwartzkopff, 2010 12 / 21 pacemaker: The GUI
  • 13. (c) Michael Schwartzkopff, 2010 13 / 21 Sandboxes with graphics!
  • 14. (c) Michael Schwartzkopff, 2010 14 / 21 The development goes on  OpenAIS offers much more as needed by pacemaker. The communication stack is forked into a separate project called corosync.  corosync is responsible for the communication in the cluster.  OpenAIS takes care for all ”higher” services in a cluster.  Simple clusters with pacemaker only need corosync.
  • 15. (c) Michael Schwartzkopff, 2010 15 / 21 Decomposition of heartbeat  With pacemaker 1.0.5, heartbeat is decomposed into three projects:  cluster-glue includes all nescessary utilities.  The resource-agents combines all resource agents, the interfaces between pacemaker and the application's binaries.  In heartbeat (version ≥ 3.0.2) remains, what is left from the project.
  • 16. (c) Michael Schwartzkopff, 2010 16 / 21 HA-cluster with Linux Management Utilities Communi- cation Linux-HAv1 Linux-HAv2 pacemaker pacemaker ≥ 1.0.5 heartbeat heartbeat CRM heart- beat pacemaker OpenAIS pacemaker heart- beat coro- sync cluster-glue resource- agents
  • 17. (c) Michael Schwartzkopff, 2010 17 / 21 Problem: Shared Data  Many cluster applications need to access shared data (data bases, ..)  A locking mechanism, that guarantees exclusive write access in inevitable.  Locking included in NFS.  Concurrent access nescessary?  Ordinary filesystem or ...  … or cluster filesystem.
  • 18. (c) Michael Schwartzkopff, 2010 18 / 21 Filesystems in a cluster  Cluster filesystems need a distributed locking mechanism.  dlm2 offers this serivce.  dlm2 needs the ”higher” services of OpenAIS.  With dlm2 cluster filesystems are possible:  Oracle Cluster Filesystem (OCFS2)  Red Hats Global Filesystem (GFS)  Clustering extensions to LVM2 (cLVM)
  • 19. (c) Michael Schwartzkopff, 2010 19 / 21 Filesystems in a cluster (II) OpenAISpacemaker corosynccluster-glue resource- agents OCFS2 DLM2 GFSFilesystems Distributed Locking cLVM Management Communication / Utilities
  • 20. (c) Michael Schwartzkopff, 2010 20 / 21 Roadmap  Java – based GUI of Linbit.  Configuration of storage media incl. DRBD.  Configuration of virtual machines.  Role model for the administration.  Distribution of the resources accoring to nescessary capacities.  Rewriting of the system health.
  • 21. (c) Michael Schwartzkopff, 2010 21 / 21 Thank you very much for your attention! Questions?