For a complete example of deploying in a zone, see Deployment Example: Installing PostgreSQL in a Non-Global Zone.
As superuser register the SUNW.HAStoragePlus and the SUNW.gds resource types.
# clresourcetype register SUNW.HAStoragePlus SUNW.gds |
Install and boot the zone pgs-zone on all the nodes to host Sun Cluster HA for PostgreSQL.
Create a failover resource group.
# clresourcegroup create -n node-1:pgs-zone,node-2:pgs-zone PostgreSQL-resource-group |
Create a resource for the PostgreSQL zone`s disk storage.
# clresource create -t SUNW.HAStoragePlus \ -p FileSystemMountPoints=PostgreSQL-instance-mount-points \ PostgreSQL-has-resource |
(Optional) Create a resource for the PostgreSQL`s logical hostname.
# clreslogicalhostname create -g PostgreSQL-resource-group \ PostgreSQL-logical-hostname-resource-name |
# clresourcegroup online -M PostgreSQL-resource-group |