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

Re: migrating data from ldbm to bdb



On Tuesday 14 February 2006 12:09, Necati Demir wrote:
> i used these;
>
> slapcat -l data.ldif
>
> and then in the config file, i changed the
> database ldbm
> line to
> database bdb.
>
> Then, i restarted ldap, and did
> slapadd -l data.ldif

slapd should not be running when you use slapadd.

> but id doesnt do something.
> It only waits.


You should actually do this:

1)Stop slapd
2)slapcat -l data.ldif
3)Edit slapd.conf, change ldbm to bdb, add a checkpoint directive (see 
slapd-bdb(5)).
4)Move the existing database files
5)Add a DB_CONFIG file (see the FAQ-o-matic for some info here)
6)slapadd -l data.ldif
7)Check permissions of the database files
8)Start slapd

If you are running anything older than 2.3, there may be additional steps you 
should take to ensure data integrity in the case of an unclean shutdown.

Regards,
Buchan

-- 
Buchan Milne
ISP Systems Specialist
B.Eng,RHCE(803004789010797),LPIC-2(LPI000074592)

Attachment: pgpJzolbIwuCq.pgp
Description: PGP signature