Richmond Cluster (17)

Sunday 11 May, 2008 - 00:18

Repeated the procedure in Richmond Cluster (16)

Before the reboot, I did (see pp.2-28 to 2-39 of Clusterware Installation for Linux ):
# cat >>/etc/profile

# Oracle 10.2 Installation

if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

Rebooted richmond1 .

Updated /etc/sysconfig/network-scripts/ifcfg-eth0 to set the gateway to 192.168.100.65 and restarted the network service.

When I ran the last script in OUI, I get:
# /u00/crs/oracle/product/10/app/root.sh
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.

Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
assigning default hostname richmond1 for node 1.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node :
node 1: richmond1 richmond1-priv richmond1
clscfg: Arguments check out successfully.

NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.

Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
richmond1
CSS is active on all nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
IP address "richmond1-vip" has already been used. Enter an unused IP address.

Looks like I have to initialise the raw disks after reverting to a snapshot (because the disks are independent and persistent!).

Cancelled installation and reverted to snapshot precrsinst again. Repeated the above steps until reboot. Created a new script to initialise the raw devices (the values for count were obtained from the number of blocks reported by fdisk -l):
# cd /home/oracle/installation
# cat >init_raw.sh
#!/bin/sh
dd if=/dev/zero of=/dev/sdb1 bs=1024 count=265041
dd if=/dev/zero of=/dev/sdb2 bs=1024 count=257040
dd if=/dev/zero of=/dev/sdc1 bs=1024 count=265041
dd if=/dev/zero of=/dev/sdc2 bs=1024 count=257040
dd if=/dev/zero of=/dev/sdd1 bs=1024 count=265041
dd if=/dev/zero of=/dev/sdd2 bs=1024 count=257040

# chmod u+x init_raw.sh
# ./init_raw.sh

Shut richmond1 down. Deleted precrsinst snapshot and took another snapshot with the same name.