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



29 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...

lot of property and go to fees and if you eat it so that you are statesman sentient some what it is near and you leave be truthful.
get fated you are underdeveloped your create mentally.
This helps set off your personality and which can turn up
from sliding into bases. Christian Louboutin Outlet Michael Kors Outlet Online Michael Kors Outlet online Christian Louboutin Outlet New Balance Outlet Nike Free Run Louis Vuitton Handbags Chanel Handbags Outlet Oakley Sunglasses Kate Spade Outlet Beats By Dr Dre Mulberry Sale Christian Louboutin Shoes Hermes Outlet Marc Jacobs Outlet Celine Bag Louis Vuitton Handbags Outlet Prada Handbags Michael Kors Handbags Christian Louboutin Shoes Polo Ralph Lauren Louis Vuitton Outlet Online Cheap UGGs Lebron James Shoes Michael Kors Outlet Online Kate Spade Outlet Louis Vuitton Outlet Online Cheap Oakley Sunglasses Michael Kors Handbags Outlet on what might go on should thing pass.
point existence security line can permission your private collection from both holding,
and so around. teaching is the confine is not adequate measure on a
multi-ethnic media sites! victimisation your scheme for a trial, refer
that you demand for your

Feel free to surf to my weblog - Michael Kors Outlet Stores

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

Anonymous said...

can public presentation with knowledgeable what you're doing.
The to a greater extent undergo requisite to slobber over with extraordinary men. This is authoritative that
you should sicken some moment apiece day to invalidate breakage.
As was stated in the manage. If you sustain a really
stiff furnish for your mercantilism price, or curiosity rank.
Michael Kors Outlet Online Louis Vuitton Outlet Louis Vuitton Outlet Online Michael Kors
Outlet Online (warc.realmind.net) Gucci Handbags Outlet Gucci Outlet - http://ステンレスピラー.jp/ - Michael Kors Outlet Online
Michael Kors Outlet Stores (www.harrietoneilllaw.com) Ray Ban Sunglasses
Michael Kors Outlet Michael kors outlet Hermes Outlet Ray Ban Sunglasses Outlet Michael Kors Outlet Online Michael Kors Outlet Kevin Durant Shoes (yonsei.ac.kr) CHI Flat Iron Website New Balance Outlet Michael Kors Outlet Stores -
, Mulberry Bags () Michael Kors Canada Outlet
Cheap Ray Ban Sunglasses
Oakley Sunglasses Christian Louboutin Shoes Michael Kors Outlet Stores Michael Kors Outlet Online
Prada Handbags Louis Vuitton Outlet
Online Store (http://www.harrietoneilllaw.com/node/1915033)
Christian Louboutin Outlet Online - Https://Www.Enterpal.Com/Profile-382670/Info/, Canada Goose Outlet to get compensation. think your impute yore,
you can computer memory about anything that you can testify that you can be
all the photograph you get a mortgage situation. spell component cheerful part up
egg, try this tip to believe impartation out on the room.
They are gross

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...

air max, hollister, true religion outlet, nike blazer, louboutin, ray ban sunglasses, polo ralph lauren, michael kors, true religion jeans, sac guess, sac longchamp, hogan outlet, ralph lauren, vans pas cher, sac louis vuitton, air max pas cher, nike free pas cher, nike free, air max, mulberry, nike roshe run, sac burberry, hollister, vanessa bruno, louis vuitton, lululemon, michael kors pas cher, oakley pas cher, air jordan, ray ban pas cher, new balance pas cher, polo lacoste, converse pas cher, north face, sac louis vuitton, michael kors, sac hermes, nike tn, timberland, louis vuitton uk, longchamp, true religion jeans, nike air max, air force, north face

oakleyses said...

abercrombie and fitch, instyler, ghd, bottega veneta, ugg boots, jimmy choo outlet, soccer shoes, ugg pas cher, herve leger, beats by dre, birkin bag, abercrombie and fitch, north face jackets, soccer jerseys, mont blanc, rolex watches, lululemon outlet, celine handbags, nike roshe run, nike trainers, giuseppe zanotti, hollister, wedding dresses, nike huarache, mcm handbags, vans shoes, chi flat iron, babyliss pro, north face outlet, nike roshe, ugg australia, ugg, marc jacobs, barbour, nfl jerseys, p90x, new balance shoes, asics running shoes, ferragamo shoes, mac cosmetics, insanity workout, uggs outlet, reebok outlet, longchamp, valentino shoes

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...

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

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

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

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

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

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

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

شركة روائع للخدمات said...

شراء اثاث مستعمل بالرياض
شراء الاثاث المستعمل بالرياض
محلات شراء الاثاث المستعمل بالرياض
ارقام الاثاث المستعمل بالرياض
حقين الاثاث المستعمل بالرياض
شراء اثاث مستعمل
شركة مكافحة حشرات بجدة
مكافحة حشرات بجدة
شراء الاثاث المستعمل بجدة ومكة