Get the App
SLTechnology News&Howtos  ›  Network Security  › 

HA-install configuration

Shulou Source: shulou.com Published: 2022-06-01 03:51:17 11月25日 Update

System: xen installation operation, installed vm0x-centos system

Installed package: drbd configuration documentation package installation

Install the dependent resource pack:

Yum install tix tix-devel tix-doc lm_sensors lm_sensors-devel net-snmp-utils net-snmp net-snmp-perl tkinter OpenIPMI* libxslt libxslt-devel gettext gettext-devel-y

Add HA Cluster users-Group

Groupadd haclientuseradd-g haclient hacluster

Download the software package

Mkdir / root/srccd / root/srcwget http://hg.linux-ha.org/glue/archive/glue-1.0.9.tar.bz2wget-O agents-v3.9.2.tar https://codeload.github.com/ClusterLabs/resource-agents/legacy.tar.gz/v3.9.2wget http://hg.linux-ha.org/heartbeat-STABLE_3_0/archive/7e3a82377fa8.tar.bz2

Compilation and installation

Tar jxvf glue-1.0.9.tar.bz2cd Reusable-Cluster-Components-glue--glue-1.0.9/./autogen.sh. / configuremakemake installcp. / logd/logd.cf / etc/cd.. tar xvf agents-v3.9.2.tarcd ClusterLabs-resource-agents-b735277./autogen.sh. / configuremakemake installcd.. tar jxvf 7e3a82377fa8.tar.bz2cd Heartbeat-3-0-7e3a82377fa8./bootstrap. / ConfigureMe configuremakemake installmkdir / usr/lib/heartbeat/cp. / contrib/ipfail/.libs/ipfail / usr/lib/heartbeat/

Basic configuration

Cp / usr/share/doc/heartbeat/ha.cf / etc/ha.d/cp / usr/share/doc/heartbeat/haresources / etc/ha.d/cp / usr/share/doc/heartbeat/authkeys / etc/ha.d/chmod 600 / etc/ha.d/authkeyscp / usr/etc/ha.d/shellfuncs / etc/ha.d/cp / usr/etc/ha.d/resource.d/ldirectord / etc/ha.d/resource.d/rm-rf / usr/etc/ha.d / ln-sv / etc/ha.d / usr/etc/ha.d

Set up boot boot

Chkconfig-add heartbeatchkconfig heartbeat on

After installation, you can use the ha.cf, haresources and authkeys configuration files under / etc/ha.d/.

Tags: Configuration system software software packages three basic configuration files documents users resources clusters compilation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno MySQL vpn Shulou Information MariaDB