虚拟化容器,大数据,DBA,中间件,监控。

How to install ASMLIB from Oracle’s public YUM

29 10月
作者:admin|分类:DBA运维

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:

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

Creating /dev/oracleasm mount point: /dev/oracleasm
3Loading module "oracleasm": oracleasm
4Mounting 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
2Writing disk header: done
3Instantiating disk: done

and finally scan and list the disks

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

Find more of ASM here.

浏览1933 评论0
返回
目录
返回
首页
centos ssh无密码互信登录失败解决方法 windows下单网卡实现NAT(配合OpenVpn)