Kimmo Koivisto wrote: > Hello > > I reinstalled FDS 1.0.4 and tried to restore backup, but something goes wrong > and after restore is done, ldapsearch does not return any entries (and there > should be about 1300 entries). > Can you do a export (db2ldif) ? Looks like the database config changed somehow in some incompatible way between the time you made the backup and the time you did the restore. I'm not exactly sure how. > Any ideas what is the problem and how to fix it? I just need to restore it to > export ldif from it, is it possible to export ldif from the backup if it > cannot be restored? > Try db2ldif - it may work. If not, find your id2entry.db4 file and do a "strings" on it. This should dump your data. You'll have to remove operational attributes such as entryid, parentid, entrydn, and nsuniqueid from the output, and ensure that every entry ends with a blank line. > Regards, > Kimmo > > <log> > [24/Nov/2007:18:36:16 +0200] - Deleting log file: > (/opt/fedora-ds/slapd-myserver2/db/log.0000000001) > [24/Nov/2007:18:36:16 +0200] - Restoring file 1 > (/opt/fedora-ds/slapd-myserver2/db/DBVERSION) > [24/Nov/2007:18:36:16 +0200] - Restoring file 2 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/objectclass.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 3 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/parentid.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 4 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/cn.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 5 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/nscpEntryDN.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 6 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/sn.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 7 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/nsUniqueId.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 8 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/uid.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 9 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/member.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 10 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/nsds5ReplConflict.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 11 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/DBVERSION) > [24/Nov/2007:18:36:16 +0200] - Restoring file 12 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/telephoneNumber.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 13 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/ancestorid.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 14 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/aci.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 15 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/entrydn.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 16 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/seeAlso.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 17 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/givenName.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 18 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/owner.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 19 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/id2entry.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 20 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/numsubordinates.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 21 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/uniquemember.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 22 > (/opt/fedora-ds/slapd-myserver2/db/userRoot/mail.db4) > [24/Nov/2007:18:36:16 +0200] - Restoring file 23 > (/opt/fedora-ds/slapd-myserver2/db/log.0000011927) > [24/Nov/2007:18:36:17 +0200] - Add Instance Config Entry cn=userRoot,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:17 +0200] - Del Instance Config Entry > cn=NetscapeRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - ldbm: Bringing NetscapeRoot offline... > [24/Nov/2007:18:36:18 +0200] - ldbm: removing 'NetscapeRoot'. > [24/Nov/2007:18:36:18 +0200] - Destructor for instance NetscapeRoot called > [24/Nov/2007:18:36:18 +0200] - Del Instance Config Entry cn=userRoot,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - ldbm: Bringing userRoot offline... > [24/Nov/2007:18:36:18 +0200] - ldbm: removing 'userRoot'. > [24/Nov/2007:18:36:18 +0200] - Destructor for instance userRoot called > [24/Nov/2007:18:36:18 +0200] - WARNING!!: current Instance Config is different > from backed up configuration; The backup is restored. > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=cn,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=entrydn,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=givenName,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=mail,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry > cn=mailAlternateAddress,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=mailHost,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=member,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry > cn=nsCalXItemId,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry > cn=nsLIProfileName,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=nsUniqueId,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry > cn=nswcalCALID,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=ntUniqueId,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry > cn=ntUserDomainId,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry > cn=numsubordinates,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry > cn=objectclass,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=owner,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=parentid,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=pipstatus,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=pipuid,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=seeAlso,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=sn,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry > cn=telephoneNumber,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry cn=uid,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Del Index Config Entry > cn=uniquemember,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Add Index Config Entry > cn=aci,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Add Index Config Entry cn=cn,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Add Index Config Entry > cn=cn,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:18 +0200] - Add Index Config Entry cn=entrydn,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=entrydn,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=givenName,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=givenName,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=mail,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=mail,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=mailAlternateAddress,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=mailAlternateAddress,cn=index,cn=userRoot,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=mailHost,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=mailHost,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=member,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=member,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=nsCalXItemId,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=nsCalXItemId,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=nscpEntryDN, > cn=index, cn=userRoot, cn=ldbm database, cn=plugins, cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=nsds5ReplConflict, > cn=index, cn=userRoot, cn=ldbm database, cn=plugins, cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=nsLIProfileName,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=nsLIProfileName,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=nsUniqueId,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=nsUniqueId,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=nswcalCALID,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=nswcalCALID,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=ntUniqueId,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=ntUniqueId,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=ntUserDomainId,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=ntUserDomainId,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=numsubordinates,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=numsubordinates,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=objectclass,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=objectclass,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=owner,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=owner,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=parentid,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=parentid,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=pipstatus,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=pipstatus,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=pipuid,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=pipuid,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=seeAlso,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=seeAlso,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=sn,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=sn,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=telephoneNumber,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=telephoneNumber,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry cn=uid,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=uid,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=uniquemember,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Add Index Config Entry > cn=uniquemember,cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=aci,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=cn,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=entrydn,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=givenName,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=mail,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry > cn=mailAlternateAddress,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=mailHost,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=member,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry > cn=nsCalXItemId,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry > cn=nsLIProfileName,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=nsUniqueId,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry > cn=nswcalCALID,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=ntUniqueId,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry > cn=ntUserDomainId,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry > cn=numsubordinates,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry > cn=objectclass,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=owner,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=parentid,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=pipstatus,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=pipuid,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=seeAlso,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=sn,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry > cn=telephoneNumber,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry cn=uid,cn=default > indexes, cn=config,cn=ldbm database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - Del Index Config Entry > cn=uniquemember,cn=default indexes, cn=config,cn=ldbm > database,cn=plugins,cn=config > [24/Nov/2007:18:36:19 +0200] - WARNING!!: current Index Config is different > from backed up configuration; The backup is restored. > > </log> > > -- > Fedora-directory-users mailing list > Fedora-directory-users at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users > -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3245 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.fedoraproject.org/pipermail/389-users/attachments/20071126/24b42254/attachment.bin