搞定Linux下Oracle ASM的安裝

來源:互聯網
上載者:User

   Linux下安裝Oracle RAC時,要弄asm,這東東很麻煩。要跟核心跑,Oracle Linux好點,光碟片中內建就有了。不像其它要跑到Oracle官網去下載asmlib 。而且這個東東,步驟不少,版本不同方法還有差異。為了查詢方便,我在這集中整理了各種版本系統的搞法。      Oracle Linux 5以下的安裝方法.      Oracle 6.4及以上版本的安裝方法       yum直接安裝asm的方法.
首先附上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 \m2. 去官網找到相應系統對應的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.htmlGetting Oracle ASMLib via the Unbreakable Linux NetworkInstalling 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部份,和掛實際共用儲存沒區別。
MAIL:xcl_168@aliyun.comBlog:http://blog.csdn.net/xcl168

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.