重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

OracleRAC环境添加新的network和listener(未完成)

操作系统版本:
文档 ID 1063571.1往集群添加network的步骤,是会有问题的,具体过程如下:
  1. [root@rac2 ~]# srvctl add network -k 2 -S 20.20.20.0/255.255.255.0/eth3
  2. [root@rac2 ~]# srvctl config network
  3. Network exists: 1/192.168.28.0/255.255.255.0/eth0, type static
  4. Network exists: 2/20.20.20.0/255.255.255.0/eth3, type static

  1. [root@rac2 ~]# srvctl status vip -n rac1
  2. VIP 20.20.20.111 is enabled
  3. VIP 20.20.20.111 is not running
  4. VIP rac1-vip is enabled
  5. VIP rac1-vip is running on node: rac1
  6. [root@rac2 ~]# srvctl status vip -n rac2
  7. VIP 20.20.20.222 is enabled
  8. VIP 20.20.20.222 is not running
  9. VIP rac2-vip is enabled
  10. VIP rac2-vip is running on node: rac2
  11. [root@rac2 ~]#
  12. [root@rac2 ~]# srvctl start vip -n rac1
  13. PRKO-2420 : VIP is already started on node(s): rac1
  14. [root@rac2 ~]# srvctl start vip -i 20.20.20.111
  15. PRKO-2420 : VIP is already started on node(s): rac2
  16. [oracle@rac2 ~]$ ifconfig eth3:1
  17. eth3:1 Link encap:Ethernet HWaddr 00:0C:29:ED:B0:AB
  18.           inet addr:20.20.20.111 Bcast:20.20.20.255 Mask:255.255.255.0
  19.           UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
跑节点2上去了,让它跑回节点1:
  1. [root@rac2 admin]# crsctl stop res ora.rac1-vip2.vip
  2. CRS-2673: Attempting to stop 'ora.rac1-vip2.vip' on 'rac2'
  3. CRS-2677: Stop of 'ora.rac1-vip2.vip' on 'rac2' succeeded
  4. [root@rac2 admin]# crsctl start res ora.rac1-vip2.vip -n rac1
  5. CRS-2672: Attempting to start 'ora.net2.network' on 'rac1'
  6. CRS-2676: Start of 'ora.net2.network' on 'rac1' succeeded
  7. CRS-2672: Attempting to start 'ora.rac1-vip2.vip' on 'rac1'
  8. CRS-2676: Start of 'ora.rac1-vip2.vip' on 'rac1' succeeded

  1. [root@rac2 admin]# srvctl start vip -n rac2
  2. PRKO-2420 : VIP is already started on node(s): rac2
  3. [root@rac2 admin]# ifconfig eth3:1
  4. eth3:1 Link encap:Ethernet HWaddr 00:0C:29:ED:B0:AB
  5.           inet addr:20.20.20.222 Bcast:20.20.20.255 Mask:255.255.255.0
  6.           UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

  1. [root@rac2 admin]# srvctl config vip -n rac1
  2. VIP exists: /20.20.20.111/20.20.20.111/20.20.20.0/255.255.255.0/eth3, hosting node rac1
  3. VIP exists: /rac1-vip/192.168.28.111/192.168.28.0/255.255.255.0/eth0, hosting node rac1
  4. [root@rac2 admin]# srvctl config vip -n rac2
  5. VIP exists: /20.20.20.222/20.20.20.222/20.20.20.0/255.255.255.0/eth3, hosting node rac2
  6. VIP exists: /rac2-vip/192.168.28.222/192.168.28.0/255.255.255.0/eth0, hosting node rac2
  7. [root@rac2 admin]# srvctl status vip -n rac1
  8. VIP 20.20.20.111 is enabled
  9. VIP 20.20.20.111 is running on node: rac1
  10. VIP rac1-vip is enabled
  11. VIP rac1-vip is running on node: rac1
  12. [root@rac2 admin]# srvctl status vip -n rac2
  13. VIP 20.20.20.222 is enabled
  14. VIP 20.20.20.222 is running on node: rac2
  15. VIP rac2-vip is enabled
  16. VIP rac2-vip is running on node: rac2

  1. [root@rac2 admin]# crsctl stat res -t
  2. ---省略部分内容---
  3. --------------------------------------------------------------------------------
  4. Cluster Resources
  5. --------------------------------------------------------------------------------
  6. ora.LISTENER_SCAN1.lsnr
  7.       1 ONLINE ONLINE rac2
  8. ora.cvu
  9.       1 ONLINE ONLINE rac2
  10. ora.oc4j
  11.       1 ONLINE ONLINE rac1
  12. ora.proc.db
  13.       1 ONLINE ONLINE rac1 Open
  14.       2 ONLINE ONLINE rac2 Open
  15. ora.rac1-vip2.vip
  16.       1 ONLINE INTERMEDIATE rac1 FAILED OVER
  17. ora.rac1.vip
  18.       1 ONLINE ONLINE rac1
  19. ora.rac2-vip2.vip
  20.       1 ONLINE INTERMEDIATErac2 FAILED OVER
  21. ora.rac2.vip
  22.       1 ONLINE ONLINE rac2
  23. ora.scan1.vip
  24.       1 ONLINE ONLINE rac2
查看日志并无明显错误信息。

  1. [root@rac2 admin]# srvctl stop vip -n rac1
  2. PRCR-1014 : Failed to stop resource ora.rac1.vip
  3. PRCR-1065 : Failed to stop resource ora.rac1.vip
  4. CRS-2529: Unable to act on 'ora.rac1.vip' because that would require stopping or relocating 'ora.LISTENER.lsnr', but the force option was not specified
  5. [root@rac2 admin]#
  6. [root@rac2 admin]# srvctl stop vip -n rac1 -f
  7. PRCC-1017 : 20.20.20.111 was already stopped on rac1
  8. PRCR-1005 : Resource ora.rac1-vip2.vip is already stopped
  9. [root@rac2 admin]# srvctl stop vip -n rac2 -f
  10. [root@rac2 admin]#
  11. [root@rac2 admin]# crsctl stop res ora.net2.network
  12. CRS-2673: Attempting to stop 'ora.net2.network' on 'rac2'
  13. CRS-2673: Attempting to stop 'ora.net2.network' on 'rac1'
  14. CRS-2677: Stop of 'ora.net2.network' on 'rac1' succeeded
  15. CRS-2677: Stop of 'ora.net2.network' on 'rac2' succeeded
  16. [root@rac2 admin]# srvctl config vip -n rac1
  17. VIP exists: /20.20.20.111/20.20.20.111/20.20.20.0/255.255.255.0/eth3, hosting node rac1
  18. VIP exists: /rac1-vip/192.168.28.111/192.168.28.0/255.255.255.0/eth0, hosting node rac1
  19. [root@rac2 admin]# srvctl remove vip -i 20.20.20.111
  20. Please confirm that you intend to remove the VIPs 20.20.20.111 (y/[n]) y
  21. [root@rac2 admin]# srvctl remove vip -i 20.20.20.222
  22. Please confirm that you intend to remove the VIPs 20.20.20.222 (y/[n]) y
  23. [root@rac2 admin]# srvctl remove network -k 2
  24. PRCR-1001 : Resource ora.net2.network does not exist
  25. [root@rac2 admin]#

















































分享名称:OracleRAC环境添加新的network和listener(未完成)
当前链接:http://cqcxhl.com/article/ieseco.html
在线咨询
服务热线
服务热线:028-86922220
TOP