Sun Cluster Data Service for PostgreSQL Guide for Solaris OS

ProcedureHow to Create and Enable Resources for PostgreSQL Rolechanger

Before You Begin

Ensure that you have edited the rolechg_config file to specify configuration parameters for the Sun Cluster HA for PostgreSQL Rolechanger data service. For more information, see http://www.postgresql.org.

  1. Become superuser on one of the nodes in the cluster that hosts PostgreSQL.

  2. Go to the directory that contains the script for creating the Sun Cluster HA for PostgreSQL Rolechanger resource.


    # cd /opt/SUNWscPostgreSQL/util
    
  3. Run the script that creates the PostgreSQL resource.


    # ksh ./rolechg_register -f /myplace/rolechg_config
    

    If you omit the -f option, the file /opt/SUNWscPostgreSQL/rolechg_util/rolechg_config is used.

  4. Bring the PostgreSQL Rolechanger resource online.


    # clresource enable rolechg-rs