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

Re: BDB: Converting mmapped files to shared memory: Need slap{cat, add}?



Quanah Gibson-Mount wrote:
> --On Monday, August 27, 2012 9:42 AM +1000 Nick Urbanik 
> <nick.urbanik@optusnet.com.au> wrote:
> 
>> Dear Folks,
>>
>> I have a large production 2.4.32 LDAP server slaving many trees.  I
>> set it up with memory-mapped files, and want to change it to use
>> shared memory instead, since shared memory BDB seems to work better
>> after watching the other servers that have been upgraded 2.3 => 2.4.32
>> with shared memory.
>>
>> To convert this, do I need to slapcat the directories and restore them
>> after the configuration change with slapadd, or is it sufficient to
>> use db_recover in each LDAP database after changing the configuration
>> while slapd is stopped?
> 
> All you have to do is modify slapd.conf/cn=config to use a shared memory 
> key.  BDB should take care of the rest.  There is definitely no need to 
> slapcat/slapadd the DB.  A shared memory key changes where BDB stores its 
> cache, not where the database is stored, or how slapd interfaces with BDB.

If using slapd.conf, you need to manually do a db_recover to make the change
take effect.

-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/