- 1、本文档共9页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
tunnel和心跳(Tunnel and heartbeat)
tunnel和心跳(Tunnel and heartbeat)
two strong ~!
Take that step you remember me down!!!
heartbeat
1, configure the IP address 192.168.0.100
2, bind the IP address
Ifconfig, tunl0, 172.16.229.153, broadcast, 172.16.229.153, netmask, 255.255.255.255, up
3, add host routing
Route, add, -host, 172.16.229.153, dev, tunl0
Route -n
4 install the scheduler
RPM -ivh /mnt/Cluster/ipvsadm-1.24-8.1.i386.rpm
5, add cluster server
Ipvsadm, -A, -t, 172.16.229.153:80, -s, WRR
6, add remote host
Ipvsadm, -a, -t, 172.16.229.153:80, -r, 192.168.0.2:80, -i
Ipvsadm, -a, -t, 172.16.229.153:80, -r, 192.168.0.3:80, -i
Ipvsadm
7, save
Service ipvsadm save
Boot automatically start, you can not do
Edit heartbeat script
VIM lvstun
# /bin/bash!
#
#
Vip=172.16.229.153
Rs1=192.168.0.2
Rs2=192.168.0.3
Case $1 in
Start)
Ipvsadm, -A, -t, $vip:80, -s, WRR
Ipvsadm, -a, -t, $vip:80, -r, $rs1:80, -i, -w,
Ipvsadm, -a, -t, $vip:80, -r, $rs2:80, -i, -w,
;;
Stop)
Ipvsadm -C
Ifdowm tunl0
;;
*)
Echo Usage {start|stop}
Exit 1
ESAC
Do it on VS1
Install heartbeat software
CD /mnt/cluster/
Install libnet-1.1.2.1-2.2.e15.rf.i386.rpm first
RPM -ivh libnet-1.1.2.1-2.2.e15.rf.i386.rpm
MKDIR /soft
Tar, zxvf, heartbeat-2.1.3.tar.gz, -C, /soft
Create group
Groupadd -g 694 haclient
Add user
Useradd -u 694, -g, haclient, hacluster
CD /soft/heartbeat-2.1.3/
Check the environment
./ConfigureMe configure make make install
Copy file
CP, doc/ha.cf, doc/haresources, doc/authkeys, /etc/ha.d/
Doc/ha.cf cluster master file
Doc/haresources resource file
Doc/authkeys authentication document
CP ldirectord/ldirectord.cf /etc/ha.d/ Replication Monitor configuration file
VIM /etc/ha.d/authkeys
Auth 1
1 CRC
Chmod 600, /etc/ha.d/authkeys
Configuring the cluster group configuration file
VIM /etc/ha.d/ha.cf
28 debugfile /var/log/ha-debug
33 logfile /var/log/ha-log
52 keepalive 2
60 deadtime 30
65 warntime 10
75 initdead 120
80 udpport 694
95 BCAST eth1
125 ucast eth1 192.168.0.100
161 auto_failback on
215 node VS1 (results of uname -n)
2
您可能关注的文档
- cm7.0.0-rc3-0.07-11.03.04-crl21-revised(cm7.0.0-rc3-0.07-11.03.04-crl21-revised).doc
- cmsp四型人格(CMSP four personality).doc
- cmd下打开系统各面板(Open the system panel under CMD).doc
- coal-fired power plants 火力发电厂 火力发电厂(燃煤电厂火力发电厂火力发电厂).doc
- cosmic_website 蛋白质(cosmic_website蛋白质).doc
- const常量折叠的一些问题(Some problems of folding const constants).doc
- cos教程之化妆技巧(Makeup skills for cos tutorials).doc
- cosplay化妆教程(cosplay化妆教程).doc
- conan主线情节清单001~504(Conan mainline plot list 001~504).doc
- cpl类型文件为控制面板扩展命令(The CPL type file expands the command for the control panel).doc
文档评论(0)