• 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. CentOS / RHEL 7 : How to start / Stop or enable / disable Firewalld
  2. What are Oracle Database Valut Schemas
  3. List of SELinux Utilities
  4. CentOS / RHEL 7 : systemctl replacements of legacy commands service and chkconfig
  5. Understanding Basic File Permissions and ownership in Linux
  6. How To Create Virtual Data Optimizer(VD0) in CentOS/RHEL 7 and 8
  7. How to use FTP under Linux to transfer files
  8. How to disable Ctrl+Alt+Del causing system reboot in CentOS/RHEL 6
  9. CentOS / RHEL 7 : How to set default target (default runlevel)
  10. How to Change default Oracle database listener port (1521)

You May Also Like

Primary Sidebar

Recent Posts

  • How to disable ACPI in CentOS/RHEL 7
  • How to Use real-time query to access data on a physical standby database
  • CentOS/RHEL 8: “ACPI MEMORY OR I/O RESET_REG” Server Hung after reboot
  • How to Create a Physical Standby Database by Using SQL and RMAN Commands
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary