[Date Prev][Date Next]
Re: master ldap database is not getting populated
- To: openldap-software@OpenLDAP.org
- Subject: Re: master ldap database is not getting populated
- From: Moe <email@example.com>
- Date: Fri, 9 Dec 2005 16:41:02 -0800 (PST)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=EI8vm0HJx+sRLz0LcyHumsHh+Dlxszcvv9Z9mv7dw4h7SUT8R6QyNT0dKqIVktZ2rPOtsApTomjc43sdNVbYshNoaiGkivgKRyTNPIkX3s+2W1YGL9XIrBYYoLB3Z1uBnw9DQ/sqNtzSedF2RjAb+pM8opvJe57R6v2LBj8TVe4= ;
- In-reply-to: <439957C0.firstname.lastname@example.org>
I created ldif file using slapcat. The ldif file has entries like entryUUID etc.. I removed those so that i can use ldapadd to add the missing entries.
example: When i do
ldapsearch -x -b 'uid=AHEALY,dc=local,dc=gov' '(objectclass=*)'
i get back object no object found.
when i try to add the entry i get
adding new entry "uid=AHEALY,dc=local,dc=gov"
request 2 done
ldap_add: Already exists (68)
This is happening with all the entries that are looks missing. I have no clue why this is happening. slurpd deamon is running and i know those supposedly missing entries are in the slave database.
Any ideas why this might be happening?
Howard Chu <email@example.com> wrote:
You cannot copy the raw database files from a 64-bit architecture to a
In general you should not copy raw database files at all, use slapcat
and slapadd like the Admin Guide says.
> Both master and slave are using openldap-2.2.28.
> Both are also using Berkekely db (db-4.3.28.NC). the only difference is that the master ldap/database backened packages are compiled on itanium platform. The slave ldap is running on an x-86 platform. I don't know if that's the reason why trying to bring up slapd on master after copying the database files to from slave to master failed.
> under openldap-data there are these files.
> __db.001 __db.004 id2entry.bdb
> __db.002 __db.005 log.0000000001
> __db.003 dn2id.bdb objectClass.bdb
> can anyone please tell me where are the ldap entries stored?. what does __db files and log files used for?
> The way i tried to do a restore from slave to master is by copying all the above files
> to the openldap-data of the master.
> Quanah Gibson-Mount wrote:
> --On Thursday, December 08, 2005 10:38 AM -0800 Moe
>> My master database has currently 60 missing entries. I tried to restore
>> the database from the slave database but its didn't work cause Berkeley
>> Db is different version. How can i track the different entries and
>> maybe manually add them to the master database?. Im trying to find a
>> quick easy way to restore my missing entries. Im not sure if i can use
>> slave database to export the missing entries to an ldiff file and then
>> use the ldiff file to populate the master database. I also don't know
>> how to find what entries are missing in the master ldap.
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/
Find Great Deals on Holiday Gifts at Yahoo! Shopping