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

Re: OpenLDAP on CF disk



On Thu, 7 Nov 2013 11:08:28 +0000
"Maucci, Cyrille" <cyrille.maucci@hp.com> wrote:

> You should be specifying shm-key to benefit from shared mem vs memory
> mapped files

Ok, thanks for your answer Cyrille. Unfortunately, I'm not an OpenLDAP
guru, so I googled around a bit and found a lot of Zimbra
answers. But I searched for shm in the admin guide and found this:

http://www.openldap.org/doc/admin24/guide.html

Example:
        olcDbShmKey: 42

As I'm not quite sure what I'm doing, I backed up my database (on a
single OpenLDAP, not replicated) and I entered

olcDbShmKey: 42

into:

/etc/ldap/slapd.d/cn=config/olcDatabase={1}hdb.ldif

It seems to work: 

drwxr-x---  2 openldap openldap     4096 2013-11-07 13:32 .
drwxr-xr-x 61 root     root         4096 2013-10-26 10:35 ..
-rw-r-----  1 openldap openldap     4096 2013-11-07 13:32 alock
-rw-------  1 openldap openldap       16 2013-11-07 13:32 __db.001
-rw-r-----  1 openldap openldap       96 2013-11-07 13:03 DB_CONFIG
-rw-r-----  1 openldap openldap   167936 2013-11-04 19:49 dn2id.bdb
-rw-r-----  1 openldap openldap   917504 2013-11-07 12:15 id2entry.bdb
-rw-r-----  1 openldap openldap 10485760 2013-11-07 13:32 log.0000000001
-rw-r-----  1 openldap openldap    98304 2013-10-19 21:42
objectClass.bdb

But as I'm not knowing exactly what I'm doing, just a simple question:
Is this correct or not?

R.

-- 
___________________________________________________________________
It is better to remain silent and be thought a fool, than to speak
aloud and remove all doubt.

+------------------------------------------------------------------+
| Richard Lucassen, Utrecht                                        |
+------------------------------------------------------------------+