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? Thanks moe Howard Chu <[EMAIL PROTECTED]> wrote: You cannot copy the raw database files from a 64-bit architecture to a 32-bit architecture. In general you should not copy raw database files at all, use slapcat and slapadd like the Admin Guide says. Moe wrote: > 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. > > Thanks > Moe > > Quanah Gibson-Mount wrote: > > > --On Thursday, December 08, 2005 10:38 AM -0800 Moe > wrote: > > >> 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. >> thanks >> -- -- 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/ --------------------------------- Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping
