Upgrade SDS 6.3 to 6.4 in place on AIX

Basic guide to install and configure IBM SDS V6.4.


Author(s): Peter Kovacsics and Tamas Bures | Created: 14 February 2019 | Last modified: 21 December 2024
Tested on: -

Upgrade SDS 6.3 to 6.4 in place on AIX

Quick in place migration from version 6.3 to 6.4 on AIX.

Prerequisites

lslpp -l xlC\*
lslpp -l bos.loc\*
lslpp -l X11.adt.lib

Backup

/opt/IBM/ldap/V6.3/sbin/idsslapd -I idsldap -k
/opt/IBM/ldap/V6.3/sbin/idsdiradm -I idsldap -k
mkdir /tmp/db2backup
mkdir /tmp/ids63backup
chown -R db2ldap /tmp/db2backup
su - db2ldap
bash
db2 backup db ldapdb to /tmp/db2backup
ls -l /tmp/db2backup/
exit
exit
chown idsldap /tmp/ids63backup
cd /opt/IBM/ldap/V6.3/sbin
./idsdbback -I idsldap -k /tmp/ids63backup
ls -l /tmp/ids63backup/BACKUP_FILES/

Installing binaries

Installing IBM Installation Manager

cd /tmp/install
chown -R root im
cd /tmp/install/im
chmod -R 754 /tmp/install/im/jre_7.0.100030.20181001_1448/
chmod 777 installc
/tmp/install/im/installc -acceptLicense -sP
cd /tmp/install
rm -r im

Manual installation of IBM DB2 10.5.0.10

Preparing installation files

cd /tmp/install
chown root v10.5fp10_aix64_universal_fixpack.tar.gz
gunzip v10.5fp10_aix64_universal_fixpack.tar.gz
tar -xvf v10.5fp10_aix64_universal_fixpack.tar
rm -r v10.5fp10_aix64_universal_fixpack.tar

Stopping DB2 fmcd process

Help: How to stop db2fcmd

. /data/db2ldap/sqllib/db2profile
db2fmcu -d

Stopping DB2

su - db2ldap
bash
db2stop
exit
exit

Install DB2

cd /tmp/install/universal
./db2_install
Default location? no
Location: /data/opt/db2_10_05
SERVER
PureScale? no
cd /tmp/install
rm -r universal

Installing of IBM Security Directory Server V6.4

Preparing installation files

chown root sds64-aix-ppc64.iso
mkdir /mnt/sds_iso
export ODMDIR=/etc/objrepos (loopmount issue 1310-002)
loopmount -i /tmp/install/sds64-aix-ppc64.iso -o "-V cdrfs -o ro" -m /mnt/sds_iso

Import DB2 license file

First logout from ssh & login back again!

/data/opt/db2_10_05/adm/db2licm -l
/data/opt/db2_10_05/adm/db2licm -a /mnt/sds_iso/ibm_db2/db2/license/db2ese_o.lic
/data/opt/db2_10_05/adm/db2licm -l

Preparing response file for installation

cp /mnt/sds_iso/SilentInstallScripts/sds_silent_install_response.xml /tmp/install/sdsrsp.xml

Replace the values below:

installLocation='/opt/IBM/ldap/V6.4'
repository location='/mnt/sds_iso/ibm_sds'
repository location='/mnt/sds_iso/entitlement/ibm_sds_ent'
key='user.use.existing.db2,com.ibm.security.directoryserver.v64' value='true'
key='user.use.existing.db2.installpath,com.ibm.security.directoryserver.v64' value='/data/opt/db2_10_05'
key='user.db2.executable.path,com.ibm.security.directoryserver.v64' value=''
key='user.jdk.executable.path,com.ibm.security.directoryserver.v64' value='/mnt/sds_iso/ibm_jdk/6.0.16.2-ISS-JAVA-AIX-FP0002.tar'
key='user.gskit.executable.path,com.ibm.security.directoryserver.v64' value='/mnt/sds_iso/ibm_gskit'

Silent install

cd /tmp/install
chown root sdsrsp.xml
cd /opt/IBM/InstallationManager/eclipse/tools
./imcl input /tmp/install/sdsrsp.xml -acceptLicense -showProgress

Remove installation media

loopumount -l loop0 -m /mnt/sds_iso
ls -l /mnt/sds_iso/
rm -r /mnt/sds_iso
rm -r /tmp/install/sds64-aix-ppc64.iso
rm -r /tmp/install/sdsrsp.xml

Applying fixes

Java 6.0.16.2 -> 8.0.5.20

cd /tmp/install
chown root 8.0.5.20-ISS-JAVA-AIX-FP0020.tar
tar -xvf 8.0.5.20-ISS-JAVA-AIX-FP0020.tar
rm -r 8.0.5.20-ISS-JAVA-AIX-FP0020.tar
mv /opt/IBM/ldap/V6.4/java /opt/IBM/ldap/V6.4/java_old
mv /tmp/install/java /opt/IBM/ldap/V6.4/
/opt/IBM/ldap/V6.4/java/bin/java -version

GSKit 8.0.50.57 -> 8.0.55.2

cd /tmp/install
chown root 8.0.55.2-ISS-GSKIT-AIX-FP002.tar.gz
gunzip 8.0.55.2-ISS-GSKIT-AIX-FP002.tar.gz
tar -xvf 8.0.55.2-ISS-GSKIT-AIX-FP002.tar
rm -r 8.0.55.2-ISS-GSKIT-AIX-FP002.tar
cd 8.0.55.2-ISS-GSKIT-AIX-FP002
installp -acXgYd . GSKit8
lslpp -l GSK*
...8.0.55.2 ...
gsk8ver_64
... 8.0.55.2 ...
cd /tmp/install
rm -r 8.0.55.2-ISS-GSKIT-AIX-FP002

SDS 6.4.0.0 -> 6.4.0.17

cd /tmp/install
chown root 6.4.0.17-ISS-ISDS-AIX-IF0017.tar.gz
gunzip 6.4.0.17-ISS-ISDS-AIX-IF0017.tar.gz
tar -xvf 6.4.0.17-ISS-ISDS-AIX-IF0017.tar
rm -r 6.4.0.17-ISS-ISDS-AIX-IF0017.tar

Help for migration if LD_LIBRARY_PATH has issues

cd 6.4.0.17-ISS-ISDS-AIX-IF0017
./idsinstall -u

/opt/IBM/ldap/V6.4/bin/idsversion

cd /tmp/install
rm -r 6.4.0.17-ISS-ISDS-AIX-IF0017

Migration

Migration document

mkdir /home/idsldap/ldapsaveconf
chmod g+w /home/idsldap/ldapsaveconf
chown idsldap:idsldap /home/idsldap/ldapsaveconf
cd /opt/IBM/ldap/V6.4/sbin
./migbkup /home/idsldap/idsslapd-idsldap /home/idsldap/ldapsaveconf

[If migbkup fails, have a look on this technote.]()

cp /opt/IBM/ldap/V6.3/etc/perftune_stat.log /home/idsldap/idsslapd-idsldap/logs/
chown idsldap:idsldap /home/idsldap/idsslapd-idsldap/logs/perftune_stat.log
ls -l /home/idsldap/idsslapd-idsldap/logs/
cat /home/idsldap/ldapsaveconf/etc/db2info  
/data/opt/db2_09_07_06
cat /home/idsldap/ldapsaveconf/etc/platforminfo
osName=AIX
processorArch=powerpc
. /data/db2ldap/sqllib/db2profile
cd /opt/IBM/ldap/V6.4/sbin
/opt/IBM/ldap/V6.3/sbin/idsdbrestore -I idsldap -k /tmp/ids63backup
/opt/IBM/ldap/V6.4/sbin/idsimigr -I idsldap -n
GLPMIG035I Files in backup directory, '/home/idsldap/idsslapd-idsldap', are determined to be of version, '6.3'. Migration will continue based on this migration path.
/opt/IBM/ldap/V6.4/sbin/idsilist -a
cd /opt/IBM/ldap/V6.4/sbin
./idsslapd -I idsldap
cd /opt/IBM/ldap/V6.4/bin
./idsldapsearch -p 389 -D cn=root -w cn=root -b o=cib objectclass=*
cat /home/idsldap/idsslapd-idsldap/etc/ldapdb.properties
/data/opt/db2_10_05
su - db2ldap
bash
db2 list db directory
db2 connect to ldapdb
db2 terminate
exit
exit
less /home/idsldap/idsslapd-idsldap/etc/ibmslapd.conf

Re-enable db2fmcd

/data/opt/db2_10_05/bin/db2fmcu -u -p /data/opt/db2_10_05/bin/db2fmcd
cat /etc/inittab | grep db2fm
ps -ef | grep db2fmc

Check exports

cat ./profile