Oracle® Solaris Cluster System Administration Guide

Exit Print View

Updated: October 2015

How to Change the Logical Hostnames Used by Existing Oracle Solaris Cluster Logical Hostname Resources

You can choose to change the logical hostname resource's hostnamelist property either before or after you rename the node by following the steps in How to Rename a Node. This step is optional.

  1. On the global cluster, assume a role that provides solaris.cluster.modify RBAC authorization.
  2. Optionally, you can change the logical hostnames used by any of the existing Oracle Solaris Cluster Logical Hostname resources.

    The following steps show how to configure the apache-lh-res resource to work with the new logical hostname, and must be executed in cluster mode.

    1. In cluster mode, take the Apache resource groups that contain the logical hostnames offline.
      # clrg offline apache-rg
    2. Disable the Apache logical hostname resources.
      # clrs disable appache-lh-res
    3. Provide the new hostname list.
      # clrs set -p HostnameList=test-2 apache-lh-res
    4. Change the application's references for previous entries in the hostnamelist property to reference the new entries.
    5. Enable the new Apache logical hostname resources.
      # clrs enable apache-lh-res
    6. Bring the Apache resource groups online.
      # clrg online -eM apache-rg
    7. Confirm that the application started correctly by running the following command checking a client.
      # clrs status apache-rs