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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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. “comm” Command in Linux with Examples
  2. Beginners guide to Device Mapper (DM) multipathing
  3. What roles can be set as default for a user in Oracle Database
  4. How to Create yum Repository in CentOS/RHEL
  5. 3 Ways of Increasing Swap Space on Linux
  6. How to manage File and Directory Permissions/Ownerships in Linux
  7. How to change a system’s machine-ID in Oracle Enterprise Linux 7
  8. The System Continuously Displayed the Error Message from the “avahi-demon” in /var/log/messages
  9. How to Setup SSH keys for “passwordless” ssh login in Linux
  10. How To Disable Or Extend System Logging Rate-limit on CentOS/RHEL 7

You May Also Like

Primary Sidebar

Recent Posts

  • Oracle Database – Configuring Secure Application Roles
  • Extend rule sets by using factors in Oracle Database Vault
  • What are Command Rules in oracle Database
  • Using Rule Sets in Oracle Database Vault
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary