cluster concepts and configuration h6487s i.02 module 5
TRANSCRIPT
![Page 1: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/1.jpg)
Cluster Concepts and Configuration
H6487S I.02Module 5
![Page 2: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/2.jpg)
2H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
Definition of a Cluster
• A Cluster is a collection of nodes which cooperate together to improve the availability of applications running on the nodes.
• Two major benefits of a cluster during downtime events ensure:– High Availability when another node takes over. (Unplanned)– The cluster can be used for rolling upgrades. (Planned)
![Page 3: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/3.jpg)
3H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
Lan 2
Primary
Mirror
VG01
SystemB
SystemA
Primary
Mirror
VG02
Root
HeartbeatPacket
MirrorRoot
Root MirrorRoot
cmcldprocess
cmcldprocessCluster
Lock
lan0 lan1
Lan 2
lan1lan0
Major Components of a Cluster
Bridge
4
3
1 2
![Page 4: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/4.jpg)
4H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
HeartbeatPacket
DataPacket
DataPacket
lan0 lan1 lan0 lan1
lan2 lan2
Standby LAN
Bridge
NETWORK_INTERFACE lan0
HEARTBEAT_IP 15.19.83.121
NETWORK_INTERFACE lan1
STATIONARY_IP 192.20.45.121
NETWORK_INTERFACE lan2
# Possible standby network interfaces for lan1 or lan0
Excerpt fromCluster
Configurationfile
15.19.83.121 192.20.45.121
Network Interface Configuration
NETWORK_POLLING_INTERVAL 2000000
![Page 5: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/5.jpg)
5H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
Primary
Mirror
VG01
Primary
Mirror
VG02
ClusterLock SystemBSystemA
FIRST_CLUSTER_LOCK_VG /dev/vg01 NODE_NAME SystemA
FIRST_CLUSTER_LOCK_PV /dev/dsk/c1t4d0
Cluster Lock Configuration
Excerpt fromCluster
Configurationfile
![Page 6: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/6.jpg)
6H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
SystemBSystemA
Cluster Lock Configuration Using a Quorum Server
QuorumServer
QS_HOST SystemCQS_POLLING_INTERVAL 120000000QS_TIMEOUT_EXTENSION 2000000
Excerpt fromCluster
Configurationfile
![Page 7: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/7.jpg)
7H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
HeartbeatPacket
lan0 lan0
HEARTBEAT_INTERVAL
1000000
NODE_TIMEOUT 5000000
Primary
Mirror
VG01
ClusterLock
Heartbeat Configuration
Excerpt fromCluster
Configurationfile
![Page 8: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/8.jpg)
8H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
cmcldprocess
cmcldprocess
serviceprocess service
process
The cmcld process• Sends and receives Heartbeats• Checks the LAN cards for functionality• Monitors the service processes of packages
HeartbeatPacket
cmcld Process
![Page 9: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/9.jpg)
9H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
Cluster Formation Requirements
Cluster Lock Mechanism
• Required for 2 nodes (Quorum Server or LVM Disk)
• Recommended for 3 or 4 nodes (Quorum Server or LVM Disk)
• Optional for 5 or more nodes (Quorum Server only)
• Should be on separate power sources from other systems in cluster
Node Attendance
• 100% node attendance is required for initial cluster formation
Network Requirements
• All nodes in the cluster must be on same subnet
• LAN cards in the same system MUST be on separate subnets
• At least one HEARTBEAT_IP network is configured
![Page 10: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/10.jpg)
10H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
Steps to Configure a Cluster
1. Build cluster configuration filecmquerycl -v -C cmclconfig.ascii -n node1 -n node2…
2. Compile and distribute binary filecmcheckconf -v -C cmclconfig.asciicmapplyconf -v -C cmclconfig.ascii
3. Start MC/SG daemonscmruncl –v
4. If necessary, halt the clustercmhaltcl -v
![Page 11: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/11.jpg)
11H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
Cluster ConfigASCII file
cmclconfdprocess
cmclconfdprocess
• FIRST_CLUSTER_LOCK_VG• NODE_NAME
- NETWORK_INTERFACE - HEARTBEAT_IP or STATIONARY_IP or blank - FIRST_CLUSTER_LOCK_PV - SERIAL_DEVICE_FILE
• HEARTBEAT_INTERVAL• NODE_TIMEOUT• AUTOSTART_TIMEOUT• NETWORK_POLLING_INTERVAL
• VOLUME_GROUP
• CLUSTER_NAME
• MAX_CONFIGURED_PACKAGES
Steps to Configure a Cluster
1. Build Cluster Configuration File2. Compile and Distribute Binary File3. Start MC/SG Daemons
Use cmqueryclcommand to build
cluster configurationASCII file
Step 1: Build Cluster Configuration ASCII File
![Page 12: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/12.jpg)
12H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
Cluster ConfigASCII file
Cluster Binary File
Cluster Binary File
cmapplyconf
Cluster ConfigurationASCII File
Cluster BinaryFile
This file is automatically distributed to all nodes inthe cluster.
1. Build Cluster Configuration File2. Compile and Distribute Binary File3. Start MC/SG Daemons
Steps to Configure a Cluster
Step 2: Compile and Distribute Binary File
![Page 13: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/13.jpg)
13H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
# cmruncl -v
Cluster Binary file
cmcldprocess
Cluster Config ASCII file
ClusterBinary
file
cmcldprocess
1. Build Cluster Configuration File2. Compile and Distribute Binary File3. Start MC/SG Daemons
Steps to Configure a Cluster
Step 3: Start MC/SG Daemons
![Page 14: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/14.jpg)
14H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
Cluster Configuration Procedure
1. Set up trusted hosts within cluster systems: vi /etc/cmcluster/cmclnodelist this_node_hostname root other_node_hostname root
2. cd /etc/cmcluster
3. cmquerycl –v -C cmclconf.ascii -n nodel -n node2
4. vi cmclconf.ascii Modify CLUSTER_NAME field Modify MAX_CONFIGURED_PACKAGES field
5. cmcheckconf –v -C /etc/cmcluster/cmclconf.ascii
6. cmapplyconf –v -C /etc/cmcluster/cmclconf.ascii
7. cmruncl -v
![Page 15: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/15.jpg)
15H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
# cmviewcl -v
CLUSTER STATUS cluster1
up
NODE STATUS STATE
SystemA up running
Network_Parameters: INTERFACE STATUS PATH PRIMARY up 8/16/6 STANDBY up 8/20/5/1
NAMElan0lan1
Serial Heartbeat: DEVICE FILE NAME CONNECTED TO:
/dev/tty0p3 /dev/tty0p3
Viewing the Cluster — cmviewcl Command
![Page 16: Cluster Concepts and Configuration H6487S I.02 Module 5](https://reader035.vdocuments.us/reader035/viewer/2022072014/56649ea75503460f94ba9a06/html5/thumbnails/16.jpg)
16H6487S I.02
© 2003 Hewlett-Packard Development Company, L.P.
May 2 15:30:52 systemA cmcld[2048]: clvmd initialized successfully
# tail -f /var/adm/syslog/syslog.log
May 2 15:30:45 systemA cmcld[2048]: cmruncl
May 2 15:30:47 systemA cmcld[2048]: Starting cluster protocols
May 2 15:30:48 systemA cmcld[2048]: Attempting to form a new cluster
May 2 15:30:50 systemA cmcld[2048]: Clearing the Cluster Lock
May 2 15:30:45 systemA cmcld[2048]: Turning on safety time protection
May 2 15:30:50 systemA cmcld[2048]: Two nodes have formed a new cluster
May 2 15:30:51 systemA cmcld[2048]: The new active membership is: systemA, systemB
Checking the Cluster Log