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




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_SCANEXCLUDE: Matching patterns to exclude disks from scan


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

Filter by APML


<<  February 2020  >>

View posts in large calendar