Migrating Internal Databases For 7.0 - Red Hat CERTIFICATE SYSTEM 7.2 - MIGRATION GUIDE Manual

Hide thumbs Also See for CERTIFICATE SYSTEM 7.2 - MIGRATION GUIDE:
Table of Contents

Advertisement

su
chown user:group old.txt
11. Log out as root. As the Certificate System user, change the permissions on the file.
chmod 00600 old.txt
12. Convert the old.txtfile to LDIF.
a.
Open the text to version directory in the migration directory in the new Certificate System.
cd /usr/share/rhpki/migrate/TxtTo72
b.
Edit the run.sh script; uncomment and set the values for the following lines. For example:
SERVER_ROOT=/var/lib
export SERVER_ROOT
INSTANCE=rhpki-ca
export INSTANCE
c.
Run run.sh to use old.txt to create an LDIF file.
run.sh /opt/redhat-ds/slapd-DS-instance/ldif/old.txt >
/opt/redhat-ds/slapd-DS-instance/ldif/old.ldif
13. Import the old.ldif LDIF file into this new Certificate System server instance's internal database.
a.
Open the new Certificate System database directory.
cd /opt/redhat-ds/slapd-DS-instance/db
b.
Run the ldif2db tool to import the LDIF file into the Certificate System database. The internal database name
for the Certificate System instance is in the internaldb.database parameter in the CS.cfg file. For ex-
ample:
ldif2db -n server.example.com-rhpki-ca
-i /opt/redhat-ds/slapd-DS-instance/ldif/old.ldif
c.
Force the virtual list views (VLV) indexes to be re-indexed.
db2index

10. Migrating Internal Databases for 7.0

1.
Log into the Directory Server for the new Certificate System instance, and export the new internal database content to
10. Migrating Internal Databases
for 7.0
Databases

Advertisement

Table of Contents
loading

Table of Contents