# Public
10.10.2.11 node1
10.10.2.12 node2
# VIPs
10.10.2.21 node1-v
10.10.2.22 node2-v
# Private
192.168.2.11 node1-i private1
192.168.2.12 node2-i private2
# Cluster name - 'testclu'
# SCAN
10.10.2.50 testclu-scan
4. 设置 NTP
service ntpd stop
chkconfig ntpd off
rm /var/run/ntpd.pid
mv /etc/ntp.conf /etc/ntp.conf.org
5. 5. 本次采用 NFS 方式提供共享存储功能
5.1 关于 NFS 的搭建,在这里不进行详细描述,非常简单,可以参考系统文档
可以单独安装 NFS Server 或者将集群中一个节点作为 NFS Server 进行提供 NFS 服务。
5.2 使用 dd 命令,创建 ASM 设备
例如:
dd if=/dev/zero of=/oracleasm/oracleasm/disks/asm1 bs=8192k count=1280
dd if=/dev/zero of=/oracleasm/oracleasm/disks/asm2 bs=8192k count=1280
dd if=/dev/zero of=/oracleasm/oracleasm/disks/asm3 bs=8192k count=1280
dd if=/dev/zero of=/oracleasm/oracleasm/disks/asm4 bs=8192k count=1280
dd if=/dev/zero of=/oracleasm/oracleasm/disks/asm5 bs=8192k count=1280
5.3 设置 NFS 文件正确的权限:
chown grid:asmadmin /u02/oracleasm/disks/asm1
chown grid:asmadmin /u02/oracleasm/disks/asm2
chown grid:asmadmin /u02/oracleasm/disks/asm3
chown grid:asmadmin /u02/oracleasm/disks/asm4
chown grid:asmadmin /u02/oracleasm/disks/asm5
chmod 660 /u02/oracleasm/disks/asm1
chmod 660 /u02/oracleasm/disks/asm2
chmod 660 /u02/oracleasm/disks/asm3
chmod 660 /u02/oracleasm/disks/asm4
评论