最近打算在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