实验环境:Oracle 11g R2 RAC (11.2.0.3.5)
Oracle Enterprise Linux 5.6 x86
1、创建 ASM 磁盘组
在两节点挂好磁盘后,在第一节点上对磁盘进行分区
[root@rac1 ~]# fdisk -l
Disk /dev/sde: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 261 2096451 83 Linux
在第1节点上创建 ASM 磁盘
[root@rac1 ~]# oracleasm createdisk GOLDENGATE /dev/sde1
[root@rac1 ~]# oracleasm scandisks
[root@rac1 ~]# oracleasm listdisks
DATA
FRA
GOLDENGATE
OCR_VOTE
在第2节点上扫描ASM磁盘
[root@rac2 ~]# oracleasm listdisks