Oracle 10g RAC (Linux) ASM 共享存储的管理详解
ASM 的管理(共享磁盘的管理)
1、以 instance 的方式管理 ASM,启动 database 之前必须先启动 ASM instance,ASM instance 启动后,挂载 ASM 磁盘组。
---------安装 ASM 管理软件、驱动
1、查看操作系统内核版本(OS Kernel 版本)
[root@rac11 ~]# uname -a
Linux rac11 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux
2、查看OS上是否安装ASM相关的软件
[root@rac01 ~]# rpm -qa |grep asm
Oracleasm-2.6.9-67.EL-2.0.3-1(注意和os kernel 版本一致)
oracleasmlib-2.0.4-1.el4
oracleasm-support-2.1.4-1.el4
安装ASM软件包
[root@rac22 asm]# rpm -Uvh oracleasm-support-2.1.4-1.el4.i386.rpm
[root@rac22 asm]# rpm -Uvh oracleasm-2.6.9-67.EL-2.0.3-1.i686.rpm
[root@rac22 asm]# rpm -Uvh oracleasmlib-2.0.4-1.el4.i386.rpm
[root@rac22 asm]# rpm -Uvh oracleasm-2.6.9-67.ELsmp-2.0.3-1.i686.rpm
[root@rac11 ~]# service oracleasm
Usage: /etc/init.d/oracleasm {start|stop|restart|enable|disable|configure|createdisk|deletedisk|querydisk|listdisks|scandisks|status}
[root@rac22 asm]# service oracleasm status
Checking if ASM is loaded: no
Checking if /dev/oracleasm is mounted: no
[root@rac22 asm]# service oracleasm enable
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@rac22 asm]# service oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
[root@rac11 ~]# chkconfig oracleasm on
----------查看 ASM instance 初始化参数文件
[oracle@rac22 dbs]$ cat init+ASM2.ora | grep -v '^#'
cluster_database=true
background_dump_dest=/u01/app/oracle/admin/+ASM/bdump
core_dump_dest=/u01/app/oracle/admin/+ASM/cdump
user_dump_dest=/u01/app/oracle/admin/+ASM/udump
instance_type=asm
large_pool_size=12M
remote_login_passwordfile=exclusive
asm_diskgroups='DATA1','FRA'
+ASM2.instance_number=2
+ASM1.instance_number=1