暂无图片
分享
卢春龙
2019-04-18
三个SCAN IP分布在两台这个会有问题吧 通过DNS解析

ORACLE -RAC 两台服务器三个SCANIP,但是两台没有同时有同样的SCANIP这个对?

image.png

image.png


image.png

image.png


收藏
分享
8条回答
默认
最新
卢春龙

SCAN IP不是要在两台多存在吗

暂无图片 评论
暂无图片 有用 0
Moone

对的,hosts解析不是最佳选择,应该是dns使用robin轮询解析这3个地址。

暂无图片 评论
暂无图片 有用 0
卢春龙

但是两个IP在一节点,第三个SCAN IP 在第二节点

SCAN  IP 不是应该在两个节点多有吗

暂无图片 评论
暂无图片 有用 0
王文忠

您查一下只配置一个SCAN IP的RAC可以看到,SCAN IP 只在一个节点。当这个节点出现异常,或宕机,它会飘到另一个节点。

虽然配置了三个SCAN IP,但是这三个SCAN IP分布在不同的节点上。你可以手动漂移到另一个节点上。


暂无图片 评论
暂无图片 有用 0
卢春龙

srvctl relocate scan -i 2 -i yl-xmk 这样漂移后是固定了,还是过一段时间会再变化呢

暂无图片 评论
暂无图片 有用 0
Moone

多scanip分布不同节点才是最佳实践啊,这样scanip本身也是负载均衡的。

暂无图片 评论
暂无图片 有用 0
王文忠

scan如果你不手动漂移,并且RAC 集群正常运行。那不会没事就漂移一下。比如说您将scan2 漂到节点2,那么它就会在节点2运行,如果您想让它回到节点1,那还需要手动漂移一次,才能回到节点1。

并且从集群资源里能看到在哪个节点运行:


另外以下是漂移命令的相关解释:

srvctl relocate scan_listener -i 3 -n rac2

参数说明:

srvctl relocate scan_listener -i ordinal_number [-n node_name]

Note:This command is only available with Oracle Clusterware.

Option Description

-i ordinal_number

An ordinal number that identifies which SCAN VIP you want to relocate. The range of values you can specify for this option is 1 to 3.也就是RAC最多只能配置3个scan ip,这个值就是scan的序号。

-n node_name

The name of a single node.

If you do not specify this option, then the utility chooses the node to which the SCAN VIP is relocated.



暂无图片 评论
暂无图片 有用 0
卢春龙
问题已关闭: 问题已经得到解决
暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏