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

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

Advertisement

cd /opt/redhat-ds/slapd-DS-instance/ldif
11. Log in as root, and set the file user and group to the Certificate System user and group.
su
chown user:group old.txt
12. Log out as root. As the Certificate System user, change the permissions on the file.
chmod 00600 old.txt
13. Convert the old.txt file to an LDIF file compatible with the new server instance.
a.
Open the version to text directory in the migration directory of the new server.
cd /usr/share/rhpki/migrate/TxtTo72
b.
In the run.sh file, uncomment the following lines, and set the new server values. For example:
SERVER_ROOT=/var/lib
export SERVER_ROOT
INSTANCE=rhpki-ca
export INSTANCE
c.
Run the run.sh tool. The old.txt is directed to create old.ldif.
run.sh /opt/redhat-ds/slapd-DS-instance/ldif/old.txt >
/opt/redhat-ds/slapd-DS-instance/ldif/old.ldif
14. Import the old.ldif LDIF file into the new Certificate System instance internal database.
a.
Open the new Certificate System database directory.
cd /opt/redhat-ds/slapd-DS-instance/db
b.
Run the ldif2db command to import the LDIF file into the database. The internal database name for the Certi-
ficate System instance is in the internaldb.database parameter in the CS.cfg file. For example:
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

2. Migrating Internal Databases for 4.2

1.
Log into the Directory Server for the new Certificate System, and export the new internal database content to LDIF.
2. Migrating Internal Databases for
4.2
Databases

Advertisement

Table of Contents
loading

Table of Contents