• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL : Installing and Configuring ASMLib

by admin

Oracle ASM (Automated Storage Management) is a data volume manager for Oracle databases. ASMLib is an optional utility that can be used on Linux systems to manage Oracle ASM devices. ASM assists users in disk management by keeping track of storage devices dedicated to Oracle databases and allocating space on those devices according to the requests from Oracle database instances.

ASMLib consists of the following components:

  1. An open source (GPL) kernel module package: kmod-oracleasm
  2. An open source (GPL) utilities package: oracleasm-support
  3. A closed source (proprietary) library package: oracleasmlib

ASM features and functionality are available without ASMLib. The use of ASMLib does not affect database performance.

Installing ASMLib:

1. Install the ASMLib kernel module package as root using the following command:

# yum install kmod-oracleasm

2. Download the ASMLib utilities package (oracleasm-support) and ASMLib library package (oracleasmlib) from the following location:
http://www.oracle.com/technetwork/server-storage/linux/asmlib/rhel6-1940776.html

3. Install the ASMLib library package obtained from step 2 as root using the following command, with the downloaded package:

# yum localinstall oracleasmlib-[version].x86_64.rpm    # Where [version] is the revision downloaded in the previous step

4. Install the ASMLib utilities package obtained from step 2 as root using the following command, with the downloaded package:

# yum localinstall oracleasm-support-[version].x86_64.rpm

All three required ASMLib components should now be installed on your system.

Configuring ASMLib

1. Configure ASMLib using the following command. The script will ask for a user and group that will own the ASM driver access point. In our case, we will use the database user “oracle” and group “oinstall”. But you can also have different user and group than these.

# /etc/init.d/oracleasm configure
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 []: oracle
Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration            [  OK  ]
Creating /dev/oracleasm mount point                        [  OK  ]
Loading module "oracleasm"                                 [  OK  ]
Mounting ASMlib driver filesystem                          [  OK  ]
Scanning system for ASM disks                              [  OK  ]

This loads the oracleasm.o driver and mounts the ASM driver filesystem. In case of any failure you can check the log file /var/log/oracleasm.

To enable or disable automatic start of ASMLib driver

To disable automatic start of ASMLib on reboot of system :

# /etc/init.d/oracleasm disable
Writing Oracle ASM library driver configuration            [  OK  ]
Unmounting ASMlib driver filesystem                        [  OK  ]
Unloading module "oracleasm"                               [  OK  ]

To enable automatic start of ASMLib on reboot of system :

# /etc/init.d/oracleasm enable
Writing Oracle ASM library driver configuration            [  OK  ]
Loading module "oracleasm"                                 [  OK  ]
Mounting ASMlib driver filesystem                          [  OK  ]
Scanning system for ASM disks                              [  OK  ]

Filed Under: ASM, Linux, oracle

Some more articles you might also be interested in …

  1. How to move ASM spfile to a different disk group
  2. How to Create yum Repository in CentOS/RHEL
  3. List of Operating System Processes Started by the OMS
  4. How to increase swap space on Linux
  5. Dynamic Oracle Net Server Tracing
  6. How to monitor NVME drives on Centos 6
  7. What is SUID, SGID and Sticky bit ?
  8. How to shrink root filesystem on CentOS / RHEL 6
  9. How to make alias command work in bash script or bashrc file
  10. MySQL Server Error – “Can’t Create A New Thread (errno 11)”

You May Also Like

Primary Sidebar

Recent Posts

  • What are /dev/zero and /dev/null files in Linux
  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright