<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 01/03/2012 03:50 PM, Groten, Ryan wrote:
    <blockquote
cite="mid:29F917775E38DD48A3E25AFAC4CEC2B403FCE7132C@EX-CLUS-MBX-01.abcp.ab.bluecross.ca"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle22
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <div>
          <div style="border-right: medium none; border-width: 1pt
            medium medium; border-style: solid none none; border-color:
            rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
            padding: 3pt 0in 0in;">
            <p class="MsoNormal"><b><span style="font-size: 10pt;
                  font-family:
                  &quot;Tahoma&quot;,&quot;sans-serif&quot;; color:
                  windowtext;">From:</span></b><span style="font-size:
                10pt; font-family:
                &quot;Tahoma&quot;,&quot;sans-serif&quot;; color:
                windowtext;"> Rich Megginson
                [<a class="moz-txt-link-freetext" href="mailto:rmeggins@redhat.com">mailto:rmeggins@redhat.com</a>] <br>
                <b>Sent:</b> Tuesday, January 03, 2012 3:42 PM<br>
                <b>To:</b> General discussion list for the 389 Directory
                server project.<br>
                <b>Cc:</b> Groten, Ryan<br>
                <b>Subject:</b> Re: [389-users] bak2db restore got stuck
                in infinite loop<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal">On 01/03/2012 03:14 PM, Groten, Ryan wrote:
          <o:p></o:p></p>
        <p class="MsoNormal">Hi everyone,<o:p></o:p></p>
        <p class="MsoNormal">&nbsp;<o:p></o:p></p>
        <p class="MsoNormal">In my environment I have a total of 4
          directory servers, 2 multi-masters in production (ServerA,
          ServerB) and 2 multi-masters to test with (ServerC, ServerD).&nbsp;
          Basically here&#8217;s what I did:<o:p></o:p></p>
        <p class="MsoNormal">&nbsp;<o:p></o:p></p>
        <p class="MsoListParagraph" style="text-indent: -0.25in;">Took a
          backup of one of the production directory servers, ServerA<o:p></o:p></p>
        <p class="MsoListParagraph" style="text-indent: -0.25in;">Copied
          ServerA&#8217;s backup to ServerC (test).<o:p></o:p></p>
        <p class="MsoListParagraph" style="text-indent: -0.25in;">Deleted
          the replication agreement on ServerC to ServerD (but not the
          agreement from ServerD to ServerC)<o:p></o:p></p>
        <p class="MsoListParagraph" style="text-indent: -0.25in;">Ran
          /usr/lib64/dirsrv/slapd-ServerC/bak2db 2011_12_29_15_27_35<o:p></o:p></p>
        <p class="MsoNormal">&nbsp;<o:p></o:p></p>
        <p class="MsoNormal">The restore started, and never stopped
          running.&nbsp; I eventually killed it and tried again, this time
          capturing the output:<o:p></o:p></p>
        <p class="MsoNormal">&nbsp;<o:p></o:p></p>
        <p class="MsoNormal"># /usr/lib64/dirsrv/slapd-ServerC/bak2db
          2011_12_29_15_27_35<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700]
          389-Directory/1.2.9.9 - debug level: backend (524288)<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Deleting log
          file: (/var/lib/dirsrv/slapd-ServerC/db/log.0000000021)<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Restoring
          file 1 (/var/lib/dirsrv/slapd-ServerC/db/DBVERSION)<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Copying
          /var/lib/dirsrv/slapd-ServerC/bak/2011_12_29_15_27_35/DBVERSION
          to /var/lib/dirsrv/slapd-ServerC/db/DBVERSION<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Restoring
          file 2 (/var/lib/dirsrv/slapd-ServerC/db/log.0000000021)<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Copying
          /var/lib/dirsrv/slapd-ServerC/bak/2011_12_29_15_27_35/log.0000000021
          to /var/lib/dirsrv/slapd-ServerC/db/log.0000000021<o:p></o:p></p>
        <p class="MsoNormal">[ lines removed to reduce size ]<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Restoring
          file 33 (/var/lib/dirsrv/slapd-ServerC/db/userRoot/uid.db4)<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Copying
          /var/lib/dirsrv/slapd-ServerC/bak/2011_12_29_15_27_35/userRoot/uid.db4
          to /var/lib/dirsrv/slapd-ServerC/db/userRoot/uid.db4<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=aci,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=aci,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=entryrdn,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=entryrdn,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=nscpEntryDN,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=nscpEntryDN,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry
          cn=nsds5ReplConflict,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=nsds5ReplConflict,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=nsuniqueid,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=nsuniqueid,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry
          cn=numsubordinates,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=numsubordinates,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=objectclass,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=objectclass,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=parentid,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=parentid,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=aci,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=aci,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=entryrdn,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=entryrdn,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=nscpEntryDN,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=nscpEntryDN,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry
          cn=nsds5ReplConflict,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=nsds5ReplConflict,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=nsuniqueid,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=nsuniqueid,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry
          cn=numsubordinates,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=numsubordinates,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=objectclass,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=objectclass,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=parentid,cn=index,cn=NetscapeRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">[03/Jan/2012:15:06:43 -0700] - Del Index
          Config Entry cn=parentid,cn=index,cn=userRoot,cn=ldbm
          database,cn=plugins,cn=config<o:p></o:p></p>
        <p class="MsoNormal">&#8230;<o:p></o:p></p>
        <p class="MsoNormal">&nbsp;<o:p></o:p></p>
        <p class="MsoNormal">The output just continues to display those
          same &#8220;Del Index Config Entry&#8221; lines until I stop it.<o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;;">Which same
            lines?&nbsp; You mean after parentid, it starts over again with
            cn=aci?&nbsp; And it just keeps on doing that over and over until
            you abort it?&nbsp; That's very strange that it is omitting
            cn=seealso and cn=sn and cn=telephoneNumber and cn=uid and
            cn=uniquemember which are the other standard default
            indexes.</span><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;; color:
            rgb(31, 73, 125);"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Yes
            after parentid it starts again at aci and just keeps
            displaying those same 18 lines.&nbsp; The indexes above show up
            as &#8220;system indexes&#8221; while the ones you listed are additional
            indexes if that means anything.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;;"><br>
            <br>
            What version of 389-ds-base?&nbsp; What platform?</span><span
            style="font-size: 12pt; font-family: &quot;Times New
            Roman&quot;,&quot;serif&quot;; color: rgb(31, 73, 125);"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">389-ds-base-1.2.9.9-1.el5<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">RedHat
            EL 5.5<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;;"><br>
            <br>
            <o:p></o:p></span></p>
        <p class="MsoNormal">After that I tried deleting the replication
          agreement on ServerD to ServerC, then tried restoring one of
          my original ServerC backups but it did the same thing.<o:p></o:p></p>
        <p class="MsoNormal">I have had this problem before trying to do
          restores of backups from the same server and I thought it had
          something to do with having replication enabled so I would
          disable it before doing restores (like above)&#8230;thought that
          fixed it but seems like it hasn&#8217;t.&nbsp; Does anyone know what I&#8217;m
          doing wrong?<o:p></o:p></p>
        <p class="MsoNormal">&nbsp;<o:p></o:p></p>
        <p class="MsoNormal">Thanks for the help</p>
      </div>
    </blockquote>
    I've filed <a class="moz-txt-link-freetext" href="https://fedorahosted.org/389/ticket/4">https://fedorahosted.org/389/ticket/4</a> to track this
    issue.&nbsp; Please feel free to add yourself to the CC list (you'll need
    a Fedora account to do so - see <a class="moz-txt-link-freetext" href="https://fedorahosted.org/389/wiki">https://fedorahosted.org/389/wiki</a>)
    and add any comments<br>
    <blockquote
cite="mid:29F917775E38DD48A3E25AFAC4CEC2B403FCE7132C@EX-CLUS-MBX-01.abcp.ab.bluecross.ca"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;;"><o:p>&nbsp;</o:p></span></p>
        <div class="MsoNormal" style="text-align: center;"
          align="center"><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;;">
            <hr align="center" size="2" width="100%"></span></div>
        <p class="MsoNormal"><span style="font-size: 10pt; font-family:
            &quot;Arial&quot;,&quot;sans-serif&quot;; color: gray;">This
            communication, including any attached documentation, is
            intended only for the person or entity to which it is
            addressed, and may contain confidential, personal and/or
            privileged information. Any unauthorized disclosure,
            copying, or taking action on the contents is strictly
            prohibited. If you have received this message in error,
            please contact us immediately so we may correct our records.
            Please then delete or destroy the original transmission and
            any subsequent reply.<br>
            <br>
          </span><span style="font-size: 12pt; font-family: &quot;Times
            New Roman&quot;,&quot;serif&quot;;"><o:p></o:p></span></p>
        <pre><o:p>&nbsp;</o:p></pre>
        <pre><o:p>&nbsp;</o:p></pre>
        <pre>--<o:p></o:p></pre>
        <pre>389 users mailing list<o:p></o:p></pre>
        <pre><a moz-do-not-send="true" href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><o:p></o:p></pre>
        <pre><a moz-do-not-send="true" href="https://admin.fedoraproject.org/mailman/listinfo/389-users">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><o:p></o:p></pre>
        <p class="MsoNormal"><span style="font-size: 12pt; font-family:
            &quot;Times New Roman&quot;,&quot;serif&quot;;"><o:p>&nbsp;</o:p></span></p>
      </div>
    </blockquote>
    <br>
  </body>
</html>