12c: How to Create Additional SCAN/SCAN VIP (Doc ID 2138078.1)

GOAL

SCAN supports multiple subnets in the cluster (one SCAN per subnet). Only the default SCAN (on the default network,typically network number 1) can be configured during installation of the Oracle Grid Infrastructure, multiple subnets support needs to be enabled as a post installation task.

This note describes the steps for creating additional SCAN/SCAN VIP/LISTENER on a different subnet in 12c. 

SOLUTION

In order to create a SCAN on second public network in the cluster, you must first enable the use of multiple subnets in the cluster, which in general is a post installation task, including the following steps:

1.Set additional subnet for public network
2.Assign node VIPs to newly created subnet
3.Create a node Listener for newly created subnet
4.Create additional SCAN
 

Step1:ADD 2nd network

grid@mynode]$oifcfg iflist
eth0  133.22.67.0
eth1  192.168.122.0
eth1  169.254.0.0
eth2  10.1.1.0
[grid@mynode]$ oifcfg setif -global eth2/10.1.1.0:public
[grid@mynode]$ oifcfg getif
eth0  133.22.67.0 global  public
eth1 192.168.122.0  global  cluster_interconnect,asm
eth2 10.1.1.0 global  public
[root@mynode]#srvctl add network -netnum 2 subnet 10.1.1.0/255.255.252.0/eth2
[root@mynode]#srvctl config network -netnum 2
Network 2 exists
Subnet IPv4: 10.1.1.0/255.255.252.0/eth0, static
Subnet IPv6:

Step2:ADD node VIPs

[root@mynode]# srvctl add vip -node salessrv145 -netnum 2 -address salessrv145v2/255.255.252.0
[root@mynode]# srvctl add vip -node salessrv146 -netnum 2 -address salessrv146v2/255.255.252.0

Step3:ADD node listener on network number 2

[grid@mynode]$ srvctl add listener -listener listnet2 -netnum 2 -endpoints "TCP:1528"

Step4:ADD SCAN on network number 2

[root@mynode]# srvctl add scan -scanname scantest -netnum 2

Step5:START node VIPs

[root@mynode]# srvctl start vip -vip salessrv145v2
[root@mynode]# srvctl start vip -vip salessrv146v2

Step6:START ListNet2 node listener on network number 2

[grid@mynode]$ srvctl start listener -listener listnet2
[grid@mynode]$ srvctl status listener -listener listnet2 
Listener LISTNET2 is enabled
Listener LISTNET2 is running on node(s): salessrv145,salessrv146.

Step7:START SCAN on network number 2

[root@mynode]# srvctl start scan -netnum 2

Step8:Add and start a new SCAN listener on network 2 (as grid user)

grid@mynode]$srvctl add scan_listener -netnum 2 -listener scanlsnr_2 -endpoints "TCP:1523"
grid@mynode]$srvctl start scan_listener -netnum 2

Step9:Check configuration and status for SCAN

[root@mynode]#srvctl config scan -netnum 2
SCAN name: scantest, Network: 2
Subnet IPv4: 10.1.1.0/255.255.252.0/eth2
Subnet IPv6:
SCAN 0 IPv4 VIP: 10.1.1.250

[root@mynode]# srvctl status scan -netnum 2
SCAN VIP scan1_net2 is enabled
SCAN VIP scan1_net2 is running on node salessrv146

 
 

REFERENCES

http://www.oracle.com/technetwork/products/clustering/overview/scan-129069.pdf 

How to Configure A Second Listener on a Separate Network in Grid Infrastructure (Doc ID 1063571.1)
goroutine 52 [select]: github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher.func1() D:/Program Files (x86)/Go/bin/pkg/mod/github.com/go-sql-driver/mysql@v1.7.1/connection.go:614 +0xaf created by github.com/go-sql-driver/mysql.(*mysqlConn).startWatcher D:/Program Files (x86)/Go/bin/pkg/mod/github.com/go-sql-driver/mysql@v1.7.1/connection.go:611 +0x10a goroutine 83 [select]: github.com/go-redis/redis/v8/internal/pool.(*ConnPool).reaper(0x12f262a0, 0xdf8475800) D:/Program Files (x86)/Go/bin/pkg/mod/github.com/go-redis/redis/v8@v8.11.5/internal/pool/pool.go:485 +0xd6 created by github.com/go-redis/redis/v8/internal/pool.NewConnPool D:/Program Files (x86)/Go/bin/pkg/mod/github.com/go-redis/redis/v8@v8.11.5/internal/pool/pool.go:111 +0x242 goroutine 85 [chan receive]: go-study/models.sendProc(0x12e40cf0) D:/go/go-study/models/Message.go:88 +0x48 created by go-study/models.Chat D:/go/go-study/models/Message.go:79 +0x30d goroutine 86 [IO wait]: internal/poll.runtime_pollWait(0x33340b00, 0x72) D:/Program Files (x86)/Go/src/runtime/netpoll.go:305 +0x52 internal/poll.(*pollDesc).wait(0x138f60f4, 0x72, 0x0) D:/Program Files (x86)/Go/src/internal/poll/fd_poll_runtime.go:84 +0x37 internal/poll.execIO(0x138f6014, 0xa365e0) D:/Program Files (x86)/Go/src/internal/poll/fd_windows.go:175 +0xfc internal/poll.(*FD).Read(0x138f6000, {0x12f41000, 0x1000, 0x1000}) D:/Program Files (x86)/Go/src/internal/poll/fd_windows.go:441 +0x13b net.(*netFD).Read(0x138f6000, {0x12f41000, 0x1000, 0x1000}) D:/Program Files (x86)/Go/src/net/fd_posix.go:55 +0x3f net.(*conn).Read(0x12c0aa68, {0x12f41000, 0x1000, 0x1000}) D:/Program Files (x86)/Go/src/net/net.go:183 +0x4f bufio.(*Reader).fill(0x12d1eae0) D:/Program Files (x86)/Go/src/bufio/bufio.go:106 +0xe9 bufio.(*Reader).Peek(0x12d1eae0, 0x2) D:/Program Files (x86)/Go/src/bufio/bufio.go:144 +0x6d github.com/gorilla/websocket.(*Conn).read(0x12f68000, 0x2) D:/Program Files (x86)/Go/bin/pkg/mod/github.com/gorilla/websocket@v1.5.0/conn.go:371 +0x30 github.com/gorilla/websocket.(*Conn).advanceFrame(0x12f68000) D:/Program Files (x86)/Go/bin/pkg/mod/github.com/gorilla/websocket@v1.5.0/conn.go:809 +0xae github.com/gorilla/websocket.(*Conn).NextReader(0x12f68000) D:/Program Files (x86)/Go/bin/pkg/mod/github.com/gorilla/websocket@v1.5.0/conn.go:1009 +0xb5 github.com/gorilla/websocket.(*Conn).ReadMessage(0x12f68000) D:/Program Files (x86)/Go/bin/pkg/mod/github.com/gorilla/websocket@v1.5.0/conn.go:1093 +0x25 go-study/models.recvProc(0x12e40cf0) D:/go/go-study/models/Message.go:100 +0x105 created by go-study/models.Chat D:/go/go-study/models/Message.go:81 +0x352
06-02
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值