前提条件:
服务器有两片网卡eth0和eth1
服务器1:
主机名:node1
eth0:192.168.1.160
eth1:10.1.1.10
服务器2:
主机名:node2
eth0:192.168.1.161
eth1:10.1.1.11
一、安装heartbeat依赖包及heartbeat(请按下面的顺序执行安装,否则会在安装的时候报错)
rpm -ivh perl-Authen-SASL-2.15-1.el5.pp.noarch.rpm
rpm -ivh perl-GSSAPI-0.26-1.el5.rf.i386.rpm
rpm -ivh perl-Net-SSLeay-1.30-4.fc6.i386.rpm
rpm -ivh perl-Convert-ASN1-0.20-1.1.noarch.rpm
rpm -ivh perl-IO-Socket-SSL-1.01-1.fc6.noarch.rpm
rpm -ivh perl-Parse-RecDescent-1.94-6.el5.noarch.rpm
rpm -ivh perl-Digest-HMAC-1.01-15.noarch.rpm
rpm -ivh perl-LDAP-0.33-3.fc6.noarch.rpm
rpm -ivh perl-XML-NamespaceSupport-1.09-1.2.1.noarch.rpm
rpm -ivh perl-Digest-SHA1-2.11-1.2.1.i386.rpm
rpm -ivh perl-Mail-IMAPClient-3.20-1.el5.noarch.rpm
rpm -ivh perl-XML-SAX-0.14-5.noarch.rpm
rpm -ivh lm_sensors-