This post upgrade the RHEL 6 OS on severs which are running 11gR2 RAC. Current kernel is
The steps are similar to that of upgrading RHEL 5 OS running 11gR2 RAC with few minor differences. This RAC system does not use ASMLibs.
1. Current kernel version
More on this is available on Troubleshoot Grid Infrastructure Startup Issues [ID 1050908.1]
5. New kernel version after upgrade
9. Unlock the permission on the grid software as root
For metalink notes related to Upgrading OS and relinking clusterware and oracle binaries after OS upgrade refer the related post given below.
Related Posts
Upgrading OS in 11gR2 RAC Environment (RHEL 5)
Upgrading ASMLib and OS in 11gR1 RAC Environment
$ uname -rand the database patch level is
2.6.32-220.el6.x86_64
opatch lsinventory -local | grep PatchThe database software is running standard edition.
Oracle Interim Patch Installer version 11.2.0.3.0
OPatch version : 11.2.0.3.0
Patch 14275605 : applied on Thu Nov 15 14:21:27 GMT 2012
Unique Patch ID: 15379762
Patch description: "Database Patch Set Update : 11.2.0.3.4 (14275605)"
Sub-patch 13923374; "Database Patch Set Update : 11.2.0.3.3 (13923374)"
Sub-patch 13696216; "Database Patch Set Update : 11.2.0.3.2 (13696216)"
Sub-patch 13343438; "Database Patch Set Update : 11.2.0.3.1 (13343438)"
Patch 14275572 : applied on Thu Nov 15 14:20:32 GMT 2012
Unique Patch ID: 15379762
Patch description: "Grid Infrastructure Patch Set Update : 11.2.0.3.4 (14275572)"
OPatch succeeded.
The steps are similar to that of upgrading RHEL 5 OS running 11gR2 RAC with few minor differences. This RAC system does not use ASMLibs.
1. Current kernel version
$ uname -r2. Stop all the cluster components
2.6.32-220.el6.x86_64
crsctl stop cluster -alland stop disable start of crs after reboot
crsctl stop crs3. In RHEL 6 inittab is depreciated and the spawning process file is located in /etc/init with the name oracle-ohasd.conf
crsctl disable crs
More on this is available on Troubleshoot Grid Infrastructure Startup Issues [ID 1050908.1]
cat oracle-ohasd.confAs root comment last two lines
# Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
#
# Oracle OHASD startup
start on runlevel [35]
stop on runlevel [!35]
respawn
exec /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
#respawn4. Upgrade the OS (only few screenshots shown)
#exec /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
5. New kernel version after upgrade
uname -r6. Stop oracle-ohasd
2.6.32-279.el6.x86_64
initctl stop oracle-ohasd7. Un-comment the last two lines on /etc/init/oracle-ohasd that was commented earlier
oracle-ohasd stop/waiting
start on runlevel [35]8. Enable crs on startup
stop on runlevel [!35]
respawn
exec /etc/init.d/init.ohasd run >/dev/null 2>&1 </dev/null
crsctl enable crs9. Relink the Oracle Home binaries as the oracle software owner
CRS-4622: Oracle High Availability Services autostart is enabled.
which relinkThe relink will end with following on the log
/opt/app/oracle/product/11.2.0/dbhome_1/bin/relink
$ cd $ORACLE_HOME/bin
$ ./relink all
writing relink log to: /opt/app/oracle/product/11.2.0/dbhome_1/install/relink.log
test ! -f /opt/app/oracle/product/11.2.0/dbhome_1/bin/oracle ||\
mv -f /opt/app/oracle/product/11.2.0/dbhome_1/bin/oracle /opt/app/oracle/product/11.2.0/dbhome_1/bin/oracleO
mv /opt/app/oracle/product/11.2.0/dbhome_1/rdbms/lib/oracle /opt/app/oracle/product/11.2.0/dbhome_1/bin/oracle
chmod 6751 /opt/app/oracle/product/11.2.0/dbhome_1/bin/oracle
9. Unlock the permission on the grid software as root
# cd $GI_HOME/crs/install10. As the grid software owner (gird in this case) relink the grid software
# perl rootcrs.pl -unlock
Using configuration parameter file: ./crsconfig_params
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
Successfully unlock /opt/app/11.2.0/grid
[grid@rhel6m1 ~]$ export ORACLE_HOME=$GI_HOMEThe relink ends with
[grid@rhel6m1 ~]$ export PATH=$ORACLE_HOME/bin:$PATH
[grid@rhel6m1 ~]$ which relink
/opt/app/11.2.0/grid/bin/relink
[grid@rhel6m1 ~]$ $GI_HOME/bin/relink
writing relink log to: /opt/app/11.2.0/grid/install/relink.log
test ! -f /opt/app/11.2.0/grid/bin/oracle ||\11. Run the post relink script. rootcrs.pl -patch takes a while to complete and ends with an error as shown below
mv -f /opt/app/11.2.0/grid/bin/oracle /opt/app/11.2.0/grid/bin/oracleO
mv /opt/app/11.2.0/grid/rdbms/lib/oracle /opt/app/11.2.0/grid/bin/oracle
chmod 6751 /opt/app/11.2.0/grid/bin/oracle
# cd $GI_HOME/rdbms/installAfter an SR it was confirmed that this error is ignorable and crs could be started with "init 3" or by rebooting the server. Reason that above error happen is that since "ohasd run" line was commented on oracle-ohasd file there's no "ohasd run" process active when the kernel is upgraded and server is rebooted. Without "ohasd run" active the crsctl start crs (issued during the rootcrs.pl -patch) will fail to start the clusterware stack. This has no effect on the actual relink. This is also mentioned in 1050908.1
# ./rootadd_rdbms.sh
# cd $GI_HOME/crs/install
# perl rootcrs.pl -patch
Using configuration parameter file: ./crsconfig_params
CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
Failed to write the checkpoint:'' with status:FAIL.Error code is 256
Oracle Grid Infrastructure stack start initiated but failed to complete at crsconfig_lib.pm line 11545.
For metalink notes related to Upgrading OS and relinking clusterware and oracle binaries after OS upgrade refer the related post given below.
Related Posts
Upgrading OS in 11gR2 RAC Environment (RHEL 5)
Upgrading ASMLib and OS in 11gR1 RAC Environment