AIX 5L上安装RAC的遭遇
2024-07-21 02:37:44
供稿:网友
验证OS的patch(在两个节点):
[m80a]/> instfix -ik IY28766
All filesets for IY28766 were found.
[m80a]/> instfix -ik IY28949
There was no data for IY28949 in the fix database.
[m80a]/> instfix -ik IY29965
All filesets for IY29965 were found.
[m80a]/> instfix -ik IY30150
All filesets for IY30150 were found.
[m80a]/> instfix -ik IY22854
All filesets for IY22854 were found.
[m80a]/> instfix -ik IY26778
All filesets for IY26778 were found.
[m80a]/> instfix -ik IY28111
All filesets for IY28111 were found.
[m80a]/> instfix -ik IY21047
All filesets for IY21047 were found.
[m80a]/>
安装JDK和JRE必需的Patchs
假如使用HTTP SERVER: IY30886 JRE1.1.8
假如不使用HTTP SERVER: IY31033 JDK1.3.1
或者到ibm网站download专门的JDK131_64bit的包
安装后会有一个专门的目录,安装Oracle的时候就指定这个jdk:
[m80b]/usr/Java13_64> pwd
/usr/java13_64
[m80b]/usr/java13_64>
[m80a]/> lslpp -l grep rsct
rsct.basic.hacmp 2.2.1.20 APPLIED RSCT Basic Function (HACMP/ES
rsct.basic.rte 2.2.1.20 APPLIED RSCT Basic Function
rsct.clients.rte 99.99.999.999 COMMITTED Supersede Entry - Not really
rsct.compat.basic.hacmp 2.2.1.20 APPLIED RSCT Event Management Basic
rsct.compat.basic.rte 2.2.1.20 APPLIED RSCT Event Management Basic
rsct.compat.clients.hacmp
rsct.compat.clients.rte 2.2.1.20 APPLIED RSCT Event Management Client
rsct.core.auditrm 2.2.1.20 APPLIED RSCT Audit Log Resource
rsct.core.errm 2.2.1.20 APPLIED RSCT Event Response Resource
rsct.core.fsrm 2.2.1.20 APPLIED RSCT File System Resource
rsct.core.gui 2.2.1.20 APPLIED RSCT Graphical User Interface
rsct.core.hostrm 2.2.1.20 APPLIED RSCT Host Resource Manager
rsct.core.rmc 2.2.1.20 APPLIED RSCT Resource Monitoring and
rsct.core.sec 2.2.1.20 APPLIED RSCT Security
rsct.core.sensorrm 2.2.1.20 APPLIED RSCT Sensor Resource Manager
rsct.core.sr 2.2.1.20 APPLIED RSCT Registry
rsct.core.utils 2.2.1.20 APPLIED RSCT Utilities
rsct.msg.EN_US.core.auditrm
rsct.msg.EN_US.core.errm 2.2.0.0 COMMITTED RSCT Event Response RM Msgs -
rsct.msg.EN_US.core.fsrm 2.2.0.0 COMMITTED RSCT File System RM Msgs -
rsct.msg.EN_US.core.gui 2.2.0.0 COMMITTED RSCT GUI Msgs - U.S. English
rsct.msg.EN_US.core.hostrm
rsct.msg.EN_US.core.rmc 2.2.0.0 COMMITTED RSCT RMC Msgs - U.S. English
rsct.msg.EN_US.core.sec 2.2.0.0 COMMITTED RSCT Security Msgs - U.S.
rsct.msg.EN_US.core.sensorrm
rsct.msg.EN_US.core.sr 2.2.0.0 COMMITTED RSCT Registry Msgs - U.S.
rsct.msg.EN_US.core.utils 2.2.0.0 COMMITTED RSCT Utilities Msgs - U.S.
rsct.msg.en_US.core.auditrm
rsct.msg.en_US.core.errm 2.2.0.0 COMMITTED RSCT Event Response RM Msgs -
rsct.msg.en_US.core.fsrm 2.2.0.0 COMMITTED RSCT File System RM Msgs -
rsct.msg.en_US.core.gui 2.2.0.0 COMMITTED RSCT GUI Msgs - U.S. English
rsct.msg.en_US.core.hostrm
rsct.msg.en_US.core.rmc 2.2.0.0 COMMITTED RSCT RMC Msgs - U.S. English
rsct.msg.en_US.core.sec 2.2.0.0 COMMITTED RSCT Security Msgs - U.S.
rsct.msg.en_US.core.sensorrm
rsct.msg.en_US.core.sr 2.2.0.0 COMMITTED RSCT Registry Msgs - U.S.
rsct.msg.en_US.core.utils 2.2.0.0 COMMITTED RSCT Utilities Msgs - U.S.
rsct.basic.rte 2.2.1.20 APPLIED RSCT Basic Function
rsct.compat.basic.rte 2.2.1.0 COMMITTED RSCT Event Management Basic
rsct.core.rmc 2.2.1.20 APPLIED RSCT Resource Monitoring and
rsct.core.sec 2.2.1.20 APPLIED RSCT Security
rsct.core.sr 2.2.1.20 APPLIED RSCT Registry
rsct.core.utils 2.2.1.20 APPLIED RSCT Utilities
[m80a]/>
[m80a]/> lslpp -l grep -i hacmp
cluster.doc.en_US.Html 4.4.1.4 APPLIED HACMP Web-based HTML
cluster.doc.en_US.pdf 4.4.1.3 APPLIED HACMP PDF Documentation - U.S.
cluster.doc.en_US.ps 4.4.1.0 COMMITTED HACMP Postscript Documentation
rsct.basic.hacmp 2.2.1.20 APPLIED RSCT Basic Function (HACMP/ES
rsct.compat.basic.hacmp 2.2.1.20 APPLIED RSCT Event Management Basic
Function (HACMP/ES Support)
rsct.compat.clients.hacmp
Function (HACMP/ES Support)
[m80a]/>
===============验证dba用户组和hagsuser组==========================
在节点1:
[m80a]/oracle> tail /etc/group
。
。。
dba:!:300racle
hagsuser:!:301racle,root
。。。
[m80a]/oracle>
在节点2:
[m80b]/oracle> tail /etc/group
。。。
dba:!:300racle
hagsuser:!:301:root,oracle
。。。。
[m80b]/oracle>
===============验证oracle用户==========================
在节点1:
[m80a]/oracle> cat /etc/passwd grep oracle
oracle:!:300:300::/oracle:/usr/bin/ksh
[m80a]/oracle>
在节点2:
[m80b]/oracle> cat /etc/passwd grep oracle
oracle:!:300:300::/oracle:/usr/bin/ksh
[m80b]/oracle>
=配置网络=============
[m80a]/> tail /etc/hosts
127.0.0.1 loopback localhost # loopback (lo0) name/address
192.168.2.215 m80a m80a
10.1.1.1 m80a_stb m80a
192.168.2.216 m80b m80b
10.1.1.2 m80b_stb m80b
192.168.2.205 bepone
192.168.2.207 fepone
192.168.2.208 feptwo
192.168.2.209 ibm170
[m80a]/>
===================使用root用户和oracle用户验证通信:===================
1。rlogin
在节点1:
[m80a]/> su - oracle
[m80a]/oracle> id
uid=300(oracle) gid=300(dba) groups=1(staff),301(hagsuser)
[m80a]/oracle> rlogin m80b
*******************************************************************************
* *
* *
* Welcome to AIX Version 5.1! *
* *
* *
* Please see the README file in /usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
* *
* *
*******************************************************************************
Last unsUCcessful login: Fri Dec 20 09:28:05 BEIST 2002 on /dev/dtlogin/_0
Last login: Fri Dec 20 17:00:24 BEIST 2002 on 192_168_2_89_0 from 192.168.2.89:0
[m80b]/oracle> exit
Connection closed.
[m80a]/oracle>
在节点2:
[m80b]/> su - oracle
[m80b]/oracle> id
uid=300(oracle) gid=300(dba) groups=1(staff),301(hagsuser)
[m80b]/oracle> rlogin m80a
*******************************************************************************
* *
* *
* Welcome to AIX Version 5.1! *
* *
* *
* Please see the README file in /usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
* *
* *
*******************************************************************************
Last unsuccessful login: Thu Dec 19 17:50:11 BEIST 2002 on /dev/dtlogin/_0
Last login: Fri Dec 20 17:01:26 BEIST 2002 on 192_168_2_89_0 from 192.168.2.89:0
[m80a]/oracle> exit
Connection closed.
[m80b]/oracle>
2。rcp和rsh
在节点1:
[m80a]/oracle> id
uid=300(oracle) gid=300(dba) groups=1(staff),
301(hagsuser)
[m80a]/oracle> rcp root.sh m80b:/tmp
[m80a]/oracle> rsh m80b ls -l /tmp/root.sh
-rwxr-xr-x 1 oracle dba 6386 Dec 20 17:17 /tmp/root.sh
[m80a]/oracle>
在节点2:
[m80b]/oracle> id
uid=300(oracle) gid=300(dba) groups=1(staff),301(hagsuser)
[m80b]/oracle> rcp root.sh m80a:/tmp/root.sh
[m80