Cluster Administration
Total Page:16
File Type:pdf, Size:1020Kb
Red Hat Enterprise Linux 5 Cluster Administration Configuring and Managing a Red Hat Cluster Edition 5 Red Hat Enterprise Linux 5 Cluster Administration Configuring and Managing a Red Hat Cluster Edition 5 Legal Notice Copyright © 2014 Red Hat Inc.. This document is licensed by Red Hat under the Creative Commons Attribution-ShareAlike 3.0 Unported License. If you distribute this document, or a modified version of it, you must provide attribution to Red Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be removed. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js ® is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. All other trademarks are the property of their respective owners. Abstract Configuring and Managing a Red Hat Cluster describes the configuration and management of Red Hat cluster systems for Red Hat Enterprise Linux 5. It does not include information about Red Hat Linux Virtual Servers (LVS). Information about installing and configuring LVS is in a separate document. Table of Contents Table of Contents .I n. t.r o. .d .u .c .t i.o .n . .3 . 1. Feedback 3 .C .h .a .p . t.e .r .1 .. .R . e. d. .H . a. t. C. l.u . s. t.e .r .C . o. n. f.i g. .u .r a. t.i o. .n . a. n. d. .M . a. n. .a .g .e .m . e. n. t. O. .v .e .r .v .i e. w. .5 . 1.1. Configuration Basics 5 1.2. Conga 8 1.3. system-config-cluster Cluster Administration GUI 11 1.4. Command Line Administration Tools 14 .C .h .a .p . t.e .r .2 .. .B . e. f.o .r .e . C. o. n. .f i.g .u .r .i n. g. .a . R. .e .d . H. a. t. .C .l u. s. t. e. r. .1 .6 . 2.1. General Configuration Considerations 16 2.2. Compatible Hardware 17 2.3. Enabling IP Ports 17 2.4. Configuring ACPI For Use with Integrated Fence Devices 19 2.5. Considerations for Configuring HA Services 23 2.6. Configuring max_luns 26 2.7. Considerations for Using Quorum Disk 26 2.8. Red Hat Cluster Suite and SELinux 27 2.9. Multicast Addresses 27 2.10. Configuring the iptables Firewall to Allow Cluster Components 28 2.11. Considerations for Using Conga 29 2.12. Configuring Virtual Machines in a Clustered Environment 29 .C .h .a .p . t.e .r .3 .. .C . o. n. f.i g. .u .r i.n .g . .R .e .d . H. .a .t .C . l.u .s .t e. r. .W . i.t h. .C . o. n. g. .a . .3 .0 . 3.1. Configuration Tasks 30 3.2. Starting luci and ricci 30 3.3. Creating A Cluster 31 3.4. Global Cluster Properties 32 3.5. Configuring Fence Devices 35 3.6. Configuring Cluster Members 37 3.7. Configuring a Failover Domain 40 3.8. Adding Cluster Resources 43 3.9. Adding a Cluster Service to the Cluster 43 3.10. Configuring Cluster Storage 45 .C .h .a .p . t.e .r .4 .. .M . a. n. a. g. .i n. g. .R . e. d. .H .a .t . C. l.u .s .t .e .r .W . i.t .h . C. o. .n .g .a . .4 .7 . 4.1. Starting, Stopping, and Deleting Clusters 47 4.2. Managing Cluster Nodes 48 4.3. Managing High-Availability Services 48 4.4. Backing Up and Restoring the luci Configuration 49 4.5. Diagnosing and Correcting Problems in a Cluster 50 .C .h .a .p . t.e .r .5 .. .C . o. n. f.i g. .u .r i.n .g . .R .e .d . H. .a .t .C . l.u .s .t e. r. .W . i.t h. .s .y .s .t .e .m . -.c .o .n . f.i g. -.c .l u. s. t. e. r. .5 .1 . 5.1. Configuration Tasks 51 5.2. Starting the Cluster Configuration Tool 52 5.3. Configuring Cluster Properties 57 5.4. Configuring Fence Devices 58 5.5. Adding and Deleting Members 58 5.6. Configuring a Failover Domain 63 5.7. Adding Cluster Resources 67 5.8. Adding a Cluster Service to the Cluster 68 5.9. Propagating The Configuration File: New Cluster 70 5.10. Starting the Cluster Software 71 1 Cluster Administration .C .h .a .p . t.e .r .6 .. .M . a. n. a. g. .i n. g. .R . e. d. .H .a .t . C. l.u .s .t .e .r .W . i.t .h . s. y. s. t.e .m . -. c. o. n. f.i g. -. c. l.u .s .t e. r. .7 .2 . 6.1. Starting and Stopping the Cluster Software 72 6.2. Managing High-Availability Services 72 6.3. Modifying the Cluster Configuration 74 6.4. Backing Up and Restoring the Cluster Database 75 6.5. Disabling Resources of a Clustered Service for Maintenance 76 6.6. Disabling the Cluster Software 77 6.7. Diagnosing and Correcting Problems in a Cluster 78 .A .p .p . e. n. d. i.x . A. .E .x .a .m . p. l.e . o. .f .S .e .t t. i.n .g . U. .p . A. p. .a .c .h .e . H. T. .T .P . S. .e .r v. e. r. .7 .9 . A.1. Apache HTTP Server Setup Overview 79 A.2. Configuring Shared Storage 79 A.3. Installing and Configuring the Apache HTTP Server 80 .A .p .p . e. n. d. i.x . B. .F .e .n .c .e . D. .e .v .i c. e. .P .a .r a. m. e. t.e .r s. .8 .3 . .A .p .p . e. n. d. i.x . C. .H .A . .R .e .s .o . u. r.c .e . P. .a .r a. m. .e .t e. r. s. .9 .3 . .A .p .p . e. n. d. i.x . D. .H .A . .R .e .s .o . u. r.c .e . B. .e .h .a .v .i o. r. .1 .0 .4 . ..