Re: Upgrading from 7.1 to 1.0.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@ds71
.jar@xxxxx

#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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

--
Fedora-directory-users mailing list
Fedora-directory-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users

[Index of Archives]     [Fedora Directory Users]     [Fedora Directory Devel]     [Fedora Announce]     [Fedora Legacy Announce]     [Kernel]     [Fedora Legacy]     [Share Photos]     [Fedora Desktop]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux