Operating System - HP-UX
1844839 Members
2790 Online
110233 Solutions
New Discussion

Changing IP address of cluster, packages, etc.

 
SOLVED
Go to solution
Douglas D. Denney
Frequent Advisor

Changing IP address of cluster, packages, etc.

Hello,

I have the wondrous task of changing the IP address of one of my (2 node) clusters, and I just wanted to make sure that I wasn't overlooking something simple. Here's my plan. If anyone would be willing to look it over and comment on it, I would appreciate it.

1. Save a copy of the current package and cluster definition. (use cmgetconf -p pkg1 pkg1.conf; cmgetconf cluster.ascii)
2. shutdown the cluster (cmhaltcl -f)
3. modify /etc/rc.config.d/cmcluster to set AUTOSTART_CMCLD=0 on both nodes
4. modify /etc/rc.config.d/netconf to have the NEW IP addresses for all the heartbeat interfaces, primary interfaces, default routes, etc. Do this on both nodes in the cluster.
5. Modify /etc/hosts to have the new IP information
6. Modify /etc/cmcluster/cmclnodelist to have the updated hostnames, Heartbeat interfaces, etc.

At this point, I plan to reboot each node and verify that all the IP interfaces are up, pingable, able to be logged into via rlogin, etc.

Once this is done, I will now modify the cluster definitions.

1. delete existing package definitions and cluster definition: cmdeleteconf -p pkg1; cmdeleteconf -c cluster
2. modify /etc/cmcluster/cluster.ascii file and make the necessary changes to incorporate the new IP addresses.
3. modify /etc/cmcluster/pkg1.ascii file and make the necessary changes to incorporate the new IP addresses.
4. verify cluster definitions: cmcheckconf -C cluster.ascii
5. apply cluster definitions: cmapplyconf -C cluster.ascii
6. verify cluster is operating: cmviewcl -v
7. verify package definitions: cmcheckconf -P pkg1.ascii
8. apply package definitions: cmapplyconf -P pkg1.ascii
9. run the package: cmmodpkg -e pkg1; cmrunpkg pkg1
10. verify package is operating

So, is there any other files I should change? I will be changing the primary IP address of the host, but not the hostname.

Thanks to anyone who can help with this.
Doug
4 REPLIES 4
Thayanidhi
Honored Contributor
Solution

Re: Changing IP address of cluster, packages, etc.

Hi,
If you are not changing the name, reboot may not necessary. Modify the configuration, followed by checkconf & applyconf. I don't see a need of delconf.
If subnet is not changing you don't need to modify the pkg.conf file. IP change is reflected only in pkg.cntl file. After modification you may simply copy the cntl file to other nodes.
If the hostnames are not changed, you don't need to modify the cmclnodelist correct!

Regds
TT
Attitude (not aptitude) determines altitude.
Rajeev  Shukla
Honored Contributor

Re: Changing IP address of cluster, packages, etc.

Hi Doug,
Your steps look good, your have covered pretty much everything i guess. I was wondering about your step unmber 1 in section 2. Where you are deleting the cluster. I feel you dont need to do that step and instead modify the cluster ascii file with the new IP and heartbeat and do a cmcheckconf and apply the configuration.

And in the end dont forget to re-edit the /etc/rc.config.d/cmcluster to change AUTOSTART_CMCLD=1, so your cluster is up by itself whenever you reboot the server.
Stephen Doud
Honored Contributor

Re: Changing IP address of cluster, packages, etc.

Step 1 section 2, if done, should be the last step done BEFORE reboot, and don't separate cmdeleteconf into 2 commands. Just use 'cmdeleteconf -f'.

If you had a direct connection, you could also bypass the reboot in favor of replumbing the NICs with the new IP address
and changing the hostname (if need be).
Douglas D. Denney
Frequent Advisor

Re: Changing IP address of cluster, packages, etc.

Closing thread.