Operating System - HP-UX
1833883 Members
1484 Online
110063 Solutions
New Discussion

Re: Cluster Configuration

 
vjta
Regular Advisor

Cluster Configuration

Dear all
just i want to know what are the steps involved if we are changing the IP Address of cluster nodes.pls tell me detailed procedure & also tell what are the files required.Cluster is of 2 nodes.

Thanks & regards
Vjta
Vijeta Bhedi
9 REPLIES 9
Ivan Krastev
Honored Contributor

Re: Cluster Configuration

You can change it online on SG version 11.18. For other downtime of the cluster is required.

regards,
ivan
Jeeshan
Honored Contributor

Re: Cluster Configuration

Hi

You may follow the steps bellow

1. Shutdown database and application
2. Stop RAC if itis RAC
3. Stop the cluster
4. Change IP address
5. Reconfigure the cluster and reapply on both nodes
6. Start Cluster
7. Start Database and application


Good luck!!
a warrior never quits
Ramesh S
Esteemed Contributor

Re: Cluster Configuration

Hi

You could try this steps below:

Changing the IP on a LAN adapter has a potentially major effect on
ServiceGuard. Although online cluster reconfiguration is a ServiceGuard
feature, it does not allow IP changes to be done with the cluster running.
Cluster downtime should be scheduled to accommodate the IP modification if it
affects the cluster.

1) Determine whether downtime is necessary by using the following sort of
command:

# cmviewconf | grep 10.126.0.17 (OLD IP)
ip address: 10.126.0.17

If the "ip address:" line appears, then the IP is embedded in the cluster
binary, and it influences the actions of the cluster. This means the cluster
binary must be updated with the new IP in order for the cluster to operate
properly. If the subnet changes along with the IP, packages that depend on
that subnet must be updated as well.

If the cluster binary must be updated, it is necessary to perform the IP
changes before updating the cluster. Do this before proceeding with the
rest of this document.

2) With the LAN IP updated, create a current cluster configuration ASCII file
in /etc/cmcluster:

# cd /etc/cmcluster
# cmgetconf CONF

Edit the file, locate the lines containing the old IP and update the IP. The
lines will look something like this:

NETWORK_INTERFACE lan0
HEARTBEAT_IP 10.126.0.17
NETWORK_INTERFACE lan1
NETWORK_INTERFACE lan2
HEARTBEAT_IP 192.168.0.1



3) If the subnet for that LAN adapter changed, it is necessary to determine if
package-related subnet parameters must be updated as well.

# cmviewconf | grep -e "package name" -e "package subnet"
package name: clk
package subnet: 10.126.0.0 <--- HERE

If the subnet needs to be modified, locate the package configuration file
that references the subnet:

In /etc/cmcluster:
# grep 10.126.0.0 */*
PKG_1/pkg.config:SUBNET 10.126.0.0
PKG_1/pkg.ctrl:SUBNET[0]="10.126.0.0"

In the above case, only one package was affected and it's files will have to
be updated to reflect the new subnet. It may also require replacing old
relocatable IPs with new ones, and registering them on the name
server.

4) After updating the affected files, apply the updates to the cluster binary:

# cmapplyconf -C CONF [ -P ]

When completed successfully, start the new cluster:
# cmruncl

Finally, test the package startup and shutdown on each server to be
confident the change was performed properly.

Best Regards,
Ramesh
vjta
Regular Advisor

Re: Cluster Configuration

Dear Ramesh
thanks a lot for ur effort.

pls tell me the files which stores setting & configuration of cluster

thanks & regards
Vjta
Vijeta Bhedi
Ramesh S
Esteemed Contributor

Re: Cluster Configuration

Hi

Cluster ASCII file: /etc/cmclsuter/*.ascii -- where you can edit the file for cluster configuration

Cluster config binary file: /etc/cmclsuter/cmclconfig - binary file created by cmapplyconf from ascii file

Best Regards,
Ramesh
vjta
Regular Advisor

Re: Cluster Configuration

Hi Ramesh
Thanks whats the use of cntl file & also tell me how we can check serviceguard version

thanks & regards
Vjta
Vijeta Bhedi
Jeeshan
Honored Contributor

Re: Cluster Configuration

#swlist -l product|grep Serviceguard
a warrior never quits
Ramesh S
Esteemed Contributor

Re: Cluster Configuration

Hi

Cntrol file is used for packages ( control scripts )

swlist -l product | grep -i cluster

Best Regards,
Ramesh
vjta
Regular Advisor

Re: Cluster Configuration

Thanks to All

issue is closed.

regards
vjta
Vijeta Bhedi