[CentOS] nss_ldap: reconnected to LDAP server ldap://127.0.0.1

Fri Feb 18 19:05:09 UTC 2011
Tim Alberts <talberts at msiscales.com>

On 2/18/2011 10:11 AM, Tim Alberts wrote:
>
> Update, using Webmin to restart the server, I see the following:
> Stopping slapd: [  OK  ]
> Stopping slurpd: [  OK  ]
> Checking configuration files for slapd:  bdb_db_open: unclean shutdown
> detected; attempting recovery.
> bdb_db_open: Recovery skipped in read-only mode. Run manual recovery if
> errors are encountered.
> config file testing succeeded
> [  OK  ]
> Starting slapd: [  OK  ]
> Starting slurpd: [  OK  ]
>
> I've been reading that the recovery is supposed to be automatic.
> Unfortunately it seems to be a read-only mode.
>
> Anyone know why it is read-only mode?
>
> Anyone have a simple tutorial on running 'db_recover' command?
>

I found a helpful page:
http://www.yolinux.com/TUTORIALS/LinuxTutorialLDAP.html  approximately 
2/3 down the page, section titled 'Notes: LDAP on Red Hat/Fedora 
distribution:'  An example database recovery command as follows:

/usr/sbin/slapd_db_recover -v -h /var/lib/ldap/stooges/

I have run this (twice now with ldap stopped) on all three servers and 
continue to have problems.  Now I'm really lost as to what to do.