Change GNS subdomain and GNS VIP address ( 11.2.0.4 )

Change: 
  Domain    : grac.example.com -> grid4.example.com 
  GNS IP Adr: 192.168.1.58     -> 192.168.1.59

Current status - we need this info as we need to recreate some of the VIP manually 
$  srvctl config gns -a -l
GNS is enabled.
GNS is listening for DNS server requests on port 53
GNS is using port 5353 to connect to mDNS
GNS status: Self-check failed.
Domain served by GNS: grac.example.com
GNS version: 11.2.0.4.0
GNS VIP network: ora.net1.network
Name            Type Value
grac4-scan      A    192.168.1.161
grac4-scan      A    192.168.1.162
grac4-scan      A    192.168.1.163
grac4-scan1-vip A    192.168.1.161
grac4-scan2-vip A    192.168.1.162
grac4-scan3-vip A    192.168.1.163
grac41-vip      A    192.168.1.160
grac42-vip      A    192.168.1.164
--> Domain : grac.example.com

Stop related resources
# $GRID_HOME/bin/srvctl stop gns
# $GRID_HOME/bin/srvctl stop scan_listener
# $GRID_HOME/bin/srvctl stop scan

Verify the resource status
# $GRID_HOME/bin/srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
SCAN VIP scan2 is enabled
SCAN VIP scan2 is not running
SCAN VIP scan3 is enabled
SCAN VIP scan3 is not running

# $GRID_HOME/bin/srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is not running
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is not running

# $GRID_HOME/bin/srvctl status gns
GNS is not running.
GNS is enabled.

Remove the GNS
# $GRID_HOME/bin/srvctl remove gns
Remove GNS? (y/[n]) y

Recreate GNS with new Name Server address and subdomain
# $GRID_HOME/bin/srvctl  add gns -i 192.168.1.59 -d grid4.example.com
#  $GRID_HOME/bin/srvctl status gns
GNS is not running.
GNS is enabled.
# $GRID_HOME/bin/srvctl   config gns -a -l
GNS is enabled.
CLSGN-00081: The GNS service is not running.
# $GRID_HOME/bin/srvctl  start gns
# $GRID_HOME/bin/srvctl status gns
GNS is running on node grac42.
GNS is enabled on node grac42.
#  $GRID_HOME/bin/srvctl   config gns -a -l
GNS is enabled.
GNS is listening for DNS server requests on port 53
GNS is using port 5353 to connect to mDNS
GNS status: OK
Domain served by GNS: grid4.example.com
GNS version: 11.2.0.4.0
GNS VIP network: ora.net1.network

Add and verify new SCAN 
# $GRID_HOME/bin/srvctl modify scan -n grac4-scan.grid4.example.com
# $GRID_HOME/bin/srvctl config scan
SCAN name: grac4-scan.grid4.example.com, Network: 1/192.168.1.0/255.255.255.0/eth1
SCAN VIP name: scan1, IP: <not assigned>
SCAN VIP name: scan2, IP: <not assigned>
SCAN VIP name: scan3, IP: <not assigned>

Start SCAN 
# $GRID_HOME/bin/srvctl start scan
# $GRID_HOME/bin/srvctl config scan
SCAN name: grac4-scan.grid4.example.com, Network: 1/192.168.1.0/255.255.255.0/eth1
SCAN VIP name: scan1, IP: /grac4-scan.grid4.example.com/192.168.1.165
SCAN VIP name: scan2, IP: /grac4-scan.grid4.example.com/192.168.1.170
SCAN VIP name: scan3, IP: /grac4-scan.grid4.example.com/192.168.1.168

Verify setup using nslookup
# nslookup grac4-scan.grid4.example.com
Server:        192.168.1.50
Address:    192.168.1.50#53
Non-authoritative answer:
Name:    grac4-scan.grid4.example.com
Address: 192.168.1.170
Name:    grac4-scan.grid4.example.com
Address: 192.168.1.165
Name:    grac4-scan.grid4.example.com
Address: 192.168.1.168

# $GRID_HOME/bin/srvctl  config gns -a -l
GNS is enabled.
GNS is listening for DNS server requests on port 53
GNS is using port 5353 to connect to mDNS
GNS status: OK
Domain served by GNS: grid4.example.com
GNS version: 11.2.0.4.0
GNS VIP network: ora.net1.network
Name            Type Value
grac4-scan      A    192.168.1.165
grac4-scan      A    192.168.1.168
grac4-scan      A    192.168.1.170
grac4-scan1-vip A    192.168.1.165
grac4-scan2-vip A    192.168.1.170
grac4-scan3-vip A    192.168.1.168

Add our old VIP information
# $GRID_HOME/bin/srvctl modify gns -N grac41-vip -A 192.168.1.160
# $GRID_HOME/bin/srvctl modify gns -N grac42-vip -A  192.168.1.164
# $GRID_HOME/bin/srvctl  config gns -a -l
GNS is enabled.
GNS is listening for DNS server requests on port 53
GNS is using port 5353 to connect to mDNS
GNS status: OK
Domain served by GNS: grid4.example.com
GNS version: 11.2.0.4.0
GNS VIP network: ora.net1.network
Name            Type Value
grac4-scan      A    192.168.1.165
grac4-scan      A    192.168.1.168
grac4-scan      A    192.168.1.170
grac4-scan1-vip A    192.168.1.165
grac4-scan2-vip A    192.168.1.170
grac4-scan3-vip A    192.168.1.168
grac41-vip      A    192.168.1.160
grac42-vip      A    192.168.1.164

# nslookup grac41-vip
Name:    grac41-vip.grid4.example.com
Address: 192.168.1.160
# nslookup  grac42-vip
Name:    grac42-vip.grid4.example.com
Address: 192.168.1.164

As user GRID verify GNS setup ( GNS VIP change and GNS subdomain change )
 $GRID_HOME/bin/cluvfy comp gns  -postcrsinst 
Verifying GNS integrity 
Checking GNS integrity...
The GNS subdomain name "grid4.example.com" is a valid domain name
Checking if the GNS VIP belongs to same subnet as the public network...
Public network subnets "192.168.1.0" match with the GNS VIP "192.168.1.0"
GNS VIP "192.168.1.59" resolves to a valid IP address
GNS resolved IP addresses are reachable
GNS resolved IP addresses are reachable
GNS resolved IP addresses are reachable
GNS resolved IP addresses are reachable
GNS resolved IP addresses are reachable
GNS resource configuration check passed
GNS VIP resource configuration check passed.
GNS integrity check passed
Verification of GNS integrity was successful. 

Verify SCAN setup
$   $GRID_HOME/bin/cluvfy comp  scan
Verifying scan 
Checking Single Client Access Name (SCAN)...
Checking TCP connectivity to SCAN Listeners...
TCP connectivity to SCAN Listeners exists on all cluster nodes
Checking name resolution setup for "grac4-scan.grid4.example.com"...
Checking integrity of name service switch configuration file "/etc/nsswitch.conf" ...
Check for integrity of name service switch configuration file "/etc/nsswitch.conf" passed
Verification of SCAN VIP and Listener setup passed
Verification of scan was successful. 

Verify VIP 
$ $GRID_HOME/bin/cluvfy comp nodeapp
Verifying node application existence 
Checking node application existence...
Checking existence of VIP node application (required)
VIP node application check passed
Checking existence of NETWORK node application (required)
NETWORK node application check passed
Checking existence of GSD node application (optional)
GSD node application is offline on nodes "grac41"
Checking existence of ONS node application (optional)
ONS node application check passed
Verification of node application existence was successful. 

Verifiy complete CRS stack
$./bin/cluvfy stage -post crsinst -n grac41,grac42

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>