Create the directories for the databases and the log file.
zone$ mkdir /global/mnt3/postgres/data zone$ mkdir /global/mnt3/postgres/logs |
Change to the PostgreSQL root directory and initialize the data cluster.
zone$ cd /postgres/postgresql-8.1.0 zone$ ./bin/initdb -D postgres/data |
Start the database.
zone$ ./bin/postmaster -D /postgresql-8.1.0 |
Prepare the Sun Cluster specific test database.
zone$ ksh /opt/SUNWscPostgreSQL/util/pgs_db_prep -f /tmp/pgs_config |
Stop the postmaster.
zone$ ./bin/pg_ctl -D /postgres/data stop |
Add the following line to the /postgres/data/postgresql.conf file.
listen_addresses = 'localhost,ha-host-1' |
Add the following line to the /postgres/data/pg_hba.conf file.
host all all 0.0.0.0/0 password |
Leave the zone.
zone$ exit |
Run the pgs_register script to register the resource.
phys-schost-1# ksh /opt/SUNWscPostgreSQL/util/pgs_register -f /global/mnt3/pgs_config |
Enable the resource.
phys-schost-1# clresource enable RS-PGS |