Top Banner
Linux Cluster Administration RHEL 5 1 Linux Clustering Document www.expertslogin.com
31

Linux Cluster Concepts

May 07, 2015

Download

Technology

nixsavy

Linux Cluster Concepts And Administration on Redhat
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Linux Cluster Concepts

Linux ClusterAdministration

RHEL 5

1Linux Clustering Document www.expertslogin.com

Page 2: Linux Cluster Concepts

2Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Cluster BasicsWhat is cluster

Cluster typesStorageHigh AvailabilityLoad balancingHigh performance

Page 3: Linux Cluster Concepts

3Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Storage ClustersProvide consistent file system image across nodes

Simplify storage administration

Simplify backup & disaster recovery

RHCS provides storage clustering through Red Hat GFS

Page 4: Linux Cluster Concepts

4Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

High Availability ClustersProvide continuous availability of services

Maintain data integrity

Node failures in a high-availability cluster are not vis-ible from outside the cluster

RHCS provides high-availability clusteringthrough its High availability ServiceManagement component

Page 5: Linux Cluster Concepts

5Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Load balancing clustersDispatch network service requests to multiple cluster nodes

Provide cost-effective scalability

Failures in a load-balancing cluster are notvisible from outside the cluster

RHCS provides load-balancing through LVS

Page 6: Linux Cluster Concepts

6Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Performance ClustersUse cluster nodes to perform concurrentcalculations

Allow applications to work in parallel

Referred to as computational clusters or gridcomputing

Page 7: Linux Cluster Concepts

7Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Red Hat Cluster SuiteRHCS

RHCS major components:

RHCS optional components

Cluster infrastructureHA Service ManagementCluster Administration toolsLinux Virtual Server ( LVS)

Global File System (GFS)Cluster Logical Volume Manager (CLVM)Global Network Block Device (GNBD)

Page 8: Linux Cluster Concepts

8Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Red Hat Cluster SuiteRHCS

Page 9: Linux Cluster Concepts

9Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Cluster Management

Lock Management

Fencing

Cluster Configuration Management

Cluster Infrastructure

Page 10: Linux Cluster Concepts

10Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Cluster Infrastructure Cluster Management(CMAN)

Distributed across all nodes

CMAN track cluster quorum Prevents split-brain

CMAN tracks membership

Page 11: Linux Cluster Concepts

11Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Service provides mechanism for other cluster components to synchronize their access to shared resources

Distributed Lock Manager (DLM)

GFS & CLVM use locks from DLM

Cluster Infrastructure Cluster Management(CMAN)

Cluster InfrastructureLock Management

Page 12: Linux Cluster Concepts

12Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Cluster Infrastructure Fencing

Disconnection of a node from the cluster’s shared storage fenced daemon performs fencing

DLM & GFS recover after fenced

Fencing methods

Page 13: Linux Cluster Concepts

13Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Fencing methods:

SCSI3 Persistent Reservation Fencing

Fiber Channel switch fencing

GNBD fencing

Cluster Infrastructure Fencing

Power fencingExternalIntegrated

Page 14: Linux Cluster Concepts

14Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Cluster Infrastructure Cluster ConfigurationSystem (CCS)

CCS manage cluster configuration

CCS provide information to other clustercomponents

CCS ensures configuration file is up-to-datein all nodes

Page 15: Linux Cluster Concepts

15Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Configuration file /etc/cluster/cluster.conf

Cluster characteristics

Cluster Infrastructure Cluster ConfigurationSystem (CCS)

Cluster nameClusterFence DeviceManaged Resources

Page 16: Linux Cluster Concepts

16Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

HA Service ManagementCreate & manage HA cluster services

rgmanager implements cold failover

HA service must be configured in cluster.conf

Associate service to failover domain

Failover priority in a failover domain

Page 17: Linux Cluster Concepts

17Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Failover Domains

Page 18: Linux Cluster Concepts

18Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Failover DomainsFailover characteristics

UnrestrictedRestrictedUnorderedOrderedFailback

Page 19: Linux Cluster Concepts

19Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

GFS/GFS2 is a native file system

GFS/GFS2 provides data sharing among nodes with single, consistent view of the file system name space

GFS/GFS2 file system must be created on an LVM logical volume (linear or mirror)

Red Hat Global File System

Page 20: Linux Cluster Concepts

20Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Cluster Logical Volume(CLVM)

CLVM provides the same capabilities as LVM2 on a single node

CLVM makes volume available to all nodes

clvmd daemon provides clustering exten-sionsto LVM2

Page 21: Linux Cluster Concepts

21Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Provides block-device access to GFS overTCP/IP Useful when FC or single initiator SCSI are not necessary or are cost prohibitive

GNBD client , GNBD server

Global Network Block Device (GNBD)

Page 22: Linux Cluster Concepts

22Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Global Network BlockDevice (GNBD)

Page 23: Linux Cluster Concepts

23Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Set of integrated s/w for load balancing

Runs on equally configured computers

LVS roles:

Linux Virtual Server (LVS)

Active LVS routerBackup LVS router

Load balancingIntegrity of services check

Page 24: Linux Cluster Concepts

24Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Linux Virtual Server (LVS)

Page 25: Linux Cluster Concepts

25Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Two tiers : LVS routers & real servers

Active LVS router uses NAT to direct frompublic network to real servers

Service requests arrive to LVS to a virtual IP (VIP)

Only one LVS is active at a time

LVS distributes requests based on loadbalancing algorithms

Linux Virtual Server (LVS)

Page 26: Linux Cluster Concepts

26Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Linux Virtual Server (LVS)

Load-balancing algorithms:

Round-Robin SchedulingWeighted Round-Robin SchedulingLeast-ConnectionWeighted Least-Connections (default)

Page 27: Linux Cluster Concepts

NAT RoutingDirect Routing

27Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Routing Methods:

Linux Virtual Server (LVS)

Page 28: Linux Cluster Concepts

28Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Cluster Administration tools

Conga

Cluster Administration GUI

Command line administration tools

Page 29: Linux Cluster Concepts

29Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

s/w provides centralized configuration &management

Conga primary components

luci server runs on one computer & commu-nicates with multiple clusters & computers via ricci

ricci agent that runs on each computer

Cluster Administration toolsConga

luciricci

Page 30: Linux Cluster Concepts

30Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

System-config-cluster

Cluster status tool

Cluster Administration GUI

Page 31: Linux Cluster Concepts

- ccs_tool → cluster configuration- cman_tool → cluster management- fence_tool → fence tool- clustat → cluster status- clusvcadm → cluster user service administration

31Linux Clustering Document www.expertslogin.com

Linux Cluster Concepts And Administration on RHEL 5

Command Line Administration Tools

Cluster Administration tools