在一个没有gsn的cluster配置gns(Grid Naming Service)

简介: 检查gns的状态

检查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。

相关文章
|
负载均衡 Java Nacos
Nacos和GateWay路由转发NotFoundException: 503 SERVICE_UNAVAILABLE “Unable to find
Nacos和GateWay路由转发NotFoundException: 503 SERVICE_UNAVAILABLE “Unable to find
464 0
|
前端开发
网络设置错误造成cluster不能启动(oifcfg setif cluster_interconnect )
设置rac节点之间的互联网络错误,造成集群无法启动,应该设置成
101 0
openstack报错——MainPID=0 Id=neutron-server.service ActiveState=failed
openstack报错——MainPID=0 Id=neutron-server.service ActiveState=failed
389 0
openstack报错——MainPID=0 Id=neutron-server.service ActiveState=failed
|
安全 网络协议 应用服务中间件
Setting Up a Server Cluster for Enterprise Web Apps – Part 3
In this three-part tutorial, we will discover how to set up a server cluster using Alibaba Cloud ECS and WordPress.
4598 0
Setting Up a Server Cluster for Enterprise Web Apps – Part 3
|
前端开发 应用服务中间件 网络安全
Setting up a Server Cluster for Enterprise Web Apps – Part 2
In this three-part tutorial, we will discover how to set up a server cluster using Alibaba Cloud ECS and WordPress.
1860 0
Setting up a Server Cluster for Enterprise Web Apps – Part 2
|
前端开发 网络协议 MySQL
Setting Up a Server Cluster for Enterprise Web Apps – Part 1
In this three-part tutorial, we will discover how to set up a server cluster using Alibaba Cloud ECS and WordPress.
12079 0
Setting Up a Server Cluster for Enterprise Web Apps – Part 1