Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

HA-install configuration

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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/.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report