Tag Archives: Netweaver

Network configuration for sapinst

In order to complete an SAP installation, in particular to have services that start (…state UNKNOWN. Giving up.) niping command allows to check if name resolution is correct.
You should never have the hostname corresponding to localhost. The hostname has to be resolved to it’s own address.

This is explained in the following SAP note:

Note 1054467 – Local host name refers to loopback address
Basically, the host name of an instance should not be resolved for a loopback address. For this, you should also refer to the SAP network guides or Note 21151, point 2. The IP address of the host on which the instance runs must be unique in the network and should therefore not communicate any local loopback addresses to the outside. You can use the ‘niping’ program to check for which IP address your host name is resolved. You can use this tool to check the configuration and, if required, to adjust the configuration to the relevant positions.

./niping -v

Hostname/Nodeaddr verification:
===============================

Hostname of local computer: VEPINARD                         (NiMyHostName)

Lookup of hostname: VEPINARD                                 (NiHostToAddr)
    --> IP-Addr.: 192.168.45.210
Lookup of IP-Addr.: 192.168.45.210                           (NiAddrToHost)
    --> Hostname: VEPINARD.naze.mine.nu

Lookup of hostname: localhost                                (NiHostToAddr)
    --> IP-Addr.: 127.0.0.1
Lookup of IP-Addr.: 127.0.0.1                                (NiAddrToHost)
    --> Hostname: localhost.localdomain

However if you do not care and do not want to be bothered by this, add the following line in instance profile:

rdisp/tolerate_loopback_addr

Prepare CentOS VM for SAP Netweaver 7.3

This article describe the preparation of a SAP server running in a virtual machine.
It does not explain how to setup SAP software.

SAP Netweaver 2004 and 7.0 (2004s) do run fine on Debian OS. SAP does not support this linux OS, you are supposed to use RedHat or Suse. However after doing some changes to install scripts and using some tricks you can achieve a complete setup successfully.
The next SAP Netweaver version is 7.3. This one does not accept Debian (may be I did not investigate enough to have it working, if you do mail me at admintheadmin@gmail.com, thanks !) and requires a 64bits OS. So I tryed to set it up on a free RedHat like platform: CentOS.

Finaly I will have this test system run in a virtual machine. It is far more convenient as having one physical server per system. For that I am using VirtualBox.
I have tryed the free version of VMWare and had trouble: each update of the kernel host system implys the need to recompile the VMWare software.

As host machine I am using a Debian 64bits and as VirtualBox guest it is a CentOS 6.0 64bits.

VM creation
– OS type Linux
– version Linux 2.6 (64bit)
– base memory size 5500MB
– create a new harddisk VMDK
– fixed size
– size 200Go

VM settings
– System tab: Enable IO APIC, hardware clock in UTC time, 2 CPUs, 90% execution Cap, Enable VT-x, Enable Nested Paging
– Display tab: 128MB video, no extended features, enable temote display server, port 600x
– Audio tab: disable audio
– Network tab adapter 1 ethx enabled bridged, adapter 2 vboxnet0 host only
– USB tab: disabled unless you want to connect an external drive to your guest system
– Shared folder: very useful to avoid putting all SAP software sources on the guest machine, define what you will use

CentOS installation
– get ISO file CentOS-6.0-x86_64-bin-DVD1.iso
– use this ISO as boot drive for the VM and start the VM
– create the following partitions: 20Go for root, 30Go for /SAP, 160Go for /oracle
– at the end choose « desktop minimal » version to setup
– run system-config-network to setup network
– install extra packages kernel-devel and gcc

CentOS config for SAP
Sapnote 1391070 gives some tips:

yum install uuidd libXp -y
yum groupinstall base compat-libraries debugging directory-client
hardware-monitoring large-systems network-file-system-client
perl-runtime storage-client-multipath x11 development

Modify /etc/selinux/config

SELINUX=permissive

Add in /etc/sysctl.conf

# SAP settings
kernel.msgmni=1024
kernel.sem=1250 256000 100 1024
vm.max_map_count=1000000
kernel.shmmax=23136829430
kernel.shmall=5242880

Add in /etc/security/limits.conf

@sapsys hard nofile 32800
@sapsys soft nofile 32800
@dba hard nofile 32800
@dba soft nofile 32800

@sapsys hard nofile 32800
@sapsys soft nofile 32800
@dba hard nofile 32800
@dba soft nofile 32800

CentOS config for Oracle

yum install libaio libaio-devel compat-libstdc++-33
elfutils-libelf-devel libgcc libstdc++ unixODBC unixODBC-devel ksh (ou mksh)

VBoxGuestAdditions special case
Get the VBox guest additions in the same version as the host VirtualBox softaxre

wget http://download.virtualbox.org/virtualbox/4.1.2/VBoxGuestAdditions_4.1.2.iso

There might be some trouble with a symlink

ln -s /usr/src/kernels/2.6xxx /usr/src/kernel/currentkernel

Then modify the symlink that is in /lib/module it has to be /usr/src/kernel/currentkernel
Then launch VBox guest addition setup

./VBoxLinuxBlabla.sh

In case of compilation error check the symlinks.
After guest setup reboot the VM..

Extra software
In order to get a desktop secure access install NX sofware

wget http://64.34.161.181/download/3.5.0/Linux/nxclient-3.5.0-7.x86_64.rpm
wget http://64.34.161.181/download/3.5.0/Linux/nxnode-3.5.0-6.x86_64.rpm
wget http://64.34.161.181/download/3.5.0/Linux/FE/nxserver-3.5.0-8.x86_64.rpm
rpm -i nxclient-3.5.0-7.x86_64.rpm
rpm -i nxnode-3.5.0-6.x86_64.rpm
rpm -i nxserver-3.5.0-8.x86_64.rpm