首先附上ASMLIB 官网下载地址 http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839. html
一。手工搞定安装
1. 检查是否已安装及系统内核 --查看内核 [root@xclrac1 /]# uname -rm 2.6.39-400.17.1.el6uek.x86_64 x86_6 --查看asm包 [root@xclrac1 /]# rpm -qa|grep asm libatasmart-0.17-4.el6_2.x86_64
[root@xclrac1 /]#
[root@xclrac1 db2]# cat /proc/version
Linux version 2.6.39-400.17.1.el6uek.x86_64 (mockbuild@ca-build44.us.oracle.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Fri Feb 22 18:16:18 PST 2013
[root@xclrac1 ~]# cat /etc/issue
Oracle Linux Server release 6.4 Kernel \r on an \m
2. 去官网找到相应系统对应的asm下载安装. 以前Oracle Linux 5 如下:
--安装ASM, support->asm-> lib放最后
rpm -Uvh oracleasm-support-2.1.7-1.el5.x86_64.rpm
rpm -Uvh oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm
rpm -Uvh oracleasmlib-2.0.4-1.el5.x86_64.rpm
现在Oracle 6.4就不需这么麻烦:
2.1 去系统光盘找到asmlib support的安装包(rpm -Uvh oracleasm-support-2.1.8-1.el6.x86_64.rpm)装上
2.2 去Oracle官网,下载Oracle Linux 6 对应的asmlib.rpm包并装上
2.3 重新查看 [root@xclrac1 db2]# rpm -qa|grep asm oracleasmlib-2.0.4-1.el6.x86_64 libatasmart-0.17-4.el6_2.x86_64
3. 安装成功后,通过 oracleasm命令检查并管理asmlib
[root@xclrac1 /]# oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
[root@xclrac1 ~]# oracleasm update-driver
二。yum快速搞定安装
http://www.oracle.com/technetwork/server-storage/linux/uln-095759.html Getting Oracle ASMLib via the Unbreakable Linux Network Installing ASMLib via ULN Now that the system is registered with ULN, it can install the software. Log in as root and run: # yum install oracleasm-support oracleasmlib oracleasm-`uname -r` On Oracle Linux 5 and older, run the following command instead: # up2date -i oracleasm-support oracleasmlib oracleasm-`uname -r` This will install the support tools, the library, and the kernel driver for the currently running kernel. Note: If you are running the Unbreakable kernel, the ASMLib kernel driver is included in that kernel package, and the oracleasm-`uname -r` package should not be specified.
安装成功后。就可以.配置和管理asm 磁盘了。 这个可以参考另一篇文章<<Oracle VM创建共享磁盘并挂ASM>>. 虽然是Oracle VM的共享磁盘做法。但其中的asm部份,和挂实际共享存储没区别。