By hstsao on Sep 26, 2004
The ARCO feature in N1GE6 require a database to store the data. Right now one can use postgresql or oracle. In case one may want to protect the database server in Solaris env, one could use the HA-oracle agent to protect the oracle database.
For postgresql database, one can use the Java ES Cluster SW's Sunplex agent builder to build an failover agent based on GDS to protect the postgresql database.
We assume the uid for postgresql is postgres, the data is stored in /shared/pgsql/data and the binary is installed in /usr/local/pgsql.
We create two scripts:
su - postgres -c " /usr/local/pgsql/bin/pg_ctl start -l logfile /shared/pgsql/data "
su - postgres -c " /usr/local/pgsql/bin/pg_ctl stop -l logfile /shared/pgsql/data "