CentOS Cluster Server. Ryan Matteson matty91@gmail.com http://prefetch.net



Similar documents
Linux Cluster. Administration

Configuring and Managing a Red Hat Cluster. Red Hat Cluster for Red Hat Enterprise Linux 5

Red Hat Cluster Suite for Red Hat Enterprise Linux 5.2

This document may be freely distributed provided that it is not modified and that full credit is given to the original author.

Red Hat Cluster Suite Overview. Red Hat Cluster Suite for Red Hat Enterprise Linux 5

Parallels Virtuozzo Containers 4.7 for Linux

PostgreSQL Clustering with Red Hat Cluster Suite

Red Hat Cluster Suite

Parallels. Clustering in Virtuozzo-Based Systems

InterWorx Clustering Guide. by InterWorx LLC

Linux High Availability

Apache Tomcat Clustering

Apache Tomcat. Tomcat Clustering: Part 2 Load balancing. Mark Thomas, 15 April Pivotal Software, Inc. All rights reserved.

Red Hat Global File System for scale-out web services

How to Create a Virtual Switch in VMware ESXi

Planning and Administering Windows Server 2008 Servers

vrealize Business System Requirements Guide

An Introduction To Gluster. Ryan Matteson

Installation Guide. Step-by-Step Guide for clustering Hyper-V virtual machines with Sanbolic s Kayo FS. Table of Contents

HA for Enterprise Clouds: Oracle Solaris Cluster & OpenStack

Red Hat Enterprise Linux 6 Cluster Suite Overview. Overview of the High Availability Add- On for Red Hat Enterprise Linux 6

Setup for Failover Clustering and Microsoft Cluster Service

Storage and High Availability with Windows Server

Cluster Configuration Manual Cluster configuration on Database Servers

Tushar Joshi Turtle Networks Ltd

Configuring a Microsoft Windows Server 2012/R2 Failover Cluster with Storage Center

Enterprise Linux Business Continuity Solutions for Critical Applications

Invest in your business with Ubuntu Advantage.

M6430a Planning and Administering Windows Server 2008 Servers

Red Hat Enterprise Linux as a

Managing and Maintaining Windows Server 2008 Servers (6430) Course length: 5 days

Clustering in Parallels Virtuozzo-Based Systems

Implementing and Managing Windows Server 2008 Clustering

Setup for Failover Clustering and Microsoft Cluster Service

vsphere Installation and Setup

INUVIKA TECHNICAL GUIDE

Windows Server Failover Clustering April 2010

ATUL TRIPATHI. Address: A-71 Pandav Nagar, New Delhi. atul.trp@gmail.com Mobile :

Dell Compellent Storage Center

istorage Server: High Availability iscsi SAN for Windows Server 2012 Cluster

DocuShare 4, 5, and 6 in a Clustered Environment

Cisco Active Network Abstraction Gateway High Availability Solution

10971: Storage and High Availability with Windows Server

Upgrade to Webtrends Analytics 8.7: Best Practices

Virtualization Technologies and Blackboard: The Future of Blackboard Software on Multi-Core Technologies

High Availability Low Dollar Clustered Storage

Diploma in Computer Science

How To Make An Org Database Available On Linux

How to Install the VMware ESXi Hypervisor on Physical Hardware

Planning and Administering Windows Server 2008 Servers

Unlimited Server 24/7/365 Support

SUSE Linux Enterprise High Availability Extension. Piotr Szewczuk konsultant

RED HAT ENTERPRISE VIRTUALIZATION FOR SERVERS: COMPETITIVE FEATURES

Overview... 1 Requirements Installing Roles and Features Creating SQL Server Database... 9 Setting Security Logins...

Setup for Failover Clustering and Microsoft Cluster Service

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

Windows Server 2012 R2 Hyper-V: Designing for the Real World

Configuration of a Load-Balanced and Fail-Over Merak Cluster using Windows Server 2003 Network Load Balancing

Active/Active HA Clustering on Shared Storage with Samba

Setup for Failover Clustering and Microsoft Cluster Service

Restricted Document. Pulsant Technical Specification

WINDOWS SERVER MONITORING

Storage and High Availability with Windows Server 10971B; 4 Days, Instructor-led

Managed Servers ASA Extract FY14

Using EonStor FC-host Storage Systems in VMware Infrastructure 3 and vsphere 4

TUT8155 Best Practices: Linux High Availability with VMware Virtual Machines

Setup for Failover Clustering and Microsoft Cluster Service

Installation Manual for Grid Monitoring Tool

Bosch Video Management System High Availability with Hyper-V

vsphere Installation and Setup

Red Hat Network Satellite High Availability Guide By Wayman Smith, Red Hat Consultant

Planning and Administering Windows Server 2008 Servers

QNAP in vsphere Environment

High Availability & Disaster Recovery Development Project. Concepts, Design and Implementation

1Z Oracle Weblogic Server 11g: System Administration I. Version: Demo. Page <<1/7>>

HP Serviceguard Cluster Configuration for Partitioned Systems

Implementing the SUSE Linux Enterprise High Availability Extension on System z

Table of Contents Introduction and System Requirements 9 Installing VMware Server 35

openmosix Live free() or die() A short intro to HPC Kris Buytaert buytaert@stone-it.be First Prev Next Last Go Back Full Screen Close Quit

Course Syllabus. Planning and Administering Windows Server 2008 Servers. Key Data. Audience. At Course Completion. Prerequisites. Recommended Courses

California Department of Technology, Office of Technology Services AIX/LINUX PLATFORM GUIDELINE Issued: 6/27/2013 Tech.Ref No

Storage and High Availability with Windows Server

Delivering High Availability Solutions with Red Hat Cluster Suite

How to Add and Remove Virtual Hardware to a VMware ESXi Virtual Machine

High Availability of the Polarion Server

Deploying Exchange Server 2007 SP1 on Windows Server 2008

How to configure Failover Clustering for Hyper-V hosts on HP ProLiant c-class server blades with All-in-One SB600c storage blade

Deployment Topologies

The Red Hat Cluster Suite NFS Cookbook

HC INSTALLATION GUIDE. For Linux. Hosting Controller All Rights Reserved.

SingleServerSafe Product Introduction

Virtualizare sub Linux: avantaje si pericole. Dragos Manac

Transcription:

CentOS Cluster Server Ryan Matteson matty91@gmail.com http://prefetch.net

Presentation overview Tonight I am going to give an overview of CentOS cluster server, and describe what is needed to build a basic HA cluster This presentation assumes a basic understanding of network and clustering technology, so make sure to ask questions if you aren t sure about something

What is CentOS cluster server? CentOS cluster server is a suite of packages that can be used to deploy highly available services on CentOS Linux-based servers Based on Redhat cluster server Provides three main features: Cluster management and service failover Network load-balancing (LVS) Global read-write file system (GFS)

What is required to run a cluster? Two or more servers that are on the HCL Two or more bonded NICs to send cluster heartbeat messages over (this is optional, but highly recommended!) Two or more bonded NICs dedicated to public network traffic Supported fencing solution Shared storage

What does a cluster consist of? An HA cluster typically consists of the following items: Two or more nodes One or more fence devices Shared storage Public and private network interfaces One or more resources One or more services Quorum devices Failover Domains

Quorum devices Quorum is used to ensure that a majority of nodes are available in the cluster Needed to avoid split-brain conditions Works by assigning one or more votes to each server and quorum device in the cluster To ensure quorum, a cluster needs to have 51% of the available votes to form or continue running an operational cluster SCSI disks that support SPR are the most common type of quorum device

Fencing devices Fencing devices provide a way for the cluster to remove an unresponsive node from the cluster Nodes are typically fenced when they are unresponsive, and fencing is done to prevent split brain configurations Several supported ways to fence nodes: IPMI Power Fencing SAN fencing VMWare virtual center fencing Vendor specific methods (HP ILO, Dell DRAC, etc.)

Cluster resources Cluster resources provide the basic unit of configuration in a cluster Several types of resources exist by default: Apache GFS MySQL Oracle Samba NFS Tomcat Virtual machines

Cluster services Services are collections of resources that serve a specific purpose An example of this would be an HA MySQL service that contains three resources: An IP address resource that is tied to the MySQL database instance File system resources that contain the data and indexes needed by the database A MySQL resource that starts, stops and verifies that mysql is running

Failover domains Failover domains allow you to define where services should go when a service faults and is migrated to another node Each failover domain can have a unique list of nodes, and each node can be assigned a priority to tell the cluster it is a better candidate to run the service

How do I install CCS? Verify your hardware meets the hardware guidelines in the CCS manuals Install CentOS on each node Install the clustering software on each node Create the cluster Add fence devices Add quorum devices if needed Create resources, services and failover domains Test, test and test some more!!

Installing the cluster software To install CentOS cluster server you can run yum groupinstall on each node in the cluster: $ yum groupinstall "Cluster Storage" "Clustering If the software isn t already installed on a node, the cluster will install the required packages when you add the node to the cluster

Creating a cluster You can create the cluster in one of three ways Create the cluster configuration by hand Run system-config-cluster Use the conga web interface Once the cluster has been created, you can add fence devices, resources, services and failover domains using one of the methods listed above

Cluster configuration The cluster configuration is stored in /etc/ cluster/cluster.xml on each node Each tag in the cluster.xml file contains a configuration entity, such as the name of a node in the cluster, the fence device to use for each node, and a list of resources, services and failover domains

Example cluster.xml

Cluster utilities There are a number of utilities that can be used to manage a cluster: clustat displays cluster status clusvcadm controls cluster services ccs_tool manages the cluster configuration cman_tool manages the cluster members fence_tool manages fencing operations mkqdisk manages quorum disks

Cluster processes There are a number of critical processes that make up the cluster suite: - cman controls overall cluster operation - fenced manages fencing operations - clurgmgrd controls services - various kernel threads (visible in ps) - Application processes (e.g., httpd) - Several more not mentioned here

Debugging cluster problems If your cluster is acting up, you will want to review the logging data in /var/log/* to see what is going on Debug stanzas can be added to each cluster facility to get additional debugging data: <logger debug="on" ident= CMAN to_stderr="yes"/> The Redhat bugzilla archives are a great resource for finding solutions to problems, and for troubleshooting sporadic issues

Conclusion CentOS cluster server has a number of cool features, and won t cost you a dime to deploy (you don t get support though) If you decide to use CCS, make SURE you have approved hardware and fencing devices. If you don t, you are asking for trouble (and data loss!)!

Questions?

References Redhat cluster suite overview: http://www.redhat.com/docs/manuals/csgfs/ Configuring and managing a RHEL cluster: http://www.redhat.com/docs/manuals/csgfs/ Quorum devices http://magazine.redhat.com/2007/12/19/enhancingcluster-quorum-with-qdisk/