[Date Prev][Date Next]
Re: Ldap Servers sharing same mount point
When I modified gdbm_open function in the file
libraries/libldbm/ldbm.c to have GDBM_NOLOCK, I was
able to do ldapsearch from two LDAP servers sharing
the same NFS mount. But, doing a write from one LDAP
server and read from other one, caused the writing
LDAP server to crash. (So, this could not be
It seems, once the index file (dn2id.gdbm) is open by
the server, the lock acquired exists till the ldap
server is stopped. But, there should be no harm (I
mean none of the index/database files will be
corrupted) if only one slapd modifies the
database/processes the queries, while the other one is
only processing queries. I am not that an expert of
the OpenLdap source code, but any idea whether this is
feasible, if so how much time will it take ?
Are the index/database files modified during
(My assumption is that they are modified only for
I did not have any luck with slave slapd setup to get
data propagated to the master server.
I appreciate any help.
--- "Christian J. Chuba" <firstname.lastname@example.org>
> Hugo, a slight clarification. We are only trying to
> use two slapd servers
> to 'read' the directory not update the directory.
> Are you saying that only
> one slapd server can access the same back end
> storage even for read
> ----- Original Message -----
> From: <Hugo.van.der.Kooij@caiw.nl>
> To: "Iddyamadom Santhoshkumar" <email@example.com>
> Cc: <OpenLDAP-software@OpenLDAP.org>
> Sent: Sunday, December 03, 2000 5:59 AM
> Subject: Re: Ldap Servers sharing same mount point
> > On Sat, 2 Dec 2000, Iddyamadom Santhoshkumar
> > > As part of setting up two ldap servers (for
> > > availability) we thought of setting up two
> > > with OpenLdap installed on both of them. Both
> > > point to the same database (same "directory"
> entry in
> > > slapd.conf in both machines). It is possible to
> > > ldapsearch only on the machine where slapd is
> > > first. On the other machine, ldapsearch gives
> > > "ldap_search: No Such object" . With detailed
> log, it
> > > seems the problem is ldbm_cache_open returns
> error 11,
> > > "Resource Temporarily Unavailable", while trying
> > > open dn2id.gdbm
> > I don't think you can have two servers accessing
> the same backend database
> > like this. Perhaps it works with a SQL backend
> database but it is a
> > nightmare setup.
> > For multiple servers the replication daemon is the
> path to go.
> > Hugo.
> > --
> > Hugo van der Kooij; Oranje Nassaustraat 16; 3155
> VJ Maasland
> > firstname.lastname@example.org
> > This message has not been checked and may contain
> harmfull content.
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.