This cainiao wants to install a cluster such as corosync pacemaker heartbeatv3. The general configuration process is similar to the online documentation. To help you troubleshoot the problems, I will write a general idea about my installation:
The system is centos5.5.
Dual-host mutual trust, time synchronization, and hosts files are all configured. Ping each node is normal.
Cluster-glue-1.0.6-1.6.el5.i386.rpm
Cluster-glue-libs-1.0.6-1.6.el5.i386.rpm
Corosync-1.2.7-1.1.el5.i386.rpm
Corosynclib-1.2.7-1.1.el5.i386.rpm
Heartbeat-3.0.3-2.3.el5.i386.rpm
Heartbeat-libs-3.0.3-2.3.el5.i386.rpm
Libesmtp-1.0.4-5.el5.i386.rpm
Pacemaker-1.1.5-1.1.el5.i386.rpm
Pacemaker-cts-1.1.5-1.1.el5.i386.rpm
Pacemaker-libs-1.1.5-1.1.el5.i386.rpm
Perl-TimeDate-1.16-5.el5.noarch.rpm
Resource-agents-1.0.4-1.1.el5.i386.rpm
Finally, yum-y -- nogpgcheck localinstall *. rpm is used to automatically solve the dependency.
Step 2: configure the corosync configuration file. The added content is the same as that on the Internet.
Service {# define a service to use pacemaker
Ver: 0 # version
Name: Pacemaker
}
Aisexec {# define the working user of corosnyc, and use the root user
User: Root
GROUP: Root
}
Step 3:
Create the/var/log/cluster directory to store log files.
Step 4:
Then use SCP-P corosync. conf authkeys to go to another node,
Step 5: Start corosync
Step 6: View logs
Many people on the Internet wrote about whether there are any errors, such as totem and "corosync cluster engine"-e "configuration file ".
This wood has:
Check if pacemaker is started properly: My cluster system does not
# Grep pcmk_startup/var/log/messages
Jun 14 19:03:50 node1 corosync [5120]: [pcmk] info: pcmk_startup: CRM: initialized
Jun 14 19:03:50 node1 corosync [5120]: [pcmk] logging: initialized pcmk_startup
Jun 14 19:03:50 node1 corosync [5120]: [pcmk] info: pcmk_startup: maximum core file size is: 4294967295
Jun 14 19:03:50 node1 corosync [5120]: [pcmk] info: pcmk_startup: Service: 9
Jun 14 19:03:50 node1 corosync [5120]: [pcmk] info: pcmk_startup: Local hostname: node1.a.org
Finally, pacemaker cannot be started,
Please help and support your friends. Thank you.
Why ??