Sun Cluster Data Service for PostgreSQL Guide for Solaris OS

ProcedureHow to Enable a PostgreSQL Database to Run in a Global Zone Configuration

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

  1. As superuser register the SUNW.HAStoragePlus and the 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 the 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 Sun Cluster HA for PostgreSQL parameter file.


    # mkdir  PostgreSQL-instance-mount-points/parameter-dir