[Linux-HA] Fw: Streamline Highly Availability and Load Balancing

Denis Anthony Dowling/Twn/TUV dde at twn.tuv.com
Sun Aug 28 17:45:18 MDT 2005


Hi

I am trying to configure HA and LB as described in the "Streamline Highly 
Availability and Load Balancing" example provided on UltrMonkey's website. 
However, both servers start the resources described in the haresources 
file. Both enable the VIP as a secondary address on the ethernet card and 
populate the ipvs table with the real servers. It's as if they are failing 
to communicate with each other and assume that the other is unavailable. 
Following are the config files for both machines. 

I am using the configuration described in UltraMonkey 3 with Red Hat 
Enterprise 3.0 Update 4.

Thanks
Denis
mail1

 [root at mail1 ha.d]# cat ha.cf
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility     local0
keepalive 2
deadtime 10
warntime 5
initdead 120
bcast   eth0            # Linux
auto_failback off
node    mail1.twn.tuv.com
node    mail2.twn.tuv.com
debug 1
[root at mail1 ha.d]#

[root at mail1 ha.d]# cat haresources
mail1.twn.tuv.com \
                ldirectord::ldirectord.cf \
                LVSSyncDaemonSwap::master \
                IPaddr2::172.16.51.170/22/eth0/172.16.51.255
[root at mail1 ha.d]#

[root at mail1 conf]# cat ldirectord.cf

# Global Directives
checktimeout=3
checkinterval=1
# fallback=127.0.0.1:80
# autoreload=yes
logfile="/var/log/ldirectord.log"
logfile="local0"
# quiescent=yes

#Sample configuration for an smtp virtual service.
#Fallback setting overides global
virtual=172.16.51.170:25
        real=172.16.51.171:25 gate
        real=172.16.51.172:25 gate
        fallback=127.0.0.1:25
        service=smtp
        scheduler=rr
#       persistent=600
        protocol=tcp
[root at mail1 conf]#

mail2

[root at mail2 ha.d]# cat ha.cf
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility     local0
keepalive 2
deadtime 10
warntime 5
initdead 120
bcast   eth0            # Linux
auto_failback off
node    mail1.twn.tuv.com
node    mail2.twn.tuv.com
debug 1
[root at mail2 ha.d]#

[root at mail2 ha.d]# cat haresources
mail1.twn.tuv.com \
                ldirectord::ldirectord.cf \
                LVSSyncDaemonSwap::master \
                IPaddr2::172.16.51.170/22/eth0/172.16.51.255
[root at mail2 ha.d]#

[root at mail2 conf]# cat ldirectord.cf

# Global Directives
checktimeout=3
checkinterval=1
# fallback=127.0.0.1:80
# autoreload=yes
logfile="/var/log/ldirectord.log"
logfile="local0"
# quiescent=yes

#Sample configuration for an smtp virtual service.
#Fallback setting overides global
virtual=172.16.51.170:25
        real=172.16.51.171:25 gate
        real=172.16.51.172:25 gate
        fallback=127.0.0.1:25
        service=smtp
        scheduler=rr
#       persistent=600
        protocol=tcp
[root at mail2 conf]#


___________________________________________________
TUV Rheinland Taiwan Ltd.
8F, No.2, Min Chuan E. Rd., Sec. 3,
Taipei 104, Taiwan, R. O. C.
Tel. (02) 2516 6040 ext. 1049
Fax.(02) 2504 5040, 2509-5867
www.twn.tuv.com

This e-mail message and any attachments are confidential and intended only 
for the use of the individual or entity named above, and may contain 
information that is privileged, confidential or exempt from disclosure 
under applicable law. If you are not the intended recipient, you are 
notified that any dissemination, distribution, copying or other means by 
disclosure of this email is strictly prohibited.
TUV Rheinland Taiwan Ltd. does not accept liability for any errors, 
omissions, corruption or virus in the contents of this message or any 
attachments that arise as a result of e-mail transmission. If you have 
received this communication in error, please notify the sender immediately 
and delete the original message and its attachment(s) immediately.

´Ë·ÝӍϢ¼°Æä¸½¼Ó™n°¸¾ß±£ÃÜÐÔ£¬KÖ»ÏÞÓÃì¶‚€ÈË»òÉÏÊöÆó˜IʹÓã¬ÆäƒÈÈÝ¿ÉÄÜÉæ¼°
ƒž»ÝÐÔ¡¢±£ÃÜÐÔ»òÔÚ¬FÐпÉßmÓÃÖ®·¨ÂÉϲ»µÃ›ªÃܵÄÒŽ¶¨¡£ ÈçÄú·Ç±¾ÐŵÄÊÕ¼þÕߣ¬
½ûÖ¹‚÷²¥¡¢°lËÍ¡¢Ó°Ó¡»òÒÔÆäËüÐÎʽ½Ò¶´Ë·ÝëŠ×Óà]¼þ¡£
̨ž³µÂ‡øÈRÒò¼¼Ðg±O×o–¹É·ÝÓÐÏÞ¹«Ë¾²»Ø“ØŸëŠ×Óà]¼þ‚÷ËÍÖÐÆäƒÈÈÝ»òÈκθ½¼Ó™n
°¸ËùÔì³ÉµÄÈκÎåeÕ`¡¢Êèºö¡¢ÓžÕ`»ò²¡¶¾¡£ Èç¹ûÄúÊÕµ½åeÕ`µÄӍϢ£¬ÕˆÁ¢¼´Í¨Öª¼Ä
¼þÕ߁K„h³ýԭʼµÄÐżþ¼°Æä¸½¼Ó™n°¸¡£
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.community.tummy.com/pipermail/linux-ha/attachments/20050829/a8e11865/attachment.htm


More information about the Linux-HA mailing list