Before You Begin
Ensure that you have edited the pgs_config file to specify configuration parameters for the HA for PostgreSQL data service. For more information, see Specifying Configuration Parameters for the PostgreSQL Resource.
# cd /opt/SUNWscPostgreSQL/util
# ksh ./pgs_register -f /myplace/pgs_config
# ksh ./pgs_register -f /myplace/pgs_config -e
# ksh ./pgs_register -f /myplace/pgs_config
If you omit the –f option, the file /opt/SUNWscPostgreSQL/util/pgs_config is used.
# clresource enable postgres-rs
Perform this task to change parameters in the HA for PostgreSQL manifest and to validate the parameters in the HA container. Parameters for the HA for PostgreSQL manifest are stored as properties of the SMF service. To modify parameters in the manifest, change the related properties in the SMF service then validate the parameter changes.
# svccfg svc:/application/sczone-agents:resource
For more information, see the svccfg(1M) man page.
# /opt/SUNWscPostgreSQL/bin/control_pgs validate resource
Messages for this command are stored in the /var/adm/messages/ directory of the HA container.
# clresource disable resource # clresource delete resource
# /opt/SUNWscPostgreSQL/util/pgs_smf_remove -f filename
Specifies the configuration file name.
The name of the configuration file that you used to register HA for PostgreSQL with the SMF service.
Make a copy of the default file, /opt/SUNWscPostgreSQL/util/pgs_config.
Set the ZONE and RS parameters with the values that are used by the data service.
Run the pgs_smf_remove command and use the –f option to specify this configuration file.
Before You Begin
Ensure that you have edited the rolechg_config file to specify configuration parameters for the HA for PostgreSQL Rolechanger data service. For more information, see http://www.postgresql.org.
# cd /opt/SUNWscPostgreSQL/util
# ksh ./rolechg_register -f /myplace/rolechg_config
If you omit the –f option, the file /opt/SUNWscPostgreSQL/rolechg_util/rolechg_config is used.
# clresource enable rolechg-rs