Managing Serviceguard Extension for SAP on Integrity Linux, December 2005

Step by Step Installation of SGeSAP on Integrity Linux for SAP WAS Central Instances
Linux Configuration
Chapter 248
IS140 Installation Step:
If the primary node has the Central Instance installed:
Copy the <sid>adm home directory to the backup node. This is a local
directory on each node. Default home director y path is /home/<sid>adm.
IS150 Installation Step:
For certain releases, such as 6.x or higher (no start-/stopsap script in
<sid>adm home directory), the following steps may be skipped.
On the second node, in the <sid>adm home directory the start, stop and
environment scripts need to be renamed. If the scripts listed in the
following steps do not exist, those steps may be skipped.
su - <sid>adm
mv startsap_<primary>_<INSTNR> startsap_<secondary>_<INSTNR>
mv stopsap_<primary>_<INSTNR> stopsap_<secondary>_<INSTNR>
mv .sapenv_<primary>.csh .sapenv_<secondary>.csh
mv .sapenv_<primary>.sh .sapenv_<secondary>.sh
mv .dbenv_<primary>.csh .dbenv_<secondary>.csh
mv .dbenv_<primary>.sh .dbenv_<secondary>.sh
mv .sapsrc_<primary>.csh .sapsrc_<secondary>.csh
mv .sapsrc_<primary>.sh .sapsrc_<secondary>.sh
mv .dbsrc_<primary>.csh .dbsrc_<secondary>.csh
mv .dbsrc_<primary>.sh .dbsrc_<secondary>.sh
# Remove logfiles from <primary> if any
exit
The following statement should automate this acitivity for
standard directory contents. Do not use a linebreak within the
awk statement:
su - <sid>adm
ls -a|awk '/<primary>/ { system( sprintf( “mv %s %s\n”, $0,\
gensub(“<primary>”, “<secondary>", 1 ))) }'
exit