The document I had suggested using ldapsearch and ldapadd to migrate data. If lidf2db commands are faster/better I will use them.<br><br>>> Try creating all of the required indexes first, then doing the import of<br>
>> your original LDIF.<br><br>I am willing to try this, but It is scary to me. I would have rather you said I must be doing something wrong...because....<br><br>Our LDAP database has been in production for 6 years. We add indexes to our i-planet on average twice a year due to new software or new features. Your advice is almost suggesting that adding new indexes can corrupt the database. 
<br><br>I will try again from scratch using everyones advice of course. <br><br>Thank you,<br>Edward<br><br><br><br><br><br><div><span class="gmail_quote">On 12/16/06, <b class="gmail_sendername">Noriko Hosoi</b> <<a href="mailto:nhosoi@redhat.com">
nhosoi@redhat.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Richard Megginson wrote:<br><br>> Eddie C wrote:<br>
><br>>> I recently did an ldif backup of our iplanet 52 database. Its about<br>>> an 88 MB ldif file.<br>>> I took this to a new FDS server Dell 850 3 ghz duel core 2 sata hard<br>>> disks.<br>>> I ran an ldapadd  the data imported perfectly.
<br>><br>Are there any reason to use ldapadd instead of ldif2db?  ldif2db should<br>be much faster...<br><br>>> Then I tried to cutover some systems and give the database some load.<br>>><br>>> System went 200% processor
<br>>><br>>> Eventually I realized I was missing indexes so I added them through<br>>> the graphical tool.<br>>><br>>> The log seemed to do something like this<br>>> generating index 1%
<br>>> generating index 2%<br>>> ....<br>>> generating index 49%<br>>> Done<br>>> Seemed weird that they would jump from 49% to Done<br>>> At this point the new system was running at 100% processor
<br>>> But the queries are running faster on our old 440 MHZ sparc t1<br>>> server52 database<br>>><br>>> I ran<br>>> DB ERROR: db_verify: Page 30: out-of-order key at entry 498<br>>> DB ERROR: db_verify: DB->verify: db/o_com/channelcontentowner.db4:
<br>>> DB_VERIFY_BAD: Database verification failed<br>>><br>>> then I tried db2_index. The program seemed to be in a tight loop<br>>> complaining about 1 missing entry.<br>>><br>>> I do not realize how the data can be so corrupted right after an import.
<br>>><br>>> These are someone generic symptoms. Any ideas? Thanks<br>><br>> Try creating all of the required indexes first, then doing the import<br>> of your original LDIF.  Not only will the import+index creation be
<br>> much faster (than doing the import then creating the indexes one at a<br>> time), but I think your database corruption problems will vanish.<br>><br>>> ------------------------------------------------------------------------
<br>>><br>>> --<br>>> Fedora-directory-users mailing list<br>>> <a href="mailto:Fedora-directory-users@redhat.com">Fedora-directory-users@redhat.com</a><br>>> <a href="https://www.redhat.com/mailman/listinfo/fedora-directory-users">
https://www.redhat.com/mailman/listinfo/fedora-directory-users</a><br>>><br>><br>>------------------------------------------------------------------------<br>><br>>--<br>>Fedora-directory-users mailing list
<br>><a href="mailto:Fedora-directory-users@redhat.com">Fedora-directory-users@redhat.com</a><br>><a href="https://www.redhat.com/mailman/listinfo/fedora-directory-users">https://www.redhat.com/mailman/listinfo/fedora-directory-users
</a><br>><br>><br><br><br><br>--<br>Fedora-directory-users mailing list<br><a href="mailto:Fedora-directory-users@redhat.com">Fedora-directory-users@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/fedora-directory-users">
https://www.redhat.com/mailman/listinfo/fedora-directory-users</a><br><br><br><br></blockquote></div><br>