Friday 02 May, 2008 - 22:44
Doing the build of richmond1 in accordance with Richmond Cluster (02) and Richmond Cluster (03) .
Become root:
$ su -
Change the host name:
# vi /etc/sysconfig/network
Changed HOSTNAME=localhost.localdomain to HOSTNAME=richmond1.yaocm.id.au .
Set up the two (2) NICs as Ethernet bound to hardware addresses:
# cd /etc/sysconfig/network-scripts/
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:39:77:EB
...
# cat >ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.100.65
NETMASK=255.255.255.0
GATEWAY=192.168.100.254
HWADDR=00:0C:29:39:77:F5
# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:0C:29:39:77:F5
...
# cat >ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.101.1
NETMASK=255.255.255.0
GATEWAY=192.168.101.254
HWADDR=00:0C:29:39:77:F5
Set up the IP naming of the computers in the cluster:
# cat >/etc/hosts
192.168.101.1 richmond1 richmond1.yaocm.id.au
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.101.2 richmond2 richmond2.yaocm.id.au
192.168.100.33 richmond1-vip richmond1-vip.yaocm.id.au
192.168.100.34 richmond2-vip richmond2-vip.yaocm.id.au
192.168.100.65 richmond1-mgt richmond1-mgt.yaocm.id.au
192.168.100.66 richmond2-mgt richmond2-mgt.yaocm.id.au
192.168.100.97 central central.yaocm.id.au
Set up IP routing on eth0 (route-eth0) and duplicate it as route-eth1:
# cat >route-eth0
GATEWAY0=192.168.100.65
NETMASK0=255.255.255.0
ADDRESS0=192.168.100.0
GATEWAY1=192.168.101.1
NETMASK1=255.255.255.0
ADDRESS1=192.168.101.0
# cp route-eth0 route-eth1
Restarted the network service to ensure that the parameters are reasonable:
# service network restart
Repeated the above procedure for richmond2 with the appropriate changes.
Updated
/etc/hosts
on
central
to reflect the new network.
Now to define the oracle user on both
richmond1
and
richmond2
:
# groupadd -g 600 oinstall
# groupadd -g 601 dba
# groupadd -g 602 oper
# useradd -u 600 -g oinstall -G dba,oper oracle
# id oracle
uid=600(oracle) gid=600(oinstall) groups=600(oinstall),601(dba),602(oper)
# passwd oracle
Now to set up ssh keys for oracle user on both
richmond1
and
richmond2
:
$ su - oracle
Password:
$ mkdir .ssh
$ chmod 700 .ssh
$ cd .ssh
$ ssh-keygen -t dsa
$ ssh-keygen -t rsa