How to install ASMLIB from Oracle’s public YUM
How to install ASMLIB from Oracle’s public YUM
http://oracleexamples.wordpress.com/2011/08/08/how-to-install-asmlib-from-oracles-public-yum/
There are several ways to get ASMLIB, we can download it from the OTN here, or http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html ,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
[root@scen503 yum.repos.d]# yum install oracleasm-support oracleasmlib oracleasm-`uname -r`
Then just follow the installation guide…here are some quick steps to configure ASMLIB:
[root@scen503]# oracleasm configure -i
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 |
[root@scen503]# /usr/sbin/oracleasm init
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.