Re: bdb backend - reliable or not?

2006-07-26 Thread Buchan Milne
> >> To: openldap > >> Subject: RE: bdb backend - reliable or not? > >> > >> Do you have any idea where might we locate this special startup script? > >> :) > > > > In OpenLDAP 2.3 2.3 slapd automatically recovers the database when >

Re: bdb backend - reliable or not?

2006-07-20 Thread Tomasz Chmielewski
2006 7:55 AM To: openldap Subject: RE: bdb backend - reliable or not? Do you have any idea where might we locate this special startup script? :) In OpenLDAP 2.3 2.3 slapd automatically recovers the database when needed. There is no special startup script needed. So, will it recover, or will

Re: bdb backend - reliable or not?

2006-07-20 Thread Andreas Hasenack
On Thu, Jul 20, 2006 at 09:55:46PM +0200, Tomasz Chmielewski wrote: > Matthew Hardin wrote: > >>Tomasz Chmielewski wrote: > >> > >>(...) > >> > >[...] > >>I digged a bit in the mailing list, and found that OpenLDAP with bdb > >>backend needs a special startup script to recover from such situations.

Re: bdb backend - reliable or not?

2006-07-20 Thread Dieter Kluenter
Tomasz Chmielewski <[EMAIL PROTECTED]> writes: > Matthew Hardin wrote: >>> Tomasz Chmielewski wrote: >>> >>> (...) >>> >> [...] > > Although it sounds great, lots of posts on this group prove quite the > contrary - there are problems with recovery with bdb backends, and for > lots of people it ta

Re: bdb backend - reliable or not?

2006-07-20 Thread Howard Chu
Owen DeLong wrote: This may not be the politically correct thing to say here, but, it is my experience and YMMV. BDB is very stable and reliable, once you get the right combination of configuration figured out. There's lots of different things that need to be set up to get BDB stable and many o

Re: bdb backend - reliable or not?

2006-07-20 Thread Pierangelo Masarati
> So, will it recover, or will it not? It will. > I'm confused, I use 2.3.6, and it doesn't recover. After reading lots of > posts in this thread, I would say db_recover is needed after an unclean > shutdown. > > Did you mean a recent 2.3 version (2.3.24 or so)? I believe at least 18 releases oc

Re: bdb backend - reliable or not?

2006-07-20 Thread Quanah Gibson-Mount
ubject: RE: bdb backend - reliable or not? Do you have any idea where might we locate this special startup script? :) In OpenLDAP 2.3 2.3 slapd automatically recovers the database when needed. There is no special startup script needed. So, will it recover, or will it not? I'm confused,

Re: bdb backend - reliable or not?

2006-07-20 Thread Quanah Gibson-Mount
--On Thursday, July 20, 2006 9:49 PM +0200 Tomasz Chmielewski <[EMAIL PROTECTED]> wrote: FRLinux wrote: On 7/20/06, Tomasz Chmielewski <[EMAIL PROTECTED]> wrote: It's hard to do so when you have multiple servers, and don't know which one had a power outage... If you don't mind me saying,

Re: bdb backend - reliable or not?

2006-07-20 Thread Tomasz Chmielewski
Matthew Hardin wrote: Tomasz Chmielewski wrote: (...) [...] I digged a bit in the mailing list, and found that OpenLDAP with bdb backend needs a special startup script to recover from such situations. Too bad it isn't mentioned, even short and briefly, in OpenLDAP Admin Guide. It's not men

Re: bdb backend - reliable or not?

2006-07-20 Thread Tomasz Chmielewski
Matthew Hardin wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:owner-openldap- [EMAIL PROTECTED] On Behalf Of Daniel Maher Sent: Thursday, July 20, 2006 7:55 AM To: openldap Subject: RE: bdb backend - reliable or not? Do you have any idea where might we locate this special

Re: bdb backend - reliable or not?

2006-07-20 Thread Tomasz Chmielewski
FRLinux wrote: On 7/20/06, Tomasz Chmielewski <[EMAIL PROTECTED]> wrote: It's hard to do so when you have multiple servers, and don't know which one had a power outage... If you don't mind me saying, i thought it was what notification utilities were for (nagios springs to mind ...) You're mi

Re: bdb backend - reliable or not?

2006-07-20 Thread Owen DeLong
This may not be the politically correct thing to say here, but, it is my experience and YMMV. BDB is very stable and reliable, once you get the right combination of configuration figured out. There's lots of different things that need to be set up to get BDB stable and many of them are less than

RE: bdb backend - reliable or not?

2006-07-20 Thread Matthew Hardin
Atom Powers wrote: > > Tomasz Chmielewski wrote: > > Atom Powers wrote: > > > > (...) > > > >> Then put the db_recover command in your start-up script, and/or tune > >> BDB so that it can survive a crash more easily. > > > > Is it OK if I put "db_recover" before each slapd startup? I guess it > >

RE: bdb backend - reliable or not?

2006-07-20 Thread Matthew Hardin
Atom Powers wrote: > > Tomasz Chmielewski wrote: > > Unfortunately, the choice was a disaster - a couple of tests showed that > > after powering off the server, OpenLDAP is not able to start anymore - > > all I see in logs is a single message (loglevel 256): > > > > bdb_db_open: unclean shutdown d

RE: bdb backend - reliable or not?

2006-07-20 Thread Matthew Hardin
> Tomasz Chmielewski wrote: > > (...) > [...] > > I digged a bit in the mailing list, and found that OpenLDAP with bdb > backend needs a special startup script to recover from such situations. > > Too bad it isn't mentioned, even short and briefly, in OpenLDAP Admin > Guide. It's not mentioned

Re: bdb backend - reliable or not?

2006-07-20 Thread FRLinux
On 7/20/06, Tomasz Chmielewski <[EMAIL PROTECTED]> wrote: It's hard to do so when you have multiple servers, and don't know which one had a power outage... If you don't mind me saying, i thought it was what notification utilities were for (nagios springs to mind ...) Steph

Re: bdb backend - reliable or not?

2006-07-20 Thread FRLinux
On 7/20/06, Tomasz Chmielewski <[EMAIL PROTECTED]> wrote: Did you ever press the reset button to simulate a power outage? :) As a matter of fact, i did better than simulate, due to *human error* it did happen twice and bdb does recover from it pretty well. Steph

Re: bdb backend - reliable or not?

2006-07-20 Thread Atom Powers
Tomasz Chmielewski wrote: Atom Powers wrote: (...) Then put the db_recover command in your start-up script, and/or tune BDB so that it can survive a crash more easily. Is it OK if I put "db_recover" before each slapd startup? I guess it should be avoided. In that case, how can I detect tha

RE: bdb backend - reliable or not?

2006-07-20 Thread Matthew Hardin
> -Original Message- > From: [EMAIL PROTECTED] [mailto:owner-openldap- > [EMAIL PROTECTED] On Behalf Of Tomasz Chmielewski > Sent: Thursday, July 20, 2006 1:24 AM > To: openldap-software@OpenLDAP.org > Subject: bdb backend - reliable or not? > > Previously I was

RE: bdb backend - reliable or not?

2006-07-20 Thread Matthew Hardin
> -Original Message- > From: [EMAIL PROTECTED] [mailto:owner-openldap- > [EMAIL PROTECTED] On Behalf Of Daniel Maher > Sent: Thursday, July 20, 2006 7:55 AM > To: openldap > Subject: RE: bdb backend - reliable or not? > > Do you have any idea where might we loc

Re: bdb backend - reliable or not?

2006-07-20 Thread Tomasz Chmielewski
FRLinux wrote: On 7/20/06, Daniel Maher <[EMAIL PROTECTED]> wrote: Do you have any idea where might we locate this special startup script? :) I think he actually meant : where to find the special utility to recover from corrupted databases, so namely that would be db_recover. And as mentionned

Re: bdb backend - reliable or not?

2006-07-20 Thread Tomasz Chmielewski
FRLinux wrote: On 7/20/06, Tomasz Chmielewski <[EMAIL PROTECTED]> wrote: Will an upgrade to 2.3.24 solve my problems with bdb, or shall I revert back to ldbm? We've been using 2.3.21 for a bit and recently upgraded to 2.3.24 and all servers are really happy. Worth mentionning that from 2.1.x t

Re: bdb backend - reliable or not?

2006-07-20 Thread FRLinux
On 7/20/06, Tomasz Chmielewski <[EMAIL PROTECTED]> wrote: Will an upgrade to 2.3.24 solve my problems with bdb, or shall I revert back to ldbm? We've been using 2.3.21 for a bit and recently upgraded to 2.3.24 and all servers are really happy. Worth mentionning that from 2.1.x to 2.3.x, we've a

Re: bdb backend - reliable or not?

2006-07-20 Thread FRLinux
On 7/20/06, Daniel Maher <[EMAIL PROTECTED]> wrote: Do you have any idea where might we locate this special startup script? :) I think he actually meant : where to find the special utility to recover from corrupted databases, so namely that would be db_recover. And as mentionned in a previous p

Re: bdb backend - reliable or not?

2006-07-20 Thread Tomasz Chmielewski
Atom Powers wrote: (...) Then put the db_recover command in your start-up script, and/or tune BDB so that it can survive a crash more easily. Is it OK if I put "db_recover" before each slapd startup? I guess it should be avoided. In that case, how can I detect that the server crashed unexpe

Re: bdb backend - reliable or not?

2006-07-20 Thread Atom Powers
Tomasz Chmielewski wrote: Unfortunately, the choice was a disaster - a couple of tests showed that after powering off the server, OpenLDAP is not able to start anymore - all I see in logs is a single message (loglevel 256): bdb_db_open: unclean shutdown detected; attempting recovery. And that

Re: bdb backend - reliable or not?

2006-07-20 Thread Chris Lundell
Chris Lundell wrote: Dieter Kluenter wrote: Tomasz Chmielewski <[EMAIL PROTECTED]> writes: Previously I was using OpenLDAP 2.1.x and 2.2.x with ldbm backend. I never had problems with it. As I've read on the list that ldbm support will be dropped in the next major version of OpenLDAP, and

Re: bdb backend - reliable or not?

2006-07-20 Thread Tomasz Chmielewski
matthew sporleder wrote: That special startup script is only for 2.2. As your logs show, openldap attempted to automatically recover. You can try running db_recover manually, and see if that works. It's hard to do so when you have multiple servers, and don't know which one had a power outage

Re: bdb backend - reliable or not?

2006-07-20 Thread Tomasz Chmielewski
Daniel Maher wrote: Do you have any idea where might we locate this special startup script? :) Hmm, if you're talking about the documentation (OpenLDAP Admin Guide), I'd mention the fact that one needs to run db_recover after an unclean shutdown (power outage). And an example init.d script

Re: bdb backend - reliable or not?

2006-07-20 Thread Quanah Gibson-Mount
--On Thursday, July 20, 2006 10:23 AM +0200 Tomasz Chmielewski <[EMAIL PROTECTED]> wrote: Previously I was using OpenLDAP 2.1.x and 2.2.x with ldbm backend. I never had problems with it. As I've read on the list that ldbm support will be dropped in the next major version of OpenLDAP, and b

RE: bdb backend - reliable or not?

2006-07-20 Thread Daniel Maher
Behalf Of Tomasz Chmielewski Sent: July 20, 2006 9:59 AM To: openldap Subject: Re: bdb backend - reliable or not? Tomasz Chmielewski wrote: (...) > Performance is not an issue here, databases are relatively small. > What is important is the ability to survive unexpected system > crash/pow

Re: bdb backend - reliable or not?

2006-07-20 Thread Chris Lundell
Dieter Kluenter wrote: Tomasz Chmielewski <[EMAIL PROTECTED]> writes: Previously I was using OpenLDAP 2.1.x and 2.2.x with ldbm backend. I never had problems with it. As I've read on the list that ldbm support will be dropped in the next major version of OpenLDAP, and bdb is the recommended

Re: bdb backend - reliable or not?

2006-07-20 Thread matthew sporleder
That special startup script is only for 2.2. As your logs show, openldap attempted to automatically recover. You can try running db_recover manually, and see if that works. On 7/20/06, Tomasz Chmielewski <[EMAIL PROTECTED]> wrote: Tomasz Chmielewski wrote: (...) > Performance is not an issue

Re: bdb backend - reliable or not?

2006-07-20 Thread Dieter Kluenter
Tomasz Chmielewski <[EMAIL PROTECTED]> writes: > Previously I was using OpenLDAP 2.1.x and 2.2.x with ldbm backend. > > I never had problems with it. > > As I've read on the list that ldbm support will be dropped in the next > major version of OpenLDAP, and bdb is the recommended backend, I > deci

Re: bdb backend - reliable or not?

2006-07-20 Thread Tomasz Chmielewski
Tomasz Chmielewski wrote: (...) Performance is not an issue here, databases are relatively small. What is important is the ability to survive unexpected system crash/poweroff. I digged a bit in the mailing list, and found that OpenLDAP with bdb backend needs a special startup script to reco

bdb backend - reliable or not?

2006-07-20 Thread Tomasz Chmielewski
Previously I was using OpenLDAP 2.1.x and 2.2.x with ldbm backend. I never had problems with it. As I've read on the list that ldbm support will be dropped in the next major version of OpenLDAP, and bdb is the recommended backend, I decided to deploy a couple of new OpenLDAP servers with bdb b