How to Change the IP address of a GCO cluster for non-secure environment

book

Article ID: 100060549

calendar_today

Updated On:

Description

Description

How to Change the IP address of a GCO cluster(gcopip) for non-secure environment.

Solution

Configuration:

Prod (Primary) site :

cluster PROD (
        ClusterAddress = "192.168.10.150"
        DefaultGuestAccess = 1
        HacliUserLevel = COMMANDROOT
        )

remotecluster DR (
        ClusterAddress = "192.168.10.250"
        )

heartbeat Icmp (
        ClusterList = { DR }
        Arguments @DR = { "192.168.10.250" }
        )

group ClusterService (
        SystemList = { server101 = 0, server102 = 1 }
        AutoStartList = { server101, server102 }
        OnlineRetryLimit = 3
        OnlineRetryInterval = 120
        )

 

       Application wac (
       StartProgram = "/opt/VRTSvcs/bin/wacstart"
       StopProgram = "/opt/VRTSvcs/bin/wacstop"
       MonitorProcesses = { "/opt/VRTSvcs/bin/wac" }
       RestartLimit = 3
       )

       IP gcoip (
       Device = ens32
       Address = "192.168.10.150"
       NetMask = "255.255.255.0"
       )

       NIC gconic (
       Device = ens32
       )


DR(Secondary) site :

cluster DR (
        ClusterAddress = "192.168.10.250"
        DefaultGuestAccess = 1
        HacliUserLevel = COMMANDROOT
        )

remotecluster PROD (
        ClusterAddress = "192.168.10.150"
        )

heartbeat Icmp (
        ClusterList = { PROD }
        Arguments @PROD = { "192.168.10.150" }
        )

group ClusterService (
        SystemList = { drserver201 = 0, drserver202 = 1 }
        AutoStartList = { drserver201, drserver202 }
        OnlineRetryLimit = 3
        OnlineRetryInterval = 120
        )

        Application wac (
        StartProgram = "/opt/VRTSvcs/bin/wacstart"
        StopProgram = "/opt/VRTSvcs/bin/wacstop"
        MonitorProcesses = { "/opt/VRTSvcs/bin/wac" }
        RestartLimit = 3
        )

 

        IP gcoip (
        Device = ens32
        Address = "192.168.10.250"
        NetMask = "255.255.255.0"
        )
        
        NIC gconic (
        Device = ens32
        )


1. Perform the steps below at both sites on any one node of the cluster

-  From Primary site:

[root@ ~]# /opt/VRTSvcs/bin/gcoconfig
Service group (ClusterService) already exists. Do you want to reconfigure Global Cluster Option?[y,n,q] (y)
Configuring existing NIC resource (gconic) of service group (ClusterService) for Global Cluster Option.
Do you want to use NIC ens32 for Global Cluster Option?[y,n,q] (y)
Configuring existing IP resource (gcoip) of service group (ClusterService) for Global Cluster Option.
Do you want to use IP 192.168.10.150 for Global Cluster Option?[y,n,q] (y) n
Enter the Virtual IP address for the Global Cluster Option: 192.168.10.151 
Enter the netmask for IP 255.255.255.0 (255.255.255.0): 255.255.255.0 
Configuring existing Application resource (wac) of service group (ClusterService) for Global Cluster Option.

Offlining group ClusterService

VCS NOTICE V-16-1-50733 Attempting to offline group on system server101

Modifying IP resource (gcoip) of group ClusterService

Onlining group ClusterService

VCS NOTICE V-16-1-50735 Attempting to online group on system server101


[root@ ~]#

Note: Follow the same step on the Secondary site as well.

Sample modified Output:

IP gcoip (
Device = ens32
Address = "192.168.10.151"
NetMask = "255.255.255.0"
)



2. Verify if the new IP has been plumbed on the node

3. Update the values for the local/remote cluster IP's on both sites.

syntax: 

#haclus -modify attr value [-clus remote_cluster_name]

From primary site:

#haclus -modify ClusterAddress 192.168.10.251 -clus DR   <<< remote cluster ip

#haclus -modify ClusterAddress 192.168.10.151           <<<< local cluster ip

# haclus -display DR

#Attribute            Value
AdministratorGroups
Administrators
CID
ClusState             INIT
ClusterAddress        192.168.10.251        <<<<<
ClusterName           DR
ClusterUUID
ConnectTimeout        300
DeclaredState
EngineVersion         0.0.0.000
Guests
OperatorGroups
Operators
RemoteConnectInterval 5
SocketTimeout         180
SourceFile            ./main.cf
VCSFeatures           NONE
VCSMode               UNKNOWN_MODE
WACPort               14155

 

From DR site:

#haclus -modify ClusterAddress 192.168.10.151 -clus PROD  <<< remote cluster ip

#haclus -modify ClusterAddress 192.168.10.251           <<<< local cluster ip

 

4. Update the values of the ICMP Resource (Heartbeat) on both sites.
 

syntax:

# /opt/VRTSvcs/bin/hahb -modify Icmp Arguments -clus

Primary:

# /opt/VRTSvcs/bin/hahb -modify Icmp Arguments 192.168.20.251 -clus DR

# /opt/VRTSvcs/bin/hahb -display
#HB Attribute Scope Value
Icmp AYAInterval global 60
Icmp AYARetryLimit global 3
Icmp AYATimeout global 30
Icmp AgentState global ON
Icmp Arguments DR 192.168.10.251              <<<< 
Icmp CleanTimeout global 300
Icmp ClusterList global DR
Icmp InitTimeout global 300
Icmp LogDbg global
Icmp StartTimeout global 300
Icmp State DR DOWN
Icmp StopTimeout global 300

Secondary:

# /opt/VRTSvcs/bin/hahb -modify Icmp Arguments 192.168.20.151 -clus PROD

 

5. Restart the wac resource

#hares -offline wac -sys

#hares -online wac -sys

Issue/Introduction

How to Change the IP address of a GCO cluster for non-secure environment