zone$ mkdir /global/mnt3/postgres/data zone$ mkdir /global/mnt3/postgres/logs
zone$ cd /postgres/postgresql-8.1.0 zone$ ./bin/initdb -D postgres/data
zone$ ./bin/postmaster -D /postgresql-8.1.0
zone$ ksh /opt/SUNWscPostgreSQL/util/pgs_db_prep -f /tmp/pgs_config -e
zone$ ./bin/pg_ctl -D /postgres/data stop
listen_addresses = 'localhost,ha-host-1'
host all all 0.0.0.0/0 password
zone# ksh /opt/SUNWscPostgreSQL/util/pgs_register -f /global/mnt3/pgs_config -e
zone$ exit
phys-schost-1# ksh /opt/SUNWscPostgreSQL/util/pgs_register -f /global/mnt3/pgs_config
phys-schost-1# clresource enable RS-PGS
The example instructions in Installing and Configuring PostgreSQL on Shared Storage in a Non-Global Zone with HA for Solaris Zones install the PostgreSQL software on shared cluster storage. You can also install this software into the default directory /usr/local/pgsql by following the instructions in this section.
To install the PostgreSQL software in the default directory, perform the steps provided in the following example procedures: