[root@bjsrv ~]#cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
192.168.8.128 bjsrv 2、配置ASM存储环境 1)建立磁盘分区 [root@node1 ~]#fdisk -l
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 > /dev/sdc1 1 487 3911796 83 Linux
/dev/sdc2 488 974 3911827+ 83 Linux
/dev/sdc3 975 2610 13141170 5 Extended
/dev/sdc5 975 1461 3911796 83 Linux
/dev/sdc6 1462 1948 3911796 83 Linux
/dev/sdc7 1949 2192 1959898+ 83 Linux
/dev/sdc8 2193 2436 1959898+ 83 Linux
/dev/sdc9 2437 2610 1397623+ 83 Linux 2)安装ASM软件包 (Linux、Windows需要安装ASM软件包,可以在Oracle OTN下载,注意和Linux系统内核匹配) http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html [root@bjsrv ~]#uname -a
Linux bjsrv 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux [root@bjsrv asm]#ls -l
-rwxr--r-- 1 oracle oinstall 137486 May 26 04:01 oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm
-rwxr--r-- 1 oracle oinstall 14176 May 26 03:48 oracleasmlib-2.0.4-1.el5.x86_64.rpm
-rwxr--r-- 1 oracle oinstall 90225 May 26 03:48 oracleasm-support-2.1.8-1.el5.x86_64.rpm
[root@bjsrv asm]#rpm -vih oracleasm-support-2.1.8-1.el5.x86_64.rpm
warning: oracleasmlib-2.0.4-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key> Preparing... ########################################### [100%]
1:oracleasmlib ########################################### [100%] 3)配置ASM [root@bjsrv asm]#service oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [grid]:
Default group to own the driver interface [asmadmin]:
Start Oracle ASM library driver on boot (y/n) [y]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ] 4)创建ASM磁盘
[root@bjsrv asm]#service oracleasm createdisk ASM_DSK1 /dev/sdc1
Marking disk "ASM_DSK1" as an ASM disk: [ OK ]
[root@bjsrv asm]#service oracleasm createdisk ASM_DSK2 /dev/sdc2
Marking disk "ASM_DSK2" as an ASM disk: [ OK ]
[root@bjsrv asm]#service oracleasm createdisk ASM_DSK3 /dev/sdc5
Marking disk "ASM_DSK3" as an ASM disk: [ OK ]
[root@bjsrv asm]#service oracleasm createdisk ASM_DSK4 /dev/sdc6
Marking disk "ASM_DSK4" as an ASM disk: [ OK ] [root@bjsrv asm]#service oracleasm listdisks
ASM_DSK1
ASM_DSK2
ASM_DSK3
ASM_DSK4
[root@bjsrv asm]# @至此,系统环境基本准备完毕