RHEL5.8 ORACLE ASM 配置
操作系统:Red Hat Enterprise Linux Server release 5.8
内核:2.6.18-308.el5
ASMLib:在oracle网站上下载同内核的ASMLib库
oracleasm-2.6.18-308.el5-2.0.5-1.el5.i686.rpm
oracleasm-2.6.18-308.el5PAE-2.0.5-1.el5.i686.rpm
oracleasm-2.6.18-308.el5xen-2.0.5-1.el5.i686.rpm
oracleasmlib-2.0.4-1.el5.i386.rpm
oracleasm-support-2.1.7-1.el5.i386.rpm
1,安装ASMLib
[root@rhel5 ASMLib]# rpm -ivh *.rpm
warning: oracleasm-2.6.18-308.el5-2.0.5-1.el5.i686.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... #############################[100%]
1:oracleasm-support ########################## [ 20%]
2:oracleasm-2.6.18-308.el######################### [ 40%]
3:oracleasm-2.6.18-308.el######################### [ 60%]
4:oracleasm-2.6.18-308.el######################### [ 80%]
5:oracleasmlib ########################### [100%]
安装的时候可能需要kernel-PAE = 2.6.18-308.el5 和 kernel-xen = 2.6.18-308.el5 两个包,在操作系统中查找并安装
[root@rhel5 Server]# rpm -ivh kernel-PAE-2.6.18-308.el5.i686.rpm kernel-PAE-devel-2.6.18-308.el5.i686.rpm kernel-xen-2.6.18-308.el5.i686.rpm kernel-xen-devel-2.6.18-308.el5.i686.rpm
Preparing... ############################ [100%]
1:kernel-xen-devel ########################## [ 25%]
2:kernel-PAE ########################### [ 50%]
3:kernel-PAE-devel ########################## [ 75%]
4:kernel-xen ########################### [100%]
2,配置css服务
以root身份运行localconfig脚本
[root@rhel5 bin]# cd $ORACLE_HOME/bin
[root@rhel5 bin]# ./localconfig add
/etc/oracle does not exist. Creating it now.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized
Adding to inittab
Startup will be queued to init within 90 seconds.
Checking the status of new Oracle init process...
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
rhel5
CSS is active on all nodes.
Oracle CSS service is installed and running under init(1M)
3,创建设备(祼设备或者未格式化的设备)
以下以/dev/sdc的分区为例,划分了4个分区,大小均一致
Disk /dev/sdc: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 600 4819468+ 83 Linux
/dev/sdc2 601 1200 4819500 83 Linux
/dev/sdc3 1201 1800 4819500 83 Linux
/dev/sdc4 1801 2400 4819500 83 Linux
修改属主为oracle
[root@rhel5 ~]# cd /dev/
[root@rhel5 dev]# ls -al sdc*
brw-r----- 1 oracle dba 8, 32 Apr 28 01:54 sdc
brw-r----- 1 oracle dba 8, 33 Apr 28 03:41 sdc1
brw-r----- 1 oracle dba 8, 34 Apr 28 03:41 sdc2
brw-r----- 1 oracle dba 8, 35 Apr 28 03:41 sdc3
brw-r----- 1 oracle dba 8, 36 Apr 28 03:41 sdc4
4,图形化界面配置ASM
使用oracle用户,图形化界面方式 dbca 开启,选择 配置ASM
设置ASM实例SYS用户密码,参数保持默认
创建一个新的Disk Group,名称为ora10g,Redundancy使用Normal即可(可用性),Disk Discovery Path增加刚创建的分区(/dev/sdc1,/dev/sdc2,/dev/sdc3,/dev/sdc4),完成后即创建完成,并自动mount。