Go to main content

Oracle® Solaris Cluster Data Service for PostgreSQL Guide

Exit Print View

Updated: June 2017
 
 

How to Enable a PostgreSQL Database to Run in the Global Zone

For a complete example of deploying in the global zone, see Deployment Example: Installing PostgreSQL in the Global Zone or a Zone Cluster.

Before You Begin

Ensure that the /etc/netmasks file has IP-address subnet and netmask entries for all logical hostnames. If necessary, edit the /etc/netmasks file to add any missing entries.

  1. As the root role, register the SUNW.HAStoragePlus and SUNW.gds resource types.
    # clresourcetype register SUNW.HAStoragePlus SUNW.gds
  2. Create a failover resource group.
    # clresourcegroup create PostgreSQL-resource-group
  3. Create a resource for PostgreSQL's disk storage.
    # clresource create -t SUNW.HAStoragePlus \
    -p FileSystemMountPoints=PostgreSQL-instance-mount-points \
    PostgreSQL-has-resource
  4. (Optional) If you plan to access the database from a logical host, choose the following tasks according to your zone type.
    # clreslogicalhostname create -g PostgreSQL-resource-group \
    PostgreSQL-logical-hostname-resource-name
  5. Enable the failover resource group.
    # clresourcegroup online -M PostgreSQL-resource-group
  6. Create a directory for the HA for PostgreSQL parameter file.
    # mkdir PostgreSQL-instance-mount-points/parameter-dir