How to install ASMLIB from Oracle’s public YUM

Copiado de

There are several ways to get ASMLIB, we can download it from the OTN here, or we can download it from from ULN (Unbreakable Linux Network).

Also it comes in the the Unbreakable Linux media, but if you are not subscribed to ULN and you are not using Unbreakable Linux then most people go to the OTN, where you have to select your Linux flavor and then navigate to the correct file according to the linux kernel and then download the 3 files one by one.

I’m going to explain here how easy is to get it from Oracle’s public YUM repository (how to configure the public YUM repository?)

Once you have the public YUM enabled do as root:

1 yum install oracleasm-support oracleasmlib oracleasm-`uname -r`

ET VOILA!!! it will take just one minute to complete!.

Here is an example on a CentOS 5.4

01 [root@scen503 yum.repos.d]# yum install oracleasm-support oracleasmlib oracleasm-`uname -r`
02 ..
03 ..   skipping a bunch of things...
04 ..
05 Resolving Dependencies
06 --> Running transaction check
07 ---> Package oracleasm-2.6.18-194.el5.x86_64 0:2.0.5-1.el5 set to be updated
08 ---> Package oracleasm-support.x86_64 0:2.1.4-1.el5 set to be updated
09 --> Finished Dependency Resolution
11 Dependencies Resolved
13 ================================================================================
14 Package                      Arch       Version          Repository       Size
15 ================================================================================
16 Installing:
17 oracleasm-2.6.18-194.el5     x86_64     2.0.5-1.el5      el5_u5_base      25 k
18 oracleasm-support            x86_64     2.1.4-1.el5      ol5_u6_base      87 k
20 Transaction Summary
21 ================================================================================
22 Install       2 Package(s)
23 Upgrade       0 Package(s)
25 Total download size: 113 k
26 Is this ok [y/N]: y
27 Downloading Packages:
28 (1/2): oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm   |  25 kB     00:00
29 (2/2): oracleasm-support-2.1.4-1.el5.x86_64.rpm          |  87 kB     00:00
30 --------------------------------------------------------------------------------
31 Total                                           133 kB/s | 113 kB     00:00
32 Running rpm_check_debug
33 Running Transaction Test
34 Finished Transaction Test
35 Transaction Test Succeeded
36 Running Transaction
37 Installing     : oracleasm-support                                        1/2
38 Installing     : oracleasm-2.6.18-194.el5                                 2/2
40 Installed:
41 oracleasm-2.6.18-194.el5.x86_64 0:2.0.5-1.el5
42 oracleasm-support.x86_64 0:2.1.4-1.el5
44 Complete!

Then just follow the installation guide…here are some quick steps to configure ASMLIB:

01 [root@scen503]# oracleasm configure -i
02 Configuring the Oracle ASM library driver.
04 This will configure the on-boot properties of the Oracle ASM library
05 driver.  The following questions will determine whether the driver is
06 loaded on boot and what permissions it will have.  The current values
07 will be shown in brackets ('[]').  Hitting <ENTER> without typing an
08 answer will keep that current value.  Ctrl-C will abort.
10 Default user to own the driver interface []: oracle
11 Default group to own the driver interface []: dba
12 Start Oracle ASM library driver on boot (y/n) [n]: y
13 Scan for Oracle ASM disks on boot (y/n) [y]:
14 Writing Oracle ASM library driver configuration: done


1 [root@scen503]# /usr/sbin/oracleasm init
2 Creating /dev/oracleasm mount point: /dev/oracleasm
3 Loading module "oracleasm": oracleasm
4 Mounting ASMlib driver filesystem: /dev/oracleasm

Then we need to create all disks, change ASMLIBDISK1 according to your naming conventions:

1 /usr/sbin/oracleasm createdisk ASMLIBDISK1 /dev/sdb1
2 Writing disk header: done
3 Instantiating disk: done

and finally scan and list the disks

1 /usr/sbin/oracleasm scandisks
3 /usr/sbin/oracleasm listdisks

Find more of ASM here.

Good luck!

2 respuestas a «How to install ASMLIB from Oracle’s public YUM»

  1. Hola Fernando,
    He visto que estas publicando articulos mios en tu blog, sin embargo agradeceria que des los creditos debidos y hagas los links a mi blog.
    Carlos Acosta.
    Oracle DBA

Los comentarios están cerrados.