I tried to upgrade openldap to openldap-2.3.21 and got the following warning: * * A (possible old) installation of OpenLDAP was detected, * installation will not proceed for now. * * As major version upgrades can corrupt your database, * you need to dump your database and re-create it afterwards. * * 1. /etc/init.d/slurpd stop ; /etc/init.d/slapd stop * 2. slapcat -l /root/ldapdump.1146645514.raw * 3. egrep -v '^entryCSN:' </root/ldapdump.1146645514.raw >/root/ldapdump.1146645514 * 4. mv /var/lib/openldap-data/ /var/lib/openldap-data-backup/ * 5. emerge --update \=net-nds/openldap-2.3.21 * 6. etc-update, and ensure that you apply the changes * 7. slapadd -l /root/ldapdump.1146645514 * 8. chown ldap:ldap /var/lib/openldap-data/* * 9. /etc/init.d/slapd start * 10. check that your data is intact. * 11. set up the new replication system. * This doesn't work - step 4 is wrong. [11:25:54 vz6tml@dewup-ww02:~] $ LC_ALL=C sudo mv /var/lib/openldap-data/ /var/lib/openldap-data-backup/ mv: target `/var/lib/openldap-data-backup/' is not a directory: No such file or directory That's because there is no /var/lib/openldap-data-backup/ directory. Correct instruction: * 4. mv /var/lib/openldap-data/ /var/lib/openldap-data-backup Note that there's NO trailing slash after /var/lib/openldap-data-backup
in cvs, thanks for reporting