Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 

 

 

Configure OCFS for Linux

Oracle RAC Cluster Tips by Burleson Consulting

This is an excerpt from the bestselling book Oracle Grid & Real Application Clusters.  To get immediate access to the code depot of working RAC scripts, buy it directly from the publisher and save more than 30%.


In this section, how to create OCFS on the Linux platform will be covered. To verify disks/partitions use the command fdisk:

/sbin/fdisk /dev/sdd

Verify Partition Information

Command (m for help): p

Disk /dev/sdd: 255 heads, 63 sectors, 4443 cylinders

Units = cylinders of 16065 * 512 bytes

Device Boot        Start       End       Blocks              ID          System

/dev/sdd1                1     1530       12289693+       83          Linux

/dev/sdd2          1531     4443       23398672+       5            Extended

/dev/sdd5          1531     1913       3076416           83          Linux

/dev/sdd6          1914     2168       2048256           83          Linux

/dev/sdd7          2169     2806       5124703+         83          Linux

What is shown above is a relatively simple storage scenario. One disk device /dev/sdd, is divided into multiple partitions. Based on the above plan the OCFS mount points can be created as follows:

/dev/sdd1  --> /data/oracle/NYREP/u02       12289693+ (i.e. 12 gb)

/dev/sdd5  --> /data/oracle/NYREP/u01        3076416  (i.e.  3 gb)

/dev/sdd6  --> /data/oracle/NYREP/r01        2048256  (i.e.  2 gb)

/dev/sdd7  --> /data/oracle/NYREP/archive    5124703+ (i.e.  5 gb)

Download OCFS modules for the Linux platform (for the SMP kernel or Enterprise Kernel) and Linux Version, from the website http://oss.oracle.com/projects/ocfs/files/. Always look for the latest and recommended release of the OCFS packages.

Then install the RPM(s) by root.

[root@host-0001 software]# pwd

/db_dumps/oracle/NYREP1/software

[root@host-0001 software]# ls -lt

total 688

-rw-r--r--    1 oracle   dba        295535 Nov  5 03:56 ocfs-support-1.0.9-9.i686.rpm

-rw-r--r--    1 oracle   dba         80423 Nov  5 03:56 ocfs-tools-1.0.9-9.i686.rpm

-rw-r--r--    1 oracle   dba        300863 Nov  5 03:56 ocfs-2.4.9-e-enterprise-1.0.9-9.i686.rpm

drwxr-x---    2 oracle   dba          4096 Nov  3 03:38 9204_32P

drwxr-x---    3 oracle   dba          4096 Nov  3 03:29 9201_32

[root@host-0001 software]# rpm -Uvh ocfs-support-1.0.9-9.i686.rpm

Preparing...                ########################################### [100%]

   1:ocfs-support           ########################################### [100%]

[root@host-0001 software]# rpm -Uvh ocfs-2.4.9-e-enterprise-1.0.9-9.i686.rpm

Preparing...                ########################################### [100%]

   1:ocfs-2.4.9-e-enterprise########################################### [100%]

Linking OCFS module into the module path [  OK  ]

[root@host-0001 software]# rpm -Uvh ocfs-tools-1.0.9-9.i686.rpm

Preparing...                ########################################### [100%]

   1:ocfs-tools             ########################################### [100%]

[root@host-0001 software]#

Then copy the rpm(s) to second node and repeat the RPM installation

THEN verify the installed modules on both the nodes.

[root@host-0002 software]# rpm -qa | grep -i ocfs

ocfs-support-1.0.9-9

ocfs-tools-1.0.9-9

ocfs-2.4.9-e-enterprise-1.0.9-9

[root@host-0002 software]#

To find out all the libraries, execute the following:

[root@host-0002 /]# find . -name '*ocfs*' -print

./etc/rc.d/init.d/ocfs

./etc/rc.d/rc3.d/S24ocfs

./etc/rc.d/rc4.d/S24ocfs

./etc/rc.d/rc5.d/S24ocfs

./lib/modules/2.4.9-e.27enterprise/kernel/drivers/addon/ocfs

./lib/modules/2.4.9-e.27enterprise/kernel/drivers/addon/ocfs/ocfs.o

./lib/modules/2.4.9-e-enterprise-ABI/ocfs

./lib/modules/2.4.9-e-enterprise-ABI/ocfs/ocfs.o

./lib/modules/2.4.9-e-enterprise-ABI/ocfs-noaio

./lib/modules/2.4.9-e-enterprise-ABI/ocfs-noaio/ocfs.o

./sbin/mounted.ocfs

./sbin/fsck.ocfs

./sbin/load_ocfs

./sbin/mkfs.ocfs

./sbin/ocfs_uid_gen

./usr/bin/debugocfs

./usr/bin/ocfstool

./usr/include/sys/procfs.h

./usr/share/man/man1/ocfstool.1.gz

./db_dumps/oracle/NYREP2/software/ocfs-support-1.0.9-9.i686.rpm

./db_dumps/oracle/NYREP2/software/ocfs-tools-1.0.9-9.i686.rpm

./db_dumps/oracle/NYREP2/software/ocfs-2.4.9-e-enterprise-1.0.9-9.i686.rpm

[root@host-0002 /]#

Then, using the utility ocfstool, generate the file /etc/ocfs.conf. ocfstool is a GUI front-end for managing and debugging OCFS volumes on the system; and also the preferred method for managing OCFS. One can mount and unmount volumes, format partitions, view information and individual files, see the current node map, and block bitmap.

Now it is time to create the file systems by using the mkfs command:

e.g

mkfs.ocfs -F -b 128 -L /u01  -m /data/oracle/NYREP/u01     -u 23444 -g 252 -p 0775 /dev/sdd1

mkfs.ocfs -F -b 128 -L /u02  -m /data/oracle/NYREP/u02     -u 23444 -g 252 -p 0775 /dev/sdd5

mkfs.ocfs -F -b 128 -L /r01  -m /data/oracle/NYREP/r01     -u 23444 -g 252 -p 0775 /dev/sdd6

mkfs.ocfs -F -b 128 -L /arch -m /data/oracle/NYREP/archive -u 23444 -g 252 -p 0775 /dev/sdd7

**********  NOTES on the Format of the Command **********

# mkfs.ocfs -F -b 128 -L /u04 -m /u04 -u 1001 -g 1001 -p 0775

/dev/sde1

where the syntax for ocfstool is:

mkfs.ocfs -b block-size [-C] [-F] [-g gid] -L volume-label

-m mount-path [-n] [-p permissions] [-u uid] [-v] [-V] device

with the following options:

 -b Block size in kilo bytes

 -C Clear all data blocks

 -F Force format existing OCFS volume

 -g GID for the root directory

 -L Volume label

 -m Path where this device will be mounted

 -n Query only

 -p Permissions for the root directory

 -q quiet execution

For example, mkfs command creates file system:

[root@host-0001 ]# mkfs.ocfs -F -b 128 -L /u02  -m /data/oracle/NYREP/u02  -u 23444 -g 252 -p 0775 /dev/sdd5

Cleared volume header sectors                

Cleared node config sectors                

Cleared publish sectors                    

Cleared vote sectors                       

Cleared bitmap sectors                     

Cleared data block             

Wrote volume header        

 


This is an excerpt from the bestselling book Oracle Grid & Real Application Clusters, Rampant TechPress, by Mike Ault and Madhu Tumma.

You can buy it direct from the publisher for 30%-off and get instant access to the code depot of Oracle tuning scripts.

http://www.rampant-books.com/book_2004_1_10g_grid.htm


 

 
��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational