CentOS High Availability

CentOS High Availability

Mitja Resman

Language: English

Pages: 175

ISBN: 1785282484

Format: PDF / Kindle (mobi) / ePub


The high performance and stability of CentOS Linux are the key factors that make CentOS Linux the right Linux distribution to build high availability solutions on. This book introduces you to high availability before briefly walking you through the cluster stack and its layers. The book is then divided into two parts, part A and part B, based on CentOS versions 6 and 7 respectively. Each part begins with the installation and configuration of the Corosync cluster messaging software with CMAN or with the Pacemaker cluster resource management software.

You will also be introduced to cluster service configuration and cluster service management before you configure fencing or STONITH on CentOS 6 and CentOS 7. By the end of this book, you will have the skills required to independently design, implement, and maintain a CentOS high availability multinode cluster environment.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

file and changing the HOSTNAME line to the FQDN of your cluster node. In the following screenshot, you can see the FQDN configuration of the node-1 cluster node: [root@node-1 ~]# cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=node-1.geekpeek.net Note that a cluster node reboot is required for hostname changes to take effect. [ 27 ] Cluster Stack Software on CentOS 6 Edit the /etc/hosts file and add the IP address, followed by an FQDN and a short cluster node name, for every available

Service Name: This column defines the name of the service as configured in the CMAN configuration file. • Owner: This column lists the node the service is running on or was last running on. • State: This column provides information about the status of the service. [ 49 ] Resource Manager on CentOS 6 Managing cluster services Once you have configured the cluster services as you like, you must learn how to manage them. We can manage cluster services with the clusvcadm command and additional

this chapter, you learned what fencing is all about. You learned about the fence devices you can use and how they must be configured. Since a fencing mechanism is an important cluster task that needs to be tested thoroughly, you were also provided with information on how to test your fencing configuration and manually fence a cluster node for testing purposes. In the next chapter, you will see how to run cluster failover tests for different scenarios. [ 75 ] Testing Failover on CentOS 6 In

resource is as follows: pcs resource create [ 105 ] Resource Manager on CentOS 7 The resource_name parameter is a unique cluster resource name. The resource_type parameter is the full name of the resource with resource class and resource ID. The resource_options parameter contains available options to be used with the resource. The following command provides more information on resource creation: pcs resource create --help There are six

clusters: • Load balancing computer clusters • High-availability computer clusters Load balancing computer clusters are used to provide better and higher performance of services, and are typically used in science for complex scientific measurements and calculations. Interestingly, the same clusters are also used for websites and web servers facing extremely high load, which helps improve the overall response of the website with load distribution to different cluster nodes. High-availability

Download sample

Download