Installing and Configuring ASMLIb on Oracle Linux 7

Installing and Configuring ASMLIb on Oracle Linux 7

 
Differences to start ASMLib on OEL 6 and 7.
 
Quick guide to install (done on OEL 7), start and configure:
 
1. Install the ASMLib kernel module package as root using the following command:
 
         yum install kmod-oracleasm
 
2. Install the ASMLib library package and utilities package
         yum install oracleasm-support oracleasmlib oracleasm-`uname -r`
It’s possible some package to not found. For example:
No package oracleasmlib available.
So, you can download rpm libs from here and install via rpm:
[oracle@standalone oracle]$ sudo rpm -Uvh ~/oracleasmlib-2.0.12-1.el6.x86_64.rpm
Preparing…                          ################################# [100%]
Updating / installing…
1:oracleasmlib-2.0.12-1.el6        ################################# [100%]
Ok, now, lets configure/start services:
[oracle@standalone ~]$ sudo /etc/init.d/oracleasm configure
    Nothing happen
 
=================================================================
ISSUE 1: –
[oracle@standalone ~]$ sudo /etc/init.d/oracleasm start
Starting oracleasm (via systemctl):  Job for oracleasm.service failed because the control process exited with error code. See “systemctl status oracleasm.service” and “journalctl -xe” for details.
[FAILED]
                                                       (OR)
ISSUE 2: –
[oracle@standalone init.d]$ sudo oracleasm listdisks
[oracle@standalone init.d]$ sudo oracleasm createdisk ORA_DATA /dev/sde1
oracleasm module not loaded or /dev/oracleasm not mounted.
================================================================

 

[oracle@standalone ~]$ sudo oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module “oracleasm”: oracleasm
Configuring “oracleasm” to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm
 
[oracle@standalone ~]$ sudo oracleasm configure
ORACLEASM_UID=
ORACLEASM_GID=
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=””
ORACLEASM_SCANEXCLUDE=””
ORACLEASM_USE_LOGICAL_BLOCK_SIZE=”false”
[oracle@standalone ~]$ sudo oracleasm configure -i
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver.  The following questions will determine whether the driver is
loaded on boot and what permissions it will have.  The current values
will be shown in brackets (‘[]’).  Hitting  without typing an
answer will keep that current value.  Ctrl-C will abort.
Default user to own the driver interface []: grid
Default group to own the driver interface []: oinstall
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
[oracle@standalone ~]$ sudo oracleasm configure
ORACLEASM_UID=grid
ORACLEASM_GID=oinstall
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=””
ORACLEASM_SCANEXCLUDE=””
ORACLEASM_USE_LOGICAL_BLOCK_SIZE=”false”
[oracle@standalone ~]$ sudo oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
 
To add a disk, the same process can be followed on earlier versions:
 
[oracle@standalone ~]$ sudo oracleasm createdisk ORA_DATA /dev/sde1
Writing disk header: done
Instantiating disk: done
[oracle@standalone ~]$ sudo oracleasm listdisks
ORA_DATA 

 

  • July 8, 2019 | 71 views
  • Comments