Part 4 - Configure First Node: oralin11


Node: oralin11

Configure PuTTY and Connect 

Enter: Host Name:, Port:5011, Select SSH and Click Open button

Accept PuTTY Security Alert

Enter root as login, and tototo as password

Each time you see:
 [root@oralin11 ~]#

This is here just to tell you to use a connection with user root to oralin11. 
You have to "Copy and Paste" following lines in connection window.

Installation of VirtualBox Extensions

Install Missing Packages from CDROM

Insert Oracle Linux ISO in Virtual Drive

Create Yum Repo

[root@oralin11 ~]# 

cat >/etc/yum.repos.d/media.repo <<-EOF

Install Missing Package

[root@oralin11 ~]# 

yum install --enablerepo=media -y kernel-uek-devel gcc pam-devel glibc.i686 libgcc.i686

Unmount CDROM

[root@oralin11 ~]# 

umount /dev/cdrom

Select "Remove disk from virtual drive"

Install VirtualBox Extensions

Select "Install Guest Additions..."

Launch installation from CDROM

[root@oralin11 ~]# 


this is normal: 
Installing the Window System drivers                       [FAILED]

Configure oralin11

Configure kernel

[root@oralin11 ~]# 

/sbin/sysctl -w kernel.shmmax=1073741824 >>/etc/sysctl.conf 
/sbin/sysctl -w kernel.shmall=1073741824 >>/etc/sysctl.conf 
/sbin/sysctl -w kernel.randomize_va_space=0 >>/etc/sysctl.conf 
/sbin/sysctl -p

Stop Useless Services

[root@oralin11 ~]# 

for s in iptables ip6tables postfix rhnsd; do
chkconfig $s off
service $s stop

Disable secure linux

[root@oralin11 ~]# 

sed -i 's/^SELINUX=.*$/SELINUX=disabled/' /etc/sysconfig/selinux

Finalize Network

Suppress NM_CONTROLLED, HWADDR and UUID informations in network config

[root@oralin11 ~]# 

sed -i '/^NM_CONTROLLED\|HWADDR\|UUID/d' /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i '/^NM_CONTROLLED\|HWADDR\|UUID/d' /etc/sysconfig/network-scripts/ifcfg-eth1

Add hosts

[root@oralin11 ~]# 

cat >>/etc/hosts <<-EOF
# external networks (NAT) oralin11ext oralin11ext.cluster oralin12ext oralin12ext.cluster
# internal networks oralin11 oralin11.cluster oralin12 oralin12.cluster

Add Sybase User/Group

Create a group and a user "sybase" with password "tototo"

[root@oralin11 ~]# 

/usr/sbin/groupadd -g 1500 sybase

/usr/sbin/useradd -d /opt/sybase -M -g sybase -G vboxsf -u 1500 -p '$1$gB9nJP0X$Hrj.Yr4Sd9LX8S.lbid5q1' sybase

cat >/opt/sybase/.bash_profile <<EOF
#! /bin/bash
[ -f .bashrc ] && . .bashrc || . /etc/bashrc
export SYBASE=/opt/sybase
[ -f \$SYBASE/ ] && . \$SYBASE/

chown -R sybase:sybase /opt/sybase

Prepare Shared Storage

Create Persistent Device Names 

[root@oralin11 ~]#

cat >/etc/udev/rules.d/99-sybase.rules <<-EOF
KERNEL=="sdc5", NAME="sybase/quorum", OWNER="sybase", MODE="0660"
KERNEL=="sdc6", NAME="sybase/master", OWNER="sybase", MODE="0660"
KERNEL=="sdc7", NAME="sybase/sybsystemprocs", OWNER="sybase", MODE="0660"
KERNEL=="sdc8", NAME="sybase/system", OWNER="sybase", MODE="0660"
KERNEL=="sdc9", NAME="sybase/sysmgmt", OWNER="sybase", MODE="0660"
KERNEL=="sdc10", NAME="sybase/tempdb1", OWNER="sybase", MODE="0660"
KERNEL=="sdc11", NAME="sybase/tempdb2", OWNER="sybase", MODE="0660"
KERNEL=="sdc12", NAME="sybase/data", OWNER="sybase", MODE="0660"


[root@oralin11 ~]# 

init 6