ASM Installation

Oracle Automatic Storage Management installation (ASM) on Linux Steps

We’re here Installing ORACLE ASM in Linux Operation System via Virtual Box.

Important installation ASM

Important packages

kmod-oracleasm-2.0.8-16.1.el6_10.x86_64

oracleasm-support-2.1.11-2.el6.x86_64

oracleasmlib-2.0.12-1.el6.x86_64

1. oracleasm-support

2. kmod-oracleasm

3. rpm oracleasmlib

4. oracle-rdbms-server-11gR2-preinstall (according to version)

5. oracle 11g r2 grid

First we need to go to etc yum repository

[root@asmqp ~]# cd /etc/yum.repos.d

So now we will install required libraries

Here need to edit yum public oracle 6 repository because we’re installing in Linux 6

[root@asmqp yum.repos.d]# vi public-yum-ol6.repo

Search it via /u4

You will get


Install it

[root@querypanelasm ~]# wget https://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.12-1.el6.x86_64.rpm

[root@querypanelasm ~]# yum localinstall oracleasmlib-2.0.12-1.el6.x86_64.rpm

[root@asmqp yum.repos.d]# wget http://yum.oracle.com/public-yum-ol6.repo

Here we’re installing required asm libraries

[root@querypanelasm yum.repos.d]# wget https://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.12-1.el6.x86_64.rpm

oracleasm-support installation

in oracle support installation they will ask you are you sure to continue need to type yes

[root@asmqp yum.repos.d]# yum install  oracleasm-support

Kmod installation

[root@asmqp yum.repos.d]# yum install kmod-oracleasm

Also need to install oracleasmlib

[root@asmqp yum.repos.d]# wget https://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.12-1.el6.x86_64.rpm

Here we are installing oracleasm rpm packages

[root@asmqp yum.repos.d]# wget https://oss.oracle.com/projects/oracleasm-support/dist/files/RPMS/rhel6/amd64/2.1.8/oracleasm-support-2.1.8-1.el6.x86_64.rpm

Here we need to give the access permission

[root@asmqp yum.repos.d]# chmod 777 oracleasmlib-2.0.12-1.el6.x86_64.rpm

Also need to install asmlib support files

[root@asmqp yum.repos.d]# wget https://oss.oracle.com/projects/oracleasm-support/dist/files/RPMS/rhel6/amd64/2.1.8/oracleasm-support-2.1.8-1.el6.x86_64.rpm

RPM Packages installation method rpm –Uvh and filename 

[root@asmqp yum.repos.d]# rpm -Uvh oracleasmlib-2.0.12-1.el6.x86_64.rpm.1

RPM Requirement
64-bit (x86_64) Installations

binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
elfutils-libelf-devel-static-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
pdksh-5.2.14
sysstat-7.0.2
unixODBC-2.2.11
unixODBC-2.2.11 (32 bit)
unixODBC-devel-2.2.11
unixODBC-devel-2.2.11 (32 bit)

If you have not used the “oracle-rdbms-server-11gR2-preinstall” package to perform all prerequisites, you will need to manually perform the following setup tasks.

Important rpm Packages need to install

yum install binutils-2x86_64
yum install glibc-2x86_64 nss-softokn-freebl-3x86_64
yum install glibc-2i686 nss-softokn-freebl-3i686
yum install compat-libstdc++-33x86_64
yum install glibc-common-2x86_64
yum install glibc-devel-2x86_64
yum install glibc-devel-2i686
yum install glibc-headers-2x86_64
yum install elfutils-libelf-0x86_64
yum install elfutils-libelf-devel-0x86_64
yum install gcc-4x86_64
yum install gcc-c++-4x86_64
yum install ksh-x86_64
yum install libaio-0x86_64
yum install libaio-devel-0x86_64
yum install libaio-0i686
yum install libaio-devel-0i686
yum install libgcc-4x86_64
yum install libgcc-4i686
yum install libstdc++-4x86_64
yum install libstdc++-4i686
yum install libstdc++-devel-4x86_64
yum install make-3.81x86_64
yum install numactl-devel-2x86_64
yum install sysstat-9x86_64
yum install compat-libstdc++-33i686
yum install compat-libcap*
yum install unixODBC*
yum install unixODBC-devel*
yum install gcc-4.1.2
yum install elfutils-libelf-devel-0.125
yum install glibc-devel-2.5
yum install gcc-c++-4.1.2
yum install libaio-devel-0.3.106
yum install libstdc++-devel-4.1.2
yum install unixODBC-2.2.11
yum install unixODBC-devel-2.2.11
yum install elfutils-libelf-devel-0.125
yum install sysstat-7.0.2

rpm -Uvh binutils-2x86_64
rpm -Uvh glibc-2x86_64 nss-softokn-freebl-3x86_64
rpm -Uvh glibc-2i686 nss-softokn-freebl-3i686
rpm -Uvh compat-libstdc++-33x86_64
rpm -Uvh glibc-common-2x86_64
rpm -Uvh glibc-devel-2x86_64
rpm -Uvh glibc-devel-2i686
rpm -Uvh glibc-headers-2x86_64
rpm -Uvh elfutils-libelf-0x86_64
rpm -Uvh elfutils-libelf-devel-0x86_64
rpm -Uvh gcc-4x86_64
rpm -Uvh gcc-c++-4x86_64
rpm -Uvh ksh-x86_64
rpm -Uvh libaio-0x86_64
rpm -Uvh libaio-devel-0x86_64
rpm -Uvh libaio-0i686
rpm -Uvh libaio-devel-0i686
rpm -Uvh libgcc-4x86_64
rpm -Uvh libgcc-4i686
rpm -Uvh libstdc++-4x86_64
rpm -Uvh libstdc++-4i686
rpm -Uvh libstdc++-devel-4x86_64
rpm -Uvh make-3.81x86_64
rpm -Uvh numactl-devel-2x86_64
rpm -Uvh sysstat-9x86_64
rpm -Uvh compat-libstdc++-33i686
rpm -Uvh compat-libcap*
rpm -Uvh unixODBC*
rpm -Uvh unixODBC-devel*
rpm -Uvh gcc-4.1.2
rpm -Uvh elfutils-libelf-devel-0.125
rpm -Uvh glibc-devel-2.5
rpm -Uvh gcc-c++-4.1.2
rpm -Uvh libaio-devel-0.3.106
rpm -Uvh libstdc++-devel-4.1.2
rpm -Uvh unixODBC-2.2.11
rpm -Uvh unixODBC-devel-2.2.11
rpm -Uvh elfutils-libelf-devel-0.125
rpm -Uvh sysstat-7.0.2

[root@asmqp yum.repos.d]# rpm -Uvh oracleasm-support-2.1.8-1.el6.x86_64.rpm

[root@asmqp yum.repos.d]# yum install

[root@asmqp yum.repos.d]# yum update

Here we’re use to install  preinstall

[root@asmqp ]# yum install oracle-rdbms-server-11gR2-preinstall

Here change oracle user password

 [root@asmqp yum.repos.d]# passwd oracle

Here we need to disabled selinux

[root@asmqp ~]# vi /etc/selinux/config

Create new directory and give the access permission

[root@asmqp ~]# mkdir -p /u01/app/oracle/product/11.2.0/db_1

[root@asmqp ~] chown -R oracle:oinstall /u01/app/oracle/product/11.2.0/db_1

[root@asmqp ~]# mkdir -p /u01/app/grid/product/11.2.0/grid_1

[root@asmqp ~]# chown -R oracle:oinstall /u01/app/grid/product/11.2.0/grid_1

[root@asmqp ~]# chown -R oracle:oinstall /u01

[root@asmqp ~]# chown -R 775 /u01/app/oraInventory

[root@asmqp ~]# chmod -R 775 /u01

Here we can check oracleasm library have installed

[root@asmqp ~]# oracleasm

Here need to configure oracleasm

[root@asmqp ~]# oracleasm configure –i

Default user to own the driver interface []: oracle

Default group to own the driver interface []: oinstall

Start Oracle ASM library driver on boot (y/n)

Scan for Oracle ASM disks on boot (y/n) [y]: y

Writing Oracle ASM library driver configuration: done

[root@asmqp ~]# oracleasm init

Here scanning the disks

[root@asmqp ~]# oracleasm scandisks

Disk partition 

we need to create Disks so go to machine setting click on storage and click to create a new disk if you want to create more disk follow same steps

Whatever we can mention the disks name so check on attached screen i have mention NewVirtualDisk1 and 2

Now we have mention here disks creation process disk 1 and disk 2

[root@asmqp ~]# fdisk /dev/sdb

So here we have create a new disks

[root@asmqp ~]# oracleasm createdisk DATA1 ‘/dev/sdb1’

Now again creating disk 2

Disk two partition 

[root@asmqp ~]# fdisk /dev/sdc

[root@asmqp ~]# oracleasm createdisk DATA2 /dev/sdc1

After creation we can view created disks via /dev/oracleasm/disks or lisdisks

[root@asmqp ~]# oracleasm listdisks

Need to login oracle user

[root@asmqp ~]# su oracle

Transfer linux grid zip file via winSCP or direct download like curl  “url” –o filename

Need to download according to version now I am installing 11gr2 so I have select

linux.x64_11gR2_grid.zip

here we have mention the access permission to grid file

[oracle@asmqp ~]$ chmod 777 linux.x64_11gR2_grid.zip

After permission the color will be green

[oracle@asmqp ~]$ unzip linux.x64_11gR2_grid.zip

Now here we have unzip asm grid

So now need to login vi GUI window now we’re using MobaXterm

After unzip grid file we will ge grid folder in home directory so we will use to open the file in it there is a runInstaller so we need to run

[oracle@asmqp grid]$ ./runInstaller

After the command a new window will be open

Need to edit this library

[root@asmqp install]# cd /u01/app/oracle/product/11.2.0/grid_1/crs/install/s_crsconfig_lib.pm

my $UPSTART_OHASD_SERVICE = “oracle-ohasd”;
my $INITCTL = “/sbin/initctl”;

($status, @output) = system_cmd_capture (“$INITCTL start $UPSTART_OHASD_SERVICE”);
if (0 != $status)
{
error (“Failed to start $UPSTART_OHASD_SERVICE, error: $!”);
return $FAILED;
}

add this before # Start OHASD

Also need to add this line

[root@asmqp install]# vi /etc/init/oracle-ohasd.conf

[root@asmqp install]# ./roothas.pl -deconfig -force -verbose

Need to be run both script into same mention file loca

tion

  1. /u01/app/oraInventory/orainstRoot.sh

[root@asmqp oraInventory]# ./orainstRoot.sh

[root@asmqp grid_1]# ./root.sh

Now here successfully oracle ASM have installed 

We can check here in environment variable

Here we’re use to set the environment variable

[root@asmqp ~]# cat /etc/oratab

[root@asmqp ~]# . oraenv

We can check here asm is active

Crsctl owner of the root

(has) high availability services

[root@asmqp ~]# crsctl start has

[root@asmqp ~]# crsctl start has

One thought on “ASM Installation

  • August 21, 2022 at 11:04 am
    Permalink

    Usually I do not read post on blogs, but I would like to say that this write-up very forced me to take a look at and do so! Your writing style has been amazed me. Thanks, very great post.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *