[Date Prev][Date Next] [Chronological] [Thread] [Top]

MirrorMode and Failover



Hello,

I have two OpenLDAP servers on separate machines.  They are both configured for mirror mode with syncrepl as I want to use the failover.  One server has serverID 1 and the other has serverID 2 both with mirror mode turned on.  The syncronizing is working good from what I can tell from serverID 1 to serverID 2.  I don't have a load balancer connected yet to load balance the traffic to one of the server ID 1, which would be the primary master in this mirror mode setup for now.

I'm trying to test the failover though before introducing the load balancer.  The way I am trying to test is I stop slapd on serverID 1, while serverID 2 is still running.  Then I try to connect to the serverID 2 and I see in the "acl,trace" debug output it shows this

>>> slap_listener(ldap:///)
connection_get(16): got connid=33
connection_read(16): checking for input on id=33
ber_get_next
ber_get_next: tag 0x30 len 48 contents:
ber_get_next
conn=33 op=0 do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: <uid=linux,cn=system,cn=posix>
<<< dnPrettyNormal: <uid=linux,cn=system,cn=posix>, <uid=linux,cn=system,cn=posix>
do_bind: version=3 dn="uid=linux,cn=system,cn=posix" method=128
bdb_dn2entry("uid=linux,cn=system,cn=posix")
=> hdb_dn2id("cn=system,cn=posix")
<= hdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30990)
send_ldap_result: conn=33 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=49
ber_flush2: 14 bytes to sd 16
connection_get(16): got connid=33
connection_read(16): checking for input on id=33
ber_get_next
ber_get_next on fd 16 failed errno=0 (Success)
connection_closing: readying conn=33 sd=16 for close
connection_close: conn=33 sd=16

The databases are in the right location and they were brought over from serverID 1 when I started up slapd on serverID 2.  So I'm wondering what am I missing or not understanding on the failover test?  My assumption was if I took down the serverID 1 server and kept the serverID 2 server, that if I tried to connect to the serverID 2 hostname/IP address, it should connect as part of the failover since serverID 1 is down.

Also, any suggestions on what kind of load balancer to use with the OpenLDAP mirrormode?

Any thoughts would be appreciated.

Thanks,
Mike


---------------------------------------------------------

This e-mail message is intended only for the personal use of the recipient(s)
named above. If you are not an intended recipient, you may not review, copy or
distribute this message. If you have received this communication in error,
please notify the CDS Global Help Desk (cdshelpdesk@cds-global.com) immediately
by e-mail and delete the original message.

---------------------------------------------------------