Sun Cluster Data Service for PostgreSQL Guide for Solaris OS

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

For a complete example of deploying in a zone, see Appendix D, Deployment Example: Installing PostgreSQL in a Non-Global Zone.

  1. As superuser register the SUNW.HAStoragePlus and the SUNW.gds resource types.


    # clresourcetype register SUNW.HAStoragePlus SUNW.gds
    
  2. Install and boot the zone pgs-zone on all the nodes to host Sun Cluster HA for PostgreSQL.

  3. Create a failover resource group.


    # clresourcegroup create -n node-1:pgs-zone,node-2:pgs-zone PostgreSQL-resource-group
    
  4. Create a resource for the PostgreSQL zone`s disk storage.


    # clresource create -t SUNW.HAStoragePlus \
    -p FileSystemMountPoints=PostgreSQL-instance-mount-points \
    PostgreSQL-has-resource
    
  5. (Optional) Create a resource for the PostgreSQL`s logical hostname.


    # clreslogicalhostname create -g PostgreSQL-resource-group \
    PostgreSQL-logical-hostname-resource-name
    
  6. Enable the resource group.


    # clresourcegroup online -M  PostgreSQL-resource-group