蚂蚁文库
换一换
首页 蚂蚁文库 > 资源分类 > DOC文档下载
 

在linux下做双机热备步骤

  • 资源ID:52709455       资源大小:46.50KB        全文页数:10页
  • 资源格式: DOC        下载权限:游客/注册会员    下载费用:15积分 【人民币15元】
快捷注册下载 游客一键下载
会员登录下载
三方登录下载: 微信快捷登录 QQ登录  
下载资源需要15积分 【人民币15元】
邮箱/手机:
温馨提示:
支付成功后,系统会自动生成账号(用户名和密码都是您填写的邮箱或者手机号),方便下次登录下载和查询订单;
支付方式: 微信支付    支付宝   
验证码:   换一换

 
友情提示
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,既可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰   

在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/ha-debug 【heartbeat的debug信息记录文件】 File to write other messages to logfile /var/log/ha-log 【日志文件】 Facility to use for syslog/logger logfacility local0 【记录日志在syslog中,可选项】 A note on specifying how long times below... The default time unit is seconds 10 means ten seconds You can also specify them in milliseconds 1500ms means 1.5 seconds keepalive how long between heartbeats keepalive 3 【每3秒发送一次keeplive消息】 deadtime how long-to-declare-host-dead deadtime 15 【假如15秒没有收到keeplive消息将会认为节点已经失效】 warntime how long before issuing late heartbeat warning See the FAQ for how to use warntime to tune deadtime. warntime 10 【在日志中记录最终心跳last heartbeat-best 前的警告时间】 Very first dead

注意事项

本文(在linux下做双机热备步骤)为本站会员(18244465852)主动上传,蚂蚁文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知蚂蚁文库(发送邮件至2303240369@qq.com或直接QQ联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们


网站客服QQ:2303240369

copyright@ 2017-2027 mayiwenku.com 

网站版权所有  智慧蚂蚁网络

经营许可证号:ICP备2024020385号



收起
展开