About the Author |
|
xiii | |
About the Technical Reviewers |
|
xv | |
Acknowledgments |
|
xvii | |
Introduction |
|
xix | |
|
Chapter 1 High Availability Clustering and Its Architecture |
|
|
1 | (8) |
|
Different Kinds of Clustering |
|
|
1 | (2) |
|
High Performance Clusters |
|
|
1 | (1) |
|
|
2 | (1) |
|
High Availability Clusters |
|
|
3 | (1) |
|
What to Expect from High Availability Clusters |
|
|
3 | (1) |
|
History of High Availability Clustering in Linux |
|
|
4 | (1) |
|
Heartbeat 2.0 and Red Hat Cluster Suite |
|
|
4 | (1) |
|
Cluster Membership and Resource Management |
|
|
4 | (1) |
|
The Components That Build a High Availability Cluster |
|
|
4 | (3) |
|
|
5 | (1) |
|
|
5 | (1) |
|
|
6 | (1) |
|
|
6 | (1) |
|
Fencing/STONITH Devices and Quorum |
|
|
6 | (1) |
|
|
7 | (2) |
|
Chapter 2 Configuring Storage |
|
|
9 | (18) |
|
Why Most Clusters Need Shared Storage |
|
|
9 | (1) |
|
|
10 | (1) |
|
|
10 | (1) |
|
|
10 | (1) |
|
|
11 | (1) |
|
|
12 | (1) |
|
Configuring the LIO iSCSI Target |
|
|
12 | (4) |
|
Connecting to an iSCSI SAN |
|
|
16 | (4) |
|
|
17 | (1) |
|
|
18 | (1) |
|
Step 3 Managing the iSCSI Connection |
|
|
19 | (1) |
|
Disconnecting an iSCSI Session |
|
|
20 | (1) |
|
|
20 | (6) |
|
|
22 | (2) |
|
Specific Use Cases for Multipath |
|
|
24 | (2) |
|
|
26 | (1) |
|
Chapter 3 Configuring the Membership Layer |
|
|
27 | (10) |
|
|
27 | (2) |
|
|
28 | (1) |
|
Configuring the Bond Interface |
|
|
28 | (1) |
|
|
29 | (1) |
|
|
30 | (1) |
|
|
30 | (5) |
|
Understanding corosync.conf Settings |
|
|
33 | (1) |
|
Networks Without Multicast Support |
|
|
33 | (2) |
|
|
35 | (1) |
|
|
36 | (1) |
|
Chapter 4 Understanding Pacemaker Architecture and Management |
|
|
37 | (14) |
|
Pacemaker Related to Other Parts of the Cluster |
|
|
37 | (1) |
|
|
38 | (1) |
|
|
38 | (1) |
|
|
38 | (1) |
|
Pacemaker Internal Components |
|
|
38 | (4) |
|
|
39 | (2) |
|
|
41 | (1) |
|
|
41 | (1) |
|
|
41 | (1) |
|
|
41 | (1) |
|
|
42 | (7) |
|
|
42 | (3) |
|
|
45 | (3) |
|
|
48 | (1) |
|
|
49 | (1) |
|
|
49 | (2) |
|
Chapter 5 Configuring Essential Cluster Settings |
|
|
51 | (20) |
|
Specifying Default Cluster Settings |
|
|
51 | (2) |
|
|
51 | (1) |
|
default-resource-stickiness |
|
|
52 | (1) |
|
|
53 | (1) |
|
|
53 | (15) |
|
|
54 | (1) |
|
Setting Up libvirt Hypervisor-Based STONITH |
|
|
55 | (3) |
|
Setting Up Hardware-Based STONITH: The APC Master Power Switch |
|
|
58 | (5) |
|
Configuring STONITH for Dell DRAC and Other Server Management Cards, Such As HP ILO |
|
|
63 | (3) |
|
IPMI and Other Management Boards |
|
|
66 | (1) |
|
Setting Up Shared Disk-Based STONITH |
|
|
67 | (1) |
|
Using Fencing on Red Hat Clusters |
|
|
68 | (1) |
|
|
69 | (2) |
|
Chapter 6 Clustering Resources |
|
|
71 | (16) |
|
What Makes Clustered Resources Different |
|
|
71 | (1) |
|
Clustering an Apache File Server |
|
|
71 | (1) |
|
|
72 | (4) |
|
|
76 | (1) |
|
|
77 | (4) |
|
|
77 | (1) |
|
|
78 | (3) |
|
Testing the Configuration |
|
|
81 | (1) |
|
Understanding Resource Agent Scripts |
|
|
81 | (4) |
|
|
85 | (2) |
|
Chapter 7 Clustering Storage |
|
|
87 | (10) |
|
Using a Cluster File System |
|
|
87 | (1) |
|
Configuring an OCFS2 File System |
|
|
88 | (7) |
|
Understanding Clone Resources |
|
|
88 | (2) |
|
LVM2 in Cluster Environments |
|
|
90 | (4) |
|
|
94 | (1) |
|
Using GFS2 with Pacemaker |
|
|
95 | (1) |
|
|
95 | (2) |
|
Chapter 8 Performing Daily Cluster Management Tasks |
|
|
97 | (12) |
|
Starting and Stopping Resources |
|
|
97 | (1) |
|
Monitoring Resource State |
|
|
98 | (4) |
|
|
102 | (1) |
|
|
103 | (1) |
|
|
104 | (1) |
|
Using Unmanaged Mode and Maintenance Mode for Maintenance |
|
|
104 | (1) |
|
|
105 | (2) |
|
Backup and Restore of the Cluster Configuration |
|
|
107 | (1) |
|
Wipe Everything and Start All Over |
|
|
108 | (1) |
|
|
108 | (1) |
|
Chapter 9 Creating an Open Source SAN |
|
|
109 | (12) |
|
Creating an Open Source SAN with Pacemaker |
|
|
109 | (1) |
|
Configuring RAID 1 over the Network with DRBD |
|
|
109 | (5) |
|
|
110 | (1) |
|
Creating the Configuration |
|
|
110 | (3) |
|
|
113 | (1) |
|
Troubleshooting the Disconnect State |
|
|
113 | (1) |
|
Working with Dual Primary Mode |
|
|
114 | (1) |
|
Integrating DRBD in Pacemaker Clusters |
|
|
114 | (1) |
|
|
115 | (1) |
|
Adding an iSCSI Target to the Open Source SAN |
|
|
115 | (5) |
|
Creating an Open Source SAN with LVM |
|
|
117 | (1) |
|
Setting Up the iSCSI Target in the Cluster |
|
|
117 | (3) |
|
|
120 | (1) |
|
Chapter 10 Use Case: Creating a Solution for Xen/KVM High Availability |
|
|
121 | (12) |
|
Introduction: An Overview of Open Source Virtualization Solutions |
|
|
121 | (1) |
|
|
121 | (1) |
|
|
122 | (1) |
|
Requirements for Setting Up an HA Solution for Virtual Machines |
|
|
122 | (1) |
|
Example of a Virtual Machine HA Cluster |
|
|
122 | (6) |
|
Creating a KVM HA Cluster |
|
|
128 | (4) |
|
Creating the Base Cluster |
|
|
129 | (1) |
|
Configure the SAN for Shared Storage |
|
|
129 | (1) |
|
Installing a KVM Virtual Machine |
|
|
130 | (1) |
|
Setting Up Cluster Resources for the KVM Virtual Machine |
|
|
131 | (1) |
|
|
132 | (1) |
|
Chapter 11 Use Case: Configuring a Load-Balanced Mail Front End with a Database Back End |
|
|
133 | (8) |
|
|
133 | (1) |
|
|
134 | (2) |
|
|
136 | (2) |
|
One Big Cluster or Many Little Clusters? |
|
|
138 | (1) |
|
|
139 | (2) |
Index |
|
141 | |