Product specifications

%end
# 20140430 SAP HANA off
# ********** Post-Installation 8: Install the SAP HANA database software
**********
%post --interpreter /bin/bash
# Part 1: Set the installation server. !!!!!!!!!! To be modified by
OEM. !!!!!!!!!!
SERVER=192.168.0.100
# Part 2: Copy the archive and the password file
cd /tmp
wget ftp://${SERVER}/pub/hana/HanaInstall_WS.29.04.2014.tar
cd /root
wget ftp://${SERVER}/pub/hana/password.xml
chmod 400 /root/password.xml
cd /tmp
tar xvf HanaInstall_WS.29.04.2014.tar
cd <installation medium>/DATA_UNITS/HDB_LCM_LINUX_X86_64/
# Part 4: SAP HANA Installation
# The prototype will not need the following link anymore
# Install SAP HANA. !!!!!!!!!! The instance (option --sid) and the password.xml
file to be modified by OEM !!!!!!!!!!!
LD_PRELOAD=/opt/rh/SAP/lib64/compat-sap-c++.so \
cat /root/password.xml | <installation medium>/DATA_UNITS/HDB_LCM_LINUX_X86_64/
hdblcm --read_password_from_stdin=xml --sid=ANA \
--number=00 --sapmnt=/hana/shared --datapath=/hana/data --logpath=/hana/log --
shell=/bin/bash \
--hostname=$(hostname) -b --system_usage=test --autostart=1 --components=server
--system_usage=test \
--timezone=CET
# Part 5: Clean up
#rm -f /root/password.xml
#rm -fr <installation medium>/DATA_UNITS/HDB_LCM_LINUX_X86_64/
#rm -f /tmp/HanaInstall_WS.29.04.2014.tar
%end
# ********** Post-Installation 10: Modify /etc/sysctl.conf according to the
recomondations of SAP **********
# Part 1: Insert all parameters recommended by SAP and observed under SLES if
they do not already exist
%post --interpreter /bin/bash
KernelParamFile=/etc/sysctl.conf
declare -a params=(net.ipv{4,6}.neigh.default.gc_thresh{1,2,3} kernel.
{shmmni,sem})
for parm in "${params[@]}"; do
if $(grep -qv $parm $KernelParamFile); then
case $parm in
net.ipv4.neigh.default.gc_thresh1)
echo "$parm = 256" >> $KernelParamFile
;;
net.ipv4.neigh.default.gc_thresh2)
echo "$parm = 1024" >> $KernelParamFile
;;
net.ipv4.neigh.default.gc_thresh3)
echo "$parm = 4096" >> $KernelParamFile
;;
net.ipv6.neigh.default.gc_thresh1)
echo "$parm = 256" >> $KernelParamFile
;;
net.ipv6.neigh.default.gc_thresh2)
echo "$parm = 1024" >> $KernelParamFile
;;
net.ipv6.neigh.default.gc_thresh3)
echo "$parm = 4096" >> $KernelParamFile
;;
kernel.shmmni)
echo "$parm = 65536" >> $KernelParamFile
;;
kernel.sem)
echo "$parm = 1250 256000 100 8192" >> $KernelParamFile
32
P U B L I C
© 2015 SAP SE or an SAP affiliate company. All rights reserved.
Red Hat Enterprise Linux (RHEL) 6.5 Configuration Guide for SAP HANA
Appendix