Tuesday, February 2, 2010

Oracle 11gR2 RAC installation: install and configure OCFS2

This post will describe how to install and configure OCFS2, the Oracle Cluster File System, a shared disk file system developed by Oracle Corporation and released under the GNU General Public License.
First of all download and install on both nodes the requested rpm files from the Oracle website: http://oss.oracle.com/projects/ocfs2/files/





Then run the console using the following command as root just from one node:
ocfs2console &




Then select Cluster->Configure Nodes... from menu


and the following window will appear


Press tha ADD button


And insert all details of your node (specifing the private IP address)


Again ADD button to add details for the second node


Click the APPLY button


The select Cluster->Propagate Configuration... from menu


Type YES and the root password when asked. When FINISHED! is showned, click on CLOSE button


Now from first node type:
/etc/init.d/o2cb configure

Answer Y to load O2CB driver on boot, then use default value for cluster name, then 61 as heartbeat dead threshold and then accept all default values.


The same steps for the second node


Now it's time to format, selecting Tasks->Format from menu


A list of available devices will appear. Use a Volume label and then press OK. I will setup TWO devices to share disks






First devices is formatted


Proceed with the second one








Quit OCFS2 console


Now on both nodes, run:
mkdir -p /u02/ocfs2/
mkdir -p /u02/ocfs2_mirror/
mount -t ocfs2 -o datavolume,nointr /dev/emcpowerb1 /u02/ocfs2/
mount -t ocfs2 -o datavolume,nointr /dev/emcpowerd1 /u02/ocfs2_mirror/
echo "/dev/emcpowerb1 /u02/ocfs2/ ocfs2 _netdev,datavolume,nointr 0 0" >> /etc/fstab
echo "/dev/emcpowerd1 /u02/ocfs2_mirror/ ocfs2 _netdev,datavolume,nointr 0 0" >> /etc/fstab
reboot



43 comments:

Anonymous said...

Hi Marco.

I was watching the installation of OCFS2 and I have an important question for you. The IP must enter the IP must necessarily be private or public IP. I am writing this because I have seen other explanations that use the public IP also.

Mauricio Torrejon
Greetings from Chile.

Marco V. said...

Hi Mauricio.
Yes I know. Someone uses to configure them as public IP.
Anyway there's a best practic pdf on Metalink that suggest to use them as private ip. Just let me found the exact doc id and I'll post here.

Marco V. said...

Ok.. I found it.. it was doc id 578036.1 on metalink (Error 'o2net_check_handshake ...' When Using Public Network Interface for OCFS2 [ID 578036.1])
It says in few words:
while OCFS2 does not take much bandwidth, it does require the nodes to be alive on the network and sends regular keepalive packets to ensure that they are. To avoid a network delay being interpreted as a node disappearing on the net which could
lead to a node-self-fencing, a private interconnect is recommended and one could use the same interconnect for Oracle RAC and OCFS2.

Regards,
Marco

Anonymous said...

Hi Marco,

Thanks for the tip, now I prepare for the installation of Clustweware. I hope never have problems.

Greeting.

Anonymous said...

Hi Marco, Can you explain how the /dev/emcpowerb1 appeared (at the formatting step). It appears to be ext3 - is it already shared or clustered across the 2 nodes? As it is in your san; are you using the san to share this ext3 filesystem even before ocfs2 is installed?

I want to test ocfs2 for shared oracle datafiles using just ordinary pc hardware (local disks of course). Can this be done using OCFS2? Do I need special h/w to share the disks?

Thank you for very clear articles.

Anonymous said...

People talk themselves out of exercising so easily, and the opposite can be so easy.

' The picture is just as worrying for youngsters - by 2010, it's predicted 22 per cent of girls and 19 per cent of boys
between the ages of two and 15 will be obese, with girls under 11 at particular risk.
Remember; there is a difference between a fattening diet and a healthy diet.


Feel free to surf to my website - simply click the up coming website

Anonymous said...

Hi, I check your blogs daily. Your story-telling style is awesome, keep it up!


Review my homepage - Find Out More

Anonymous said...

Your post οffers established beneficial tο me perѕоnаlly.
It’s extremely helpful and уou гeаlly
are obviоusly eхtremеlу еducatеd in this arеa.
You have got openeԁ mу pегsοnal eye for you to different νіews on thіs matter with intrіguing anԁ reliаble artiсleѕ.
Also visit my blog ... Xanax

Anonymous said...

So, before you play, make sure you stretch the muscles used in swinging your golf club.
Training with intensity does not mean training foolishly; you must always train within your limits by using an appropriate
resistance and exercises that you are capable
of doing. Take note also that you know how to perform
the exercise well to avoid sickness and injuries
in the future.

my blog post ... fitness tips at work

Anonymous said...

Internet is the biggest server of fun with a lot of variety.
This trend brings more enthusiast people to upload the beautiful
funny videos to share with others and get their precious feedback.

There are a few selections of these to choose from on
this site too.

Here is my page ... myspace funny pictures and videos

Anonymous said...

People are very interested to watch the latest crime news.

The mobile news service facility is very new and unique concept that has created
a buzz among every citizen. The reliable reviews on business and forecast about products and services.


Also visit my web-site :: Latest Daily News

Anonymous said...

You will find the most updated news being uploaded or published in
blogs and celeb news sites. Aamir Khan and Amitabh Bachchan had a rough battle, when
the movies related to them were released at the same
time. As a consequence it can be contended the media is directing many persons astray moving away from what
should be its aim of presenting discerning news and
analytic thinking of pressing topics for this celebrity frippery.


Visit my web site ... latest celeb news

Anonymous said...

The advantage about the funny pictures is that you can watch them along with the family.

It is hard to imagine how athletes can do such entertaining and funny
facial expressions, but apparently the desire to win is more
important than image. A few young superstars have made their name just from
being spread across the internet in videos and photos.


My webpage ... edetik.com

Anonymous said...

Ahaa, its fastidious convеrѕаtion гegarding this article at thіs place at thiѕ web site, I
have reaԁ all that, so now me also сommenting at this plаce.


Feel free to surf to my blog post :: pure raspberry ketones 1000mg

Anonymous said...

Hі there! Τhis blog poѕt couldn't be written much better! Going through this article reminds me of my previous roommate! He constantly kept talking about this. I most certainly will forward this article to him. Fairly certain he will have a very good read. Many thanks for sharing!

my web site ... green coffee bean extract weight loss supplements recommended by dr oz

Anonymous said...

I dо not еven κnow how ӏ ended up
here, but I thought this pοst ωas good.
I don't know who you are but definitely you're going to a famous
blogger іf you arеn't already ;) Cheers!

my webpage; green coffee extract

Anonymous said...

I've learn several good stuff here. Certainly price bookmarking for revisiting. I wonder how a lot effort you put to create this sort of excellent informative web site.

my website; Auto transport

Anonymous said...

Αmazіng! Τhis blog looks exactly like mу olԁ onе!

It's on a entirely different topic but it has pretty much the same layout and design. Excellent choice of colors!

Also visit my web page - sports bedrooms for girls

Anonymous said...

Hi thеre, juѕt becаme alеrt tο уοuг blog thrοugh Goοgle, and found that it is truly infогmative.
I'm going to watch out for brussels. I'll bе
grateful іf уοu continue this іn
future. Lots of people ωill be benefitеd frоm уour ωrіtіng.
Cheers!

My web sіte - raspberry ketone

Anonymous said...

Thanks for every other informative web site.
The place else could I am getting that type of info written in such an ideal method?
I have a venture that I am simply now working on, and I have been at the glance out for such
information.

For an incredible review please check out this page ...

handbags on sale

Anonymous said...

Then load up the hack instrument, select your machine sort and click on ‘find
machine'. Now you'll be able to select the quantity of Deer
Hunter 2014 money and gold that you just require and click
on generate.

My blog post deer hunter 2014 hack

oakleyses said...

oakley sunglasses, prada handbags, oakley sunglasses, longchamp handbags, longchamp handbags, louboutin shoes, louis vuitton handbags, coach factory outlet, tiffany and co, coach purses, louis vuitton outlet, polo ralph lauren outlet, air max, prada outlet, longchamp outlet, oakley sunglasses cheap, ray ban sunglasses, louboutin outlet, michael kors outlet, michael kors outlet, tiffany and co, burberry outlet, christian louboutin shoes, coach outlet store online, jordan shoes, polo ralph lauren outlet, louboutin, kate spade handbags, michael kors outlet, coach outlet, air max, gucci outlet, michael kors outlet, ray ban sunglasses, chanel handbags, michael kors outlet, tory burch outlet, nike free, kate spade outlet, louis vuitton outlet, burberry outlet, louis vuitton outlet stores, louis vuitton, nike shoes, michael kors outlet

oakleyses said...

converse, air max, gucci, canada goose, juicy couture outlet, canada goose, wedding dresses, moncler, ralph lauren, lancel, montre homme, moncler, louboutin, oakley, karen millen, vans, coach outlet store online, air max, canada goose jackets, ugg, hollister clothing store, louis vuitton, baseball bats, hollister, rolex watches, juicy couture outlet, iphone 6 cases, canada goose uk, canada goose outlet, ugg, moncler, moncler outlet, timberland boots, hollister, supra shoes, moncler, canada goose, converse shoes, toms shoes, moncler, moncler, canada goose, ugg boots, ray ban, parajumpers, canada goose

ركن الخليج للخدمات المنزلية said...

شركة تنظيف بالدمام

شركة تنظيف بالرياض

شركة تنظيف بالطائف

شركة تنظيف بالقصيم

شركة تنظيف بالمدينة المنورة

شركة تنظيف بجدة

شركة تنظيف بحائل

QuickBooks Payroll Support said...

Nice Blog We are providing technical support in Quickbooks Support Phone Number +1-800-986-4607. if you are Expand your business to a new hike, with progressive approach. Seeking for the best accounting software? Then, get QuickBooks installed in your system. The software proves to be more profitable to the business.

CentORG said...

IIT JEE Coaching in Patna | IIT JEE Institute in Patna | NEET Coaching in Patna | Medical Coaching in Patna | JEE Mains, JEE Advance Coaching in Patna | Europa Classes

JEE Mains, JEE Advance Coaching in Patna
Hot offers on Amazon]
Tips on technology

Anushka Sen

CentORG said...

tipsontechnology

learn every time new tips on technology

Hey my audience, in this website we’ll post about many tips on technology. many tips on hacking, education and many entertainment niche. i’ll post somethin Tips on technology
g special for you, Everyday
So check out it from here

CentORG said...

sale all product in hindi

Hindisales provide you most productive Offers notification for you. If you Want to buy any products for you. Just check offers on that products in hindisales and check it out from here
Hot offers on Amazon]

CentORG said...

Anushka Sen:- She is an actress from India. she works on many roles in his tiny age. The main role of his carrier was Balveer as Mehar. Peoples calls him The purple star of India. His age in this time for about 17 years and she gets about three big roles in his acting carrier. And now she is working on Manikarnika(Jhansi ki Rani).

Anushka Sen

QuickBooks Payroll Support said...

Nice article QuickBooks Payroll Support Phone Number 1-800-986-4607 has fascinated the world by its advanced & exclusive features. Need any assistance or facing any issue while using QuickBooks? Don’t hesitate to call us, on Quickbooks Payroll Support Phone Number 1800-986-4607.

libraartic said...

anda mau main poker online tapi kesulitan daftarnya ? mau tau situs poker yang punya proses daftar cepat dan mudah ? cek blog ini deh : https://www.libraartic.com/

IDN poker uang asli said...

idn poker situs judi poker online yang sudah di percaya banyak pemain di seluruh indonesia untuk bermain judi poker online dengan keuntungan uang asli yang bisa di dapatkan oleh para pemain dengan mudah, dan cara depositnya yang bisa melalui bank lokal terpercaya atau bisa juga pakai ovo dan gopay.
http://alice.org/forums/member.php?u=51685

Rajiv Tripathi said...

The largest manufacturer of soil and water probiotics in Hyderabad India is Bioxcell. We are the leading supplier & exporter of water & soil probiotics. Visit to order -
Largest soil and water probiotics Manufacturer in Hyderabad

Rajiv Tripathi said...

Get online the best fabric wholesale supplier in Surat Gujrat, We deal in cotton dobby dyed, pv cotton, mal cotton rfd etc. Visit to order -
Best Fabric Wholesale Supplier in Surat India

Rajiv Tripathi said...

Louis Exports, the best gold plated jewellery manufacturer in Faridabad, makes people remember not only the jewellery itself, but also the woman who wears that jewellery. Visit to order -
Best Gold Plated Jewellery manufacturer in Faridabad

Rajiv Tripathi said...

New Agri Growth Global is involved as the best organic red onion supplier in Mumbai India. We are manufacturing and supplying the excellent quality of Onions. Visit to order -
Best organic red onion supplier in India

Rajiv Tripathi said...

Sanigen is the top online hand wash liquid and detergent liquid wholesale supplier company in Kerala India. Apart from cleaning the hands and killing the germs, handwash offers innumerable benefits. Visit to order -
Best Hand Wash and Detergent Liquid Manufacturer Company

Rajiv Tripathi said...

As the online biggest cotton seed oil cake manufacturer and supplier company in Andhra Pradesh, India. We are focused on providing our clients with an excellent quality designer range of Cotton Seed Oil cake in this industry. Visit to order -
Biggest cotton seed oil cake manufacturer and supplier company in Andhra Pradesh

Rajiv Tripathi said...

Sri Venkateshwara is involved as the best Silk Saree Manufacturer and Supplier Company in Andhra Pradesh providing the best grade Pure Handloom Sarees to the clients. We have a precious collection of Pure Kanjivaram Silk Sarees for our clients. Visit to order -
Best Silk Saree Manufacturer and Supplier Company in Andhra Pradesh

Rajiv Tripathi said...

ION Farms bring the goodness & become the best Pure Organic Cow Desi Ghee manufacturer, Wholesale Supplier and Distributor in Gurgaon, Haryana India. Visit to order -
Best Organic Cow Desi Ghee manufacturer in Gurgaon

Rajiv Tripathi said...

New Era Poultry Farms is the leading online best Fresh chicken meat manufacturer, wholesalers, suppliers & trader company in India, offering a wide variety of Fresh Chicken, Fresh chicken meat, Fresh whole chicken meat, and other products. Visit to order -
Best Fresh Chicken Meat Manufacturer in India

Anonymous said...

replica bags canada browse around this web-site d5i07m4p28 replica bags qatar go to the website u7g94p4g20 bags replica ysl replica bags uk replica bags and shoes fake gucci q3c22r8k74 replica radley bags

Anonymous said...

e1k57n3y48 b9y09o2l76 u6h28d1j84 j7s48z6a50 p3h38t3x16 v9r58g7r65