[Fedora-directory-users] Upgrading from 7.1 to 1.0.2

Richard Megginson rmeggins at redhat.com
Fri Aug 11 00:04:55 UTC 2006


Darren Fulton - CTI wrote:
> Richard Megginson wrote:
>
>> Darren Fulton - CTI wrote:
>>> That seems to have fixed it!  Awesome.  Thank you Richard. For the 
>>> record, here are the details of what I did based on Richard's 
>>> instructions:
>>>
>>> cd /opt/fedora-ds/slapd-host2/
>>> ./db2ldif -s o=netscaperoot > nsroot.ldif
>>> ## That created an ldif file at 
>>> /opt/fedora-ds/slapd-host2/ldif/2006_08_01_181049.ldif
>>> cat /opt/fedora-ds/slapd-host2/ldif/2006_08_01_181049.ldif
>>> ## That looks good cd /opt/fedora-ds/slapd-host2/ldif/
>>> cp -p 2006_08_01_181049.ldif 2006_08_01_181049.ldif.orig
>>> rpl "ou=4.0" "ou=1.0" 2006_08_01_181049.ldif
>>> ## If no rpl, manually edit with vi or something
>>> cd /opt/fedora-ds/slapd-host2/
>>> ./ldif2db -s o=netscaperoot -i 
>>> /opt/fedora-ds/slapd-host2/ldif/2006_08_01_181049.ldif
>>> ## That failed with "Unable to import the database because it is 
>>> being used by another slapd process."
>>> /opt/fedora-ds/slapd-host2/stop-slapd
>>> ./ldif2db -s o=netscaperoot -i 
>>> /opt/fedora-ds/slapd-host2/ldif/2006_08_01_181049.ldif
>>> ## That time it seems to have worked.
>>> /opt/fedora-ds/slapd-host2/start-slapd
>>> cd /opt/fedora-ds
>>> ./startconsole
>>> ## It Works!
>>>
>>> -- 
>>> Best Regards,
>>>
>>> Darren Fulton
>>> Concept Technology, Inc. 
>> I've updated the Install_Guide with this information - 
>> http://directory.fedora.redhat.com/wiki/Install_Guide#Upgrading_from_the_7.1_release 
>>
>>   
> I had to repeat the process above one more time and make two 
> additional replacements to the ldif file referenced above in order to 
> make the console work 100%.  For whatever reason, the console was 
> still trying to load the old jar files.  I replaced all references to 
> "ds71.jar" with "ds10.jar" AND all references to "admserv70.jar" with 
> "admserv10.jar".
> One warning for you if you ever have to do this.  In the ldif file, 
> there were some instances of white space and line wrap.  Here is one 
> example:
>
> ...MigrateCreate at ds71
> .jar at cn...
>
> #Note the line break after ds71 and a space before .jar
>
> A simple find and replace wouldn't have worked.  So, the procedure 
> that Richard cited is good, but also modify those jar file references 
> while you're making the  "ou=4.0" to "ou=1.0"  changes if you still 
> have the old jar file references.
Thanks Darren.  I've updated 
http://directory.fedora.redhat.com/wiki/Install_Guide#Upgrading_from_the_7.1_release 

One thing I forgot - you can disable line wrapping in db2ldif by using 
the -U command line argument, which should make parsing the ldif file 
considerably easier.
>
> -- 
> Best Regards,
>
> Darren Fulton
> Concept Technology, Inc.
>
>
> -- 
> 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: 3178 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-directory-users/attachments/20060810/e68d0071/attachment.bin>


More information about the Fedora-directory-users mailing list