Install Oracle ASMLib on Oracle Linux 6

最近打算在Oracle Linux Server release 6.3安装RAC,在安装asmlib的时候发现OEL6 上oracleasm kernel driver 不用装了。但是oracleasmlib 和oracleasm-support还要安装.

# cat /etc/issue
Oracle Linux Server release 6.3

 

 以下是oracle官网的一段话:
 Note: All ASMLib installations require the oracleasmlib and oracleasm-support packages appropriate for their machine.   The oracleasm-support package can be downloaded from the Unbreakable Linux Network (ULN) if you have an active support   subscription, or from http://public-yum.oracle.com if you do not.

The oracleasm kernel driver is built into the   Unbreakable Enterprise Kernel for Oracle Linux 6 and does not need to be installed manually                             
                                                                                                                         
 URL: http://www.oracle.com/technetwork/server-storage/linux/asmlib/ol6-1709075.html                                     
                                                                                                                         
 wget http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.4-1.el6.x86_64.rpm                                 
                                                                                                                         
 Oracle ASMLib安装顺序                                                                                                   
 1. oracleasm-support                                                                                                    
 2. oracleasm-<kernel_version>                                                                                           
 3. oracleasmlib                                                                                                         
                                                                                                                         
 1.oracleasm-support 可以用yum的方式安装.                                                                                
 关于oracle linux 下使用yum的方法参考:http://public-yum.oracle.com                                                      
 使用yum方式安装要求机器能访问外网.                                                                                      
 如果需要使用代理:要先设置代理地址如: export http_proxy="http://192.168.0.100:8080"                                    
 yum install -y oracleasm-support.x86_64                                                                                 
                                                                                                                         
 2.oracleasm-<kernel_version>                                                                                            
 Oracle Linux6 中内核已经自带了oracleasm-<kernel_version>的driver,所以不需要安装.                                       
                                                                                                                         
 3.oracleasmlib                                                                                                          
 从oracle官网下载后进行安装                                                                                              
 wget http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.4-1.el6.x86_64.rpm                                 
 rpm -ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm                                                                            

# /usr/sbin/oracleasm  -h
Usage: oracleasm [--exec-path=<exec_path>] <command> [ <args> ]
       oracleasm --exec-path
       oracleasm -h
       oracleasm -V

The basic oracleasm commands are:
    configure        Configure the Oracle Linux ASMLib driver
    init             Load and initialize the ASMLib driver
    exit             Stop the ASMLib driver
    scandisks        Scan the system for Oracle ASMLib disks
    status           Display the status of the Oracle ASMLib driver
    listdisks        List known Oracle ASMLib disks
    querydisk        Determine if a disk belongs to Oracle ASMlib
    createdisk       Allocate a device for Oracle ASMLib use
    deletedisk       Return a device to the operating system
    renamedisk       Change the label of an Oracle ASMlib disk
    update-driver    Download the latest ASMLib driver

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值