检查gns的状态
[root@rac1 grid]# /u01/app/12.1.0/grid/bin/srvctl status gns PRKF-1117 : GNS server is not configured in this cluster.
发现没有配置gns,现在配置一个
[root@rac1 grid]# /u01/app/12.1.0/grid/bin/srvctl add gns -vip 192.168.82.136 -domain scutech.com PRCC-1108 : Invalid VIP address 192.168.82.136 because the specified IP address is reachable [root@rac1 grid]# /u01/app/12.1.0/grid/bin/srvctl add gns -vip 192.168.82.140 -domain scutech.com PRCC-1108 : Invalid VIP address 192.168.82.140 because the specified IP address is reachable [root@rac1 grid]# /u01/app/12.1.0/grid/bin/srvctl add gns -vip 192.168.82.143 -domain scutech.com [root@rac1 grid]# /u01/app/12.1.0/grid/bin/srvctl status gns GNS is not running. GNS is enabled. [root@rac1 grid]# /u01/app/12.1.0/grid/bin/srvctl start gns [root@rac1 grid]# /u01/app/12.1.0/grid/bin/srvctl status gns GNS is running on node rac1. GNS is enabled on node rac1. [root@rac1 grid]# /u01/app/12.1.0/grid/bin/crsctl status resource -t -------------------------------------------------------------------------------- Name Target State Server State details -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.DATA.dg ONLINE ONLINE rac1 STABLE ONLINE ONLINE rac2 STABLE ora.LISTENER.lsnr ONLINE ONLINE rac1 STABLE ONLINE ONLINE rac2 STABLE ora.asm ONLINE ONLINE rac1 Started,STABLE ONLINE ONLINE rac2 Started,STABLE ora.net1.network ONLINE ONLINE rac1 STABLE ONLINE ONLINE rac2 STABLE ora.ons ONLINE ONLINE rac1 STABLE ONLINE ONLINE rac2 STABLE -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE rac2 STABLE ora.MGMTLSNR 1 ONLINE ONLINE rac1 169.254.142.165 192. 168.60.135,STABLE ora.cvu 1 ONLINE ONLINE rac2 STABLE ora.gns 1 ONLINE ONLINE rac1 STABLE ora.gns.vip 1 ONLINE ONLINE rac1 STABLE ora.mgmtdb 1 ONLINE OFFLINE Instance Shutdown,ST ABLE ora.oc4j 1 ONLINE ONLINE rac2 STABLE ora.orcl1.db 1 ONLINE OFFLINE STABLE 2 ONLINE OFFLINE STABLE ora.rac1.vip 1 ONLINE ONLINE rac1 STABLE ora.rac2.vip 1 ONLINE ONLINE rac2 STABLE ora.scan1.vip 1 ONLINE ONLINE rac2 STABLE ora.short.db 1 ONLINE ONLINE rac1 Open,STABLE 2 ONLINE ONLINE rac2 Open,STABLE ora.short.web_online.svc 1 ONLINE ONLINE rac2 STABLE -------------------------------------------------------------------------------- [root@rac1 grid]# ifconfig eth0 Link encap:Ethernet HWaddr 00:50:56:B8:57:31 inet addr:192.168.82.135 Bcast:192.168.82.255 Mask:255.255.255.0 inet6 addr: fda7:e6ee:2e09:0:250:56ff:feb8:5731/64 Scope:Global inet6 addr: fe80::250:56ff:feb8:5731/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:67165031 errors:0 dropped:0 overruns:0 frame:0 TX packets:1345279 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:6263971056 (5.8 GiB) TX bytes:171982104 (164.0 MiB) eth0:1 Link encap:Ethernet HWaddr 00:50:56:B8:57:31 inet addr:192.168.82.136 Bcast:192.168.82.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth0:2 Link encap:Ethernet HWaddr 00:50:56:B8:57:31 inet addr:192.168.82.143 Bcast:192.168.82.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth1 Link encap:Ethernet HWaddr 00:50:56:B8:61:94 inet addr:192.168.60.135 Bcast:192.168.60.255 Mask:255.255.255.0 inet6 addr: fe80::250:56ff:feb8:6194/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:45160294 errors:0 dropped:0 overruns:0 frame:0 TX packets:54715754 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:25734434316 (23.9 GiB) TX bytes:45553928906 (42.4 GiB) eth1:1 Link encap:Ethernet HWaddr 00:50:56:B8:61:94 inet addr:169.254.142.165 Bcast:169.254.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8218785 errors:0 dropped:0 overruns:0 frame:0 TX packets:8218785 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4709620418 (4.3 GiB) TX bytes:4709620418 (4.3 GiB) [root@rac1 grid]#
配置后自动生成了一个vip,专门给gns使用。看到网卡上也绑定一个gns的vip。