For a complete example of deploying in an HA for Solaris Zones configuration, see Deployment Example: Installing PostgreSQL in a Non-Global Zone With HA for Solaris Zones.
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.
# clresourcetype register SUNW.HAStoragePlus SUNW.gds
# clresourcegroup create PostgreSQL-resource-group
# clresource create -t SUNW.HAStoragePlus \ -p FileSystemMountPoints=PostgreSQL-instance-mount-points \ PostgreSQL-has-resource
# clreslogicalhostname create -g PostgreSQL-resource-group \ PostgreSQL-logical-hostname-resource-name
# clresourcegroup online -M PostgreSQL-resource-group
Install the zone according to Oracle Solaris Cluster Data Service for Oracle Solaris Zones Guide, assuming that the resource name is pgsql-zone-rs and that the zone name is pgsql-zone.
# zoneadm -z pgsql-zone boot # zoneadm -z pgsql-zone halt
# cp /opt/SUNWsczone/sczbt/util/sczbt_config zones-target-configuration-file
RS=pgsql-zone-rs RG=PostgreSQL-resource-group PARAMETERDIR=pgsql-zone-parameter-directory SC_NETWORK=true|false SC_LH=PostgreSQL-logical-hostname-resource-name FAILOVER=true|false HAS_RS=PostgreSQL-has-resource Zonename=pgsql-zone Zonebootopt=zone-boot-options Milestone=zone-boot-milestone Mounts=
# mkdir pgsql-zone-parameter-directory
# /opt/SUNWsczone/sczbt/util/sczbt_register -f zones-target-configuration-file
# clresource enable pgsql-zone-rs
# clresourcegroup online PostgreSQL-resource-group