linux双机热备怎么开关机,在linux下做双机热备步骤.doc

在linux下做双机热备步骤

在linux下做双机热备步骤

Red hat 9 linux的双机热备安装比较简单,需要的安装文件有以下几个:

heartbeat-1.0.4-2.rh.9.um.1.i386.rpm

heartbeat-pils-1.0.4-2.rh.9.um.1.i386.rpm

heartbeat-stonith-1.0.4-2.rh.9.um.1.i386.rpm

net-snmp-5.0.6-17.i386.rpm

按顺序依次安装:

1、heartbeat-pils-1.0.4-2.rh.9.um.1.i386.rpm

2、net-snmp-5.0.6-17.i386.rpm

3、heartbeat-stonith-1.0.4-2.rh.9.um.1.i386.rpm

4、heartbeat-1.0.4-2.rh.9.um.1.i386.rpm

#rpm -ivh heartbeat-pils-1.0.4-2.rh.9.um.1.i386.rpm

#rpm -ivh net-snmp-5.0.6-17.i386.rpm

#rpm -ivh heartbeat-stonith-1.0.4-2.rh.9.um.1.i386.rpm

#rpm -ivh heartbeat-1.0.4-2.rh.9.um.1.i386.rpm

安装完成之后,开始配置主服务器。配置文件位于/etc/ha.d下,用rpm安装之后不会产生配置文件,需要从/usr/share/doc/heartbeat-1.0.4下,把ha.cf,,,,authkeys,,,,,,,,haresources,,,,三个文件cp到/etc/ha.d下面。

文件在ha.cf是主要heartbeat的配置文件,authkeys是heartbeat的安全配置文件,haresource文件是heartbeat的资源文件

其文件说明如下:

ha.cf

#############################################################################################

#

# There are lots of options in this file. All you have to have is a set

# of nodes listed {"node ...}

# and one of {serial, bcast, mcast, or ucast}

#

# ATTENTION: As the configuration file is read line by line,

# THE ORDER OF DIRECTIVE MATTERS!

#

# In particular, make sure that the timings and udpport

# et al are set before the heartbeat media are defined!

# All will be fine if you keep them ordered as in this

# example.

#

#

# Note on logging:

# If any of debugfile, logfile and logfacility are defined then they

# will be used. If debugfile and/or logfile are not defined and

# logfacility is defined then the respective logging and debug

# messages will be loged to syslog. If logfacility is not defined

# then debugfile and logfile will be used to log messges. If

# logfacility is not defined and debugfile and/or logfile are not

# defined then defaults will be used for debugfile and logfile as

# required and messages will be sent there.

#

# File to write debug messages to

debugfile /var/log/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值