Use this command to add the Grid Naming Service (GNS) to a cluster when you are using a DHCP public network or to create a client cluster.
Note:
Use this command only with Oracle Clusterware.
Use the srvctl add gns command with one of the following syntax models:
To add GNS to a cluster that is not currently running GNS:
srvctl add gns [-domain domain_name] -vip {vip_name | ip_address} [-verbose]
To change a cluster that is not running GNS to be a client cluster of another cluster that is running GNS:
srvctl add gns -clientdata file_name
Table F-27 srvctl add gns Parameters
| Parameter | Description |
|---|---|
-domain domain_name |
The network subdomain that is used for Forward DNS Lookup of cluster IP addresses. You can only use this parameter if you specify If you do not specify |
-vip {vip_name |ip_address} |
Specify either the virtual IP (VIP) name or IP address on which GNS listens for DNS requests. You cannot use Use the |
-clientdata path_to_file |
Specify the path to the file you created with the The cluster to which you add GNS using You cannot use the |
-verbose |
Verbose output |
You must run this command as root user on Linux and UNIX platforms, or as an Administrator user on Windows platforms.
When you are adding GNS to a cluster for the first time, use the -vip parameter with the -domain parameter.
When you are adding GNS to a cluster using the -clientdata parameter, you must first export the GNS data to a file and manually copy the file to a node in the cluster you are adding. Use the -clientdata parameter and run this command on any node in the cluster.
You cannot specify the -vip and -clientdata parameters at the same time.