操作系统版本:
Red Hat Enterprise Linux Server release 6.8 (Santiago)
网络配置:
eth0 ,eth1 用户rac的通信网络和心跳网络。 eth2 用于磁盘网络iscsi。
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:1e:dd:db brd ff:ff:ff:ff:ff:ff
inet 192.168.0.230/24 brd 192.168.0.255 scope global eth0
inet 192.168.0.232/24 brd 192.168.0.255 scope global secondary eth0:1
inet6 fe80::20c:29ff:fe1e:dddb/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:1e:dd:e5 brd ff:ff:ff:ff:ff:ff
inet 17.17.0.1/24 brd 17.17.0.255 scope global eth1
inet 169.254.237.99/16 brd 169.254.255.255 scope global eth1:1
inet6 fe80::20c:29ff:fe1e:dde5/64 scope link
valid_lft forever preferred_lft forever
4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:1e:dd:ef brd ff:ff:ff:ff:ff:ff
inet 10.0.0.200/24 brd 10.0.0.255 scope global eth2
inet6 fe80::20c:29ff:fe1e:ddef/64 scope link
valid_lft forever preferred_lft forever
磁盘配置
prod01:
Device "/dev/mapper/rootvg-lvol0" is marked an ASM disk with the label "VOTEDB01"
Device "/dev/sdb1" is marked an ASM disk with the label "NODE01DATA01"
<target iqn.2016-08.disk.rh6:disk200m>
backing-store /dev/sdb1
backing-store /dev/sdb2
backing-store /dev/mapper/rootvg-lvol0
</target>
prod02:
Device "/dev/mapper/rootvg-lvol0" is marked an ASM disk with the label "VOTEDB02"
Device "/dev/sdc1" is marked an ASM disk with the label "NODE02DATA01"
[root@prod02 ~]# cat /etc/tgt/targets.conf
<target iqn.2016-08.disk.rh6:disk200m>
backing-store /dev/sdc1
backing-store /dev/mapper/rootvg-lvol0
</target>
prod01 本地拥有磁盘VOTEDB01,NODE01DATA01
prod02 本地拥有磁盘VOTEDB02,NODE02DATA01
prod01,prod02 通过iscsi,通过eth2网络把本地磁盘映射到对方。
磁盘部署情况
DISK03 共享磁盘,2台prod01,prod02都可见,eth2网络中断不受影响。
[root@prod01 ~]# oracleasm listdisks
DISK03
NODE01DATA01
NODE02DATA01
VOTEDB01
VOTEDB02
[root@prod02 ~]# oracleasm listdisks
DISK03
NODE01DATA01
NODE02DATA01
VOTEDB01
VOTEDB02
当eth2 down ,prod01 能读写(DISK03,NODE01DATA01,VOTEDB01),prod02能读写(DISK03,NODE02DATA01,VOTEDB02)
集群asm 配置情况:
/dev/oracleasm/disks/DISK03 仲裁磁盘(QUORUM disk)
crs(DISK03,VOTEDB02,VOTEDB01)
ocr(NODE01DATA01,NODE02DATA01)
DG_NAME DG_STATE TYPE DSK_NO DSK_NAME PATH MOUNT_S FAILGROUP STATE
--------------- ---------- ------ ---------- ---------- -------------------------------------------------- ------- -------------------- --------
CRS MOUNTED NORMAL 2 CRS_0002 /dev/oracleasm/disks/DISK03 CACHED ZCDISK NORMAL
CRS MOUNTED NORMAL 5 CRS_0005 /dev/oracleasm/disks/VOTEDB02 CACHED CRS_0001 NORMAL
CRS MOUNTED NORMAL 9 CRS_0009 /dev/oracleasm/disks/VOTEDB01 CACHED CRS_0000 NORMAL
OCR MOUNTED NORMAL 0 OCR_0000 /dev/oracleasm/disks/NODE01DATA01 CACHED OCR_0000 NORMAL
OCR MOUNTED NORMAL 1 OCR_0001 /dev/oracleasm/disks/NODE02DATA01 CACHED OCR_0001 NORMAL
DISK_NUMBER NAME PATH HEADER_STATUS OS_MB TOTAL_MB FREE_MB REPAIR_TIMER V FAILGRO
----------- ---------- -------------------------------------------------- -------------------- ---------- ---------- ---------- ------------ - -------
0 OCR_0000 /dev/oracleasm/disks/NODE01DATA01 MEMBER 5120 5120 3185 0 N REGULAR
1 OCR_0001 /dev/oracleasm/disks/NODE02DATA01 MEMBER 5120 5120 3185 0 N REGULAR
9 CRS_0009 /dev/oracleasm/disks/VOTEDB01 MEMBER 2048 2048 1584 0 Y REGULAR
5 CRS_0005 /dev/oracleasm/disks/VOTEDB02 MEMBER 2048 2048 1648 0 Y REGULAR
2 CRS_0002 /dev/oracleasm/disks/DISK03 MEMBER 5115 5115 5081 0 Y QUORUM
GROUP_NUMBER NAME COMPATIBILITY DATABASE_COMPATIBILITY V
------------ ---------- ------------------------------------------------------------ ------------------------------------------------------------ -
1 OCR 11.2.0.0.0 11.2.0.0.0 N
2 CRS 11.2.0.0.0 11.2.0.0.0 Y
SQL>