OCP Blog
Super DBA
Configure linux for using Asm 11gR2
by Vazha Mantua Wednesday, January 4, 2012 12:42 PM

Good Day All.

Today we will discuss about configuration Linux for using ASM realize 11gR2.

Main difference between old and new versions of ASM is that now we need new groups and privileges on OS level for creating and managing ASM instances. Also Installation process is difference. For new realize we should install Grid infrastructure, but now we discuss about preparing work for using ASM in Linux.

Let start:

1.Create users,Groups,directories for Grid Infrastructure(grid user) and Oracle Software(oracle user)

groupadd –g 1000 oinstall
groupadd –g 1200 asmadmin
groupadd -g 1300 asmdba
groupadd -g 1301 asmoper

mkdir -p /u0/app/oracle
mkdir -p /u0/app/grid

useradd –s /bin/bash –d /u0/app/oracle –g oinstall –G asmadmin,asmdba,asmoper oracle
useradd –s /bin/bash –d /u0/app/grid –g oinstall –G asmadmin,asmdba,asmoper grid

chown –R oracle:oinstall /u0/app/oracle
chown –R grid:oinstall /u0/app/grid
chmod –R 775 /u0/app/oracle
chmod –R 775 /u0/app/grid
passwd oracle
passwd grid

2.Install ASM library driver

First of all you should get version of your OS with command uname –a

Than download and install packages

oracleasm-support-version.arch.rpm

oracleasm-kernel-version.arch.rpm

oracleasmlib-version.arch.rpm

Which you can find for your version of Linux in link: http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html

3. Configure disk for ASM

we use multipathing feature, for using this feature for ASM you should:

Add to file /etc/sysconfig/oracleasm

# ORACLEASM_SCANORDER: Matching patterns to order disk scanning

ORACLEASM_SCANORDER=”mapper/*”

# ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan

ORACLEASM_SCANEXCLUDE=”sd

For configure the on-boot properties of the Oracle ASM library driver:

/usr/sbin/oracleasm configure –I (Enter values: grid, asmadmin ,Y ,Y)

Load the kernel module using the following command:

/usr/sbin/oracleasm init

List of suitable disks you can find /sbin/fdisk –l

In your case we enable multipathing in Linux level,that’s why we have disk with name “mapper”.

/usr/sbin/oracleasm createdisk DATA11 /dev/mapper/mpath5

/usr/sbin/oracleasm createdisk DATA21 /dev/mapper/mpath6

We create 2 disk’s candidate for member of ASM instance,named DATA11 and DATA21,which are created.

command to refresh the ASM disk configuration: /usr/sbin/oracleasm scandisks

Comments (27) -

1/7/2012 4:58:50 PM #

Orya Jan

Nice intro of Oracle thanks for sharing!

Orya Jan United States

1/12/2012 12:21:11 PM #

Boutique PR Agency

WOW what a great information!

Boutique PR Agency United States

1/12/2012 12:25:46 PM #

Boutique PR Agency

Nice Piece OF information!

Boutique PR Agency United States

1/13/2012 4:13:05 PM #

3g repeater

You did the great and hard work! Thank's for sharing with us!

3g repeater

1/27/2012 9:37:27 AM #

olive juice for martinis

Wow very enjoyable video! I hope you might maintain in submitting new content articles & thank you for sharing your great experience among us.

olive juice for martinis United States

1/30/2012 1:05:59 PM #

yellow pages in varanasi

I really appreciate your professional approach. These are pieces of very useful information that will be of great use for me in future.

yellow pages in varanasi United States

2/4/2012 1:38:49 PM #

Erectile Dysfunction

Thanks for your share, this is great, It is rather interesting for me to read this article. Thanx for it. I like such topics and everything that is connected to them. I would like to read more on this site soon.

Erectile Dysfunction United States

2/13/2012 11:18:20 AM #

seo next

I'll likely be back again to examine more, thanks for that information.I have so many trouble . I'm also wanna change many things but circumstances that I have are stopped me. I learn to respond with a better option to my life myself & my family. Great post for me ! Many thanks to you!
<a href="http://www.clinicsource.com/">therapy forms</a>

seo next United States

2/15/2012 8:12:24 PM #

buy laptop battery

You are always giving so many new ideas and I hope it will continue in the future. That's perfect, your words are really easy to perceive.

buy laptop battery Panama

2/16/2012 2:55:40 PM #

www.seonext.com complaints

admire the useful information and facts you offer in your articles. Ill bookmark your blog and have my kids verify up here typically. I am fairly certain theyll discover a lot of new stuff right here than anyone else!

www.seonext.com complaints United States

2/22/2012 2:32:08 PM #

writing a college term paper

A lot of really useful free information. It would have been glad to receive from you? and that is important - always promptly

writing a college term paper Mexico

2/23/2012 2:58:53 PM #

www.seonext.com complaints

It is a very profitable post for me. I've enjoyed reading the post. It is very informative and useful post. I would like to visit the post once more its valuable content. Hi, This is a good post, indeed a great job.. .You must have done good research for the work, I appreciate your efforts…Looking for more updates from your side. Thanks

www.seonext.com complaints United States

3/3/2012 9:55:42 AM #

beach umbrellas

I’m not sure why but this website is running incredibly slowly for me. Is anyone else having this concern or is it a concern on my end? I’ll look later and see if the concern still prevails.

beach umbrellas United States

3/5/2012 2:39:07 PM #

lda lucknow

Your post really helps me to work easily. Thanks for providing such important information.

lda lucknow United States

3/14/2012 8:23:54 AM #

honda aviator

While reading your blog it seems that you research on this topic very much. I must tell you that your blog is very informative and it helps other also.

honda aviator United States

3/20/2012 10:40:21 AM #

the alliance group inc scam

I significantly consider this online web-site demands extra thought. I'll just about unquestionably be back again to examine a great deal extra, thanks to the knowledge.A person point I just drive to mention is your Weblog is so fantastic worthwhile for us.I hope you happen to be gonna still continue to keep in publishing new content pieces & thank you for sharing your great experience among us.

the alliance group inc scam United Kingdom

3/20/2012 3:45:56 PM #

yellow pages in panchmahal

Good post man, just looking around some blogs, seems a pretty nice platform you are using.

yellow pages in panchmahal United States

3/26/2012 1:25:10 PM #

serra peptase

Great post, These days I am reading a lot about this topic because I have my essay writing project due on this weekend, I am glad that i found some very useful information thanks,

serra peptase United States

4/2/2012 3:31:04 PM #

play bingo online games

Nice post, thanks for sharing this wonderful and useful information with us.

play bingo online games United States

4/2/2012 3:32:26 PM #

play best online poker

it's a very nice blog. I will visit later.

play best online poker United States

4/2/2012 3:33:12 PM #

play best online poker

this theme is really awesome.. thanks for sharing Smile

play best online poker United States

7/11/2012 7:58:37 PM #

Buy Generic Viagra

I am thoroughly convinced in this said post. I am currently searching for ways in which I could enhance my knowledge in this said topic you have posted here. It does help me a lot knowing that you have shared this information here freely. I love the way the people here interact and shared their opinions too. I would love to rack your future posts pertaining to the said topic we are able to read.

Buy Generic Viagra United States

7/13/2012 6:45:49 PM #

hormone replacement

Sometimes a unique post with a designing of this kind is really charming. This post has been somewhat of a revelation to me.

hormone replacement United States

8/2/2012 1:42:49 AM #

3D Scanning

I will refer to a Linux System, you could conceivably connect any type of 10 baste device to the modem.

3D Scanning United States

8/2/2012 11:42:04 AM #

Orlando Home Inspection

Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution.

Orlando Home Inspection United States

8/29/2012 11:13:38 PM #

Language Games

this theme is really awesome.. thanks for sharing

Language Games United States

1/28/2013 5:40:40 PM #

language exchange

nice blog Smile

language exchange United States

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Filter by APML

Calendar

<<  November 2017  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

TextBox