16 升级clusterware软件
升级之前,查看CRS版本:
Node1:
[root@node1 ~]# su – oracle
node1-> hostname
node1.oracleonlinux.cn
node1-> crs_stat -t
Name Type Target State Host
————————————————————
ora.node1.gsd application ONLINE ONLINE node1
ora.node1.ons application ONLINE ONLINE node1
ora.node1.vip application ONLINE ONLINE node1
ora.node2.gsd application ONLINE ONLINE node2
ora.node2.ons application ONLINE ONLINE node2
ora.node2.vip application ONLINE ONLINE node2
node1-> crsctl query crs softwareversion
CRS software version on node [node1] is [10.2.0.1.0]
node1->
node1-> crsctl query crs activeversion
CRS active version on the cluster is [10.2.0.1.0]
node1->
Node2:
执行升级:
执行安装介质中的p8202632_10205_Linux-x86-64来给集群件打patch。
Oracle用户在图形界面调用/mnt/p8202632_10205_Linux-x86-64/Disk1/runInstaller 来执行:
进入升级操作:
Next:
注意选择正确的cluster_name,以及clusterware软件的home:
Next:
Next:
预检查未通过,根据提示,以root用户在双节点上将/etc/sysctl.conf配置文件中的
fs.file-max = 65536修改为fs.file-max = 101365;
net.ipv4.ip_local_port_range=1024 – 65000.修改为net.ipv4.ip_local_port_range=9000 – 65500;
并执行sysctl -p 来使之生效。
然后,单击Retry,确保预检查通过:
Next:
Install,开始安装:
Note:
Because the software consists of local identical copies distributed across each of the nodes in the cluster, it is possible to patch your CRS installation in a rolling manner, one node at a time.
To complete the installation of this patchset, you must perform the following tasks on each node:
1.Log in as the root user.
2.As the root user, perform the following tasks:
a.Shutdown the CRS daemons by issuing the following command:
/u01/app/oracle/product/10.2.0/crs_1/bin/crsctl stop crs
b.Run the shell script located at:
/u01/app/oracle/product/10.2.0/crs_1/install/root102.sh
This script will automatically start the CRS daemons on the
patched node upon completion.
3.After completing this procedure, proceed to the next node and repeat.
根据上述提示,以滚动方式来对CRS升级,即先升级其中的一个节点,然后再升级其它的节点。
Node1:
a 以root用户执行/u01/app/oracle/product/10.2.0/crs_1/bin/crsctl stop crs
[root@node1 ~]# /u01/app/oracle/product/10.2.0/crs_1/bin/crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@node1 ~]#
b 以root用户执行/u01/app/oracle/product/10.2.0/crs_1/install/root102.sh
[root@node1 ~]# /u01/app/oracle/product/10.2.0/crs_1/install/root102.sh
Creating pre-patch directory for saving pre-patch clusterware files
Completed patching clusterware files to /u01/app/oracle/product/10.2.0/crs_1
Relinking some shared libraries.
Relinking of patched files is complete.
WARNING: directory ‘/u01/app/oracle/product/10.2.0’ is not owned by root
WARNING: directory ‘/u01/app/oracle/product’ is not owned by root
WARNING: directory ‘/u01/app/oracle’ is not owned by root
WARNING: directory ‘/u01/app’ is not owned by root
WARNING: directory ‘/u01’ is not owned by root
Preparing to recopy patched init and RC scripts.
Recopying init and RC scripts.
Startup will be queued to init within 30 seconds.
Starting up the CRS daemons.
Waiting for the patched CRS daemons to start.
This may take a while on some systems.
.
10205 patch successfully applied.
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Successfully deleted 1 values from OCR.
Successfully deleted 1 keys from OCR.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: node1 node1-priv node1
Creating OCR keys for user ‘root’, privgrp ‘root’..
Operation successful.
clscfg -upgrade completed successfully
Creating ‘/u01/app/oracle/product/10.2.0/crs_1/install/paramfile.crs’ with data used for CRS configuration
Setting CRS configuration values in /u01/app/oracle/product/10.2.0/crs_1/install/paramfile.crs
[root@node1 ~]#
同理,在节点2上执行上述操作!
升级后,双节点上的CRS都从10.2.0.1.0升级到10.2.0.5.0。
至此,我们已经在双节点上将CRS版本已经升级至10.2.0.5.0!!!