22.8 Name and Address Changes


22.8 Name and Address Changes

After building your cluster, you may want or need to change its identity. For example, you may need to change the IP address or the name of the cluster or cluster members. These changes are discussed in Best Practices documents and the TruCluster Server Cluster Administration Guide, Chapter 5, so we won't go into great detail here other than to briefly outline the steps required to make these changes.

22.8.1 Changing the Cluster Name

For the cluster name change to take effect, the entire cluster must be shut down and restarted after the changes are complete.

  1. Create a stanza file that contains the name change attributes: clubase:cluster_name.

     # cat > clubase-cluster_name.stanza clubase:           cluster_name=jetsons ^d 
  2. Merge the stanza file into the sysconfigtab file on each member.

     # sysconfigdb -t /etc/sysconfigtab.cluster -m -f \   clubase-cluster_name.stanza clubase # /usr/sbin/clu_update_sysconfig /etc/sysconfigtab.cluster 
  3. Change the cluster name in both /etc/hosts and /etc/hosts.equiv.

    In /etc/hosts

     192.168.0.159      minnow.dec.com minnow    # Global cluster alias 

    becomes

     192.168.0.159      jetsons.dec.com jetsons   # Global cluster alias 

    and in /etc/hosts.equiv

     minnow.dec.com 

    becomes

     jetsons.dec.com 
  4. Add the new cluster name to the /.rhosts file and leave the old cluster name until the system has rebooted. Note that any other .rhosts files that reference the old cluster name will need to be updated as well.

     jetsons.dec.com 
  5. Shut the entire cluster down and reboot.

     # shutdown –c +5 "Changing the cluster name." 
  6. Verify the change (this is also a good time to remove the old cluster name from /.rhosts).

     # clu_get_info 

    If you see the new cluster name listed at the beginning of this output, you were successful in changing the cluster name. If not, go back and make sure each step was followed completely.

22.8.2 Changing the Cluster IP Address

Changing the cluster's IP address is a little less complicated and doesn't require a cluster reboot. It does, however, require a reboot of each cluster member, but you should retain quorum and therefore the cluster will continue to operate for the duration of the changes.

  1. Change the cluster's IP address in the /etc/hosts file.

     192.168.0.159        minnow.dec.com minnow # Global cluster alias 

    becomes

     192.168.0.160        minnow.dec.com minnow # Global cluster alias 

  2. Shut down and reboot one member at a time until all members have been rebooted.

  3. Verify the change with a ping (8) command, preferably from a client outside of the cluster. (This assumes that either the client /etc/hosts file or whatever network name database, such as DNS, has been updated to reflect the new name/IP address.)

     # ping minnow.dec.com PING minnow.dec.com (192.168.0.160): 56 data bytes 64 bytes from 192.168.0.160: icmp_seq=0 ttl=64 time=5 ms 

    The ping output should reflect the new cluster name and report successful pings.

22.8.3 Changing a Member Name, Member IP Address, or Interconnect Address

If you need to change the member name, member IP address, or a member's cluster interconnect address, you have to remove that member from the cluster and re-add it with the appropriate change.

  1. Shut down just the member.

  2. Remove the member from the cluster using one of the remaining cluster members.

     # clu_delete_member –m <memberid> 
  3. Add the member back to the cluster using one of the remaining cluster members.

     # clu_add_member 

    When adding the member back in, use the new name, IP address, and/or interconnect address.




TruCluster Server Handbook
TruCluster Server Handbook (HP Technologies)
ISBN: 1555582591
EAN: 2147483647
Year: 2005
Pages: 273

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net