DBA Tips Archive for Oracle
Upgrading OCFS2 - 1.4
by Jeff Hunter, Sr. Database Administrator
This article describes the steps necessary to upgrade an installation of Oracle Cluster File System 2 (OCFS2) 1.4 on the Linux platform. More specifically, the OCFS2 kernel driver will be upgraded from version 1.4.2-1 to the latest release which at the time of this writing is 1.4.7-1.
In addition, the OCFS2 Tools and Console will be upgraded from version 1.4.2-1 to version 1.4.4-1.
For the purpose of this article, a single OCFS2 file system is configured on a two node Oracle RAC 10g environment to support a shared file system required by Oracle Clusterware (the Oracle cluster registry file and the voting disk). The following table describes the current OCFS2 file system:
|Mount Point||LUN||Purpose||OCFS2 Kernel Driver||OCFS2 Tools||OCFS2 Console|
|/u02||/dev/iscsi/thingdbcrsvol1/part1||Oracle CRS Components||1.4.2-1.el5||1.4.2-1.el5||1.4.2-1.el5|
Upgrading from OCFS2 version 1.4.2-1 to 1.4.7-1 does not require any on-disk format change. At a minimum, only a simple kernel driver update is required in most situations which means the entire upgrade process could be performed in a rolling manner. While this would avoid a cluster-wide outage, a full outage was still scheduled for this upgrade since it was unknown if cleaning out any previous orphan files (using fsck.ocfs2) could be performed on a disk device that still had other cluster instances mounting it.
As mentioned earlier, the OCFS2 Console and OCFS Tools module will also be upgraded to the latest version along with the kernel driver.
Perform the following from all nodes in the Oracle RAC cluster.
Note: If orphaned files are detected and removed by fsck.ocfs2, run the fsck.ocfs2 command again to verify all orphaned files have been cleared out.
Note: Updating the OCFS2 modules (above) will remove all old OCFS2 RPMs (version 1.4.2-1) and replace them with the newer OCFS2 RPMs (version 1.4.4-1):
Note: Updating the OCFS2 modules (above) will remove all old OCFS2 RPMs (version 1.4.2-1) and replace them with the newer OCFS2 RPMs (version 1.4.7-1):
The default cluster stack configuration file for o2cb from the initial OCFS2 installation (/etc/sysconfig/o2cb) will still exist and contain the same values after the upgrade. It is highly recommended, however, to run the o2cb init script using the "configure" option in order to set any additional timeout parameters that may have been introduced in the newer version of OCFS2.
After the o2cb configuration process, the OCFS2 cluster stack will be started.
At this stage one could either reboot the nodes or simply restart the cluster and mount the volume(s).
Reboot All Oracle RAC Nodes – (Method 1)
Restart OCFS2 Cluster / Mount Cluster Volumes – (Method 2)
Re-enable OCFS2 Services on All Nodes
Note: If you updated the OCFS cluster timeouts by running the command "/etc/init.d/o2cb configure" in the previous section, the o2cb and ocfs2 services will already be started, in which case, you are not required to run the following commands to start the OCFS2 cluster services.
Re-mount OCFS2 Volumes
Bring Up Oracle Clusterware
Jeffrey Hunter is an Oracle Certified Professional, Java Development Certified Professional, Author, and an Oracle ACE. Jeff currently works as a Senior Database Administrator for The DBA Zone, Inc. located in Pittsburgh, Pennsylvania. His work includes advanced performance tuning, Java and PL/SQL programming, developing high availability solutions, capacity planning, database security, and physical / logical database design in a UNIX / Linux server environment. Jeff's other interests include mathematical encryption theory, tutoring advanced mathematics, programming language processors (compilers and interpreters) in Java and C, LDAP, writing web-based database administration tools, and of course Linux. He has been a Sr. Database Administrator and Software Engineer for over 20 years and maintains his own website site at: http://www.iDevelopment.info. Jeff graduated from Stanislaus State University in Turlock, California, with a Bachelor's degree in Computer Science and Mathematics.
Copyright (c) 1998-2018 Jeffrey M. Hunter. All rights reserved.
All articles, scripts and material located at the Internet address of http://www.idevelopment.info is the copyright of Jeffrey M. Hunter and is protected under copyright laws of the United States. This document may not be hosted on any other site without my express, prior, written permission. Application to host any of the material elsewhere can be made by contacting me at email@example.com.
I have made every effort and taken great care in making sure that the material included on my web site is technically accurate, but I disclaim any and all responsibility for any loss, damage or destruction of data or any other property which may arise from relying on it. I will in no case be liable for any monetary damages arising from such loss, damage or destruction.