CSS is active on these nodes.
node2
CSS is inactive on these nodes.
node1
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.
从输出我们可以看出,该脚本主要执行crs的配置,格式化ocr disk,更新/etc/inittab文件,启动css进程,在/var/opt/oracle/新建了ocr.loc文件及,scls_scr,oprocd文件夹。
2.2 查看crs进程及/etc/inittab文件可以看出节点的变化。
root@node2 # ps -ef|grep crs|grep –v grep
oracle 18212 18211 0 14:47:28 0:00 /oracle/crs/bin/ocssd.bin
oracle 18191 18180 0 14:47:28 0:00 /oracle/crs/bin/oclsmon.bin
oracle 17886 1 0 14:47:27 0:00 /oracle/crs/bin/evmd.bin
oracle 18180 18092 0 14:47:28 0:00 /bin/sh -c cd /oracle/crs/log/node2/cssd/oclsmon; ulimit -c unlimited; /ora
root 17889 1 0 14:47:27 0:00 /oracle/crs/bin/crsd.bin reboot
oracle 18211 18093 0 14:47:28 0:00 /bin/sh -c ulimit -c unlimited; cd /oracle/crs/log/node2/cssd; /oracle/crs
root@node2 # ls –rlt /var/opt/oracle/
total 8
-rw-r--r-- 1 root root 55 Apr 2 14:42 oraInst.loc
drwxrwxr-x 5 root root 512 Apr 2 14:47 oprocd
drwxr-xr-x 3 root root 512 Apr 2 14:47 scls_scr
-rw-r--r-- 1 root oinstall 48 Apr 2 14:47 ocr.loc
注意:新创建了ocr.loc,scls_scr,oprocd,但没有创建/var/opt/oracle/oratab。
root@node1 # more inittab
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# The /etc/inittab file controls the configuration of init(1M); for more
# information refer to init(1M) and inittab(4). It is no longer
# necessary to edit inittab(4) directly; administrators should use the
# Solaris Service Management Facility (SMF) to define services instead.
# Refer to smf(5) and the System Administration Guide for more
# information on SMF.
#
# For modifying parameters passed to ttymon, use svccfg(1m) to modify
# the SMF repository. For example:
#
# # svccfg
# svc:> select system/console-login
# svc:/system/console-login> setprop ttymon/terminal_type = "xterm"
# svc:/system/console-login> exit
#
#ident "@(#)inittab 1.41 04/12/14 SMI"
ap::sysinit:/sbin/autopush -f /etc/iu.ap
sp::sysinit:/sbin/soconfig -f /etc/sock2path
smf::sysinit:/lib/svc/bin/svc.startd >/dev/msglog 2<>/dev/msglog
p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/msglog 2<>/dev/msglog
h1:3:respawn:/etc/init.d/init.evmd run >/dev/null 2>&1
h2:3:respawn:/etc/init.d/init.cssd fatal >/dev/null 2>&1
h3:3:respawn:/etc/init.d/init.crsd run >/dev/null 2>&1
root@node1 # ls -rlt /etc/inittab*
-rw-r--r-- 1 root root 1072 Nov 2 12:39 inittab.cssd
-rw-r--r-- 1 root root 1206 Mar 21 17:15 inittab.pre10203
-rw-r--r-- 1 root root 1006 Mar 21 17:15 inittab.nocrs10203
-rw-r--r-- 1 root root 1040 Apr 2 14:50 inittab.orig
-rw-r--r-- 1 root root 1040 Apr 2 14:50 inittab.no_crs
-rw-r--r-- 1 root root 1240 Apr 2 14:50 inittab
-rw-r--r-- 1 root root 1240 Apr 2 14:50 inittab.crs
该脚本会将inittab复制为inittab.no_crs,修改后的inittab另复制一份为inittab.crs.
2.3 在另外一个节点执行$CRS_HOME/root.sh