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

Darren Fulton - CTI dfulton at concepttechnologyinc.com
Sat Aug 5 15:21:20 UTC 2006


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.

--
Best Regards,

Darren Fulton
Concept Technology, Inc.





More information about the Fedora-directory-users mailing list