Print this page
| Split |
Close |
| Expand all |
| Collapse all |
--- /workspace/du105637/oscposthot/webrev/usr/src/cmd/ha-services/gds-agents/PostgreSQL/pgs_config.ksh-
+++ pgs_config.ksh
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the License).
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/CDDL.txt
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
|
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/CDDL.txt.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets [] replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 -# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 +# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 26
27 -#ident "%Z%%M% %I% %E% SMI"
27 +# ident "%Z%%M% %I% %E% SMI"
28 28 #
29 29 # This file will be sourced in by pgs_register and the parameters
30 30 # listed below will be used.
31 31 #
32 32 # These parameters can be customized in (key=value) form
33 33 #
34 34 # RS - name of the resource for the application.
35 35 # RG - name of the resource group containing RS.
36 36 # PORT - name of the port number.
37 37 # LH - name of the LogicalHostname SC resource.
38 38 # Do not set the LH variable if you plan to have a network
39 39 # unaware installation.
40 40 # HAS_RS - Name of the HAStoragePlus SC resource.
41 41 # PFILE - Parameter file which contains the PostgreSQL specific
42 42 # parameters, this file will be created by the register script.
43 43 #
44 44 # The following variables need to be set only if the agent runs in a
45 45 # failover zone
46 46 #
47 47 # ZONE - Zonename where the zsmf component should be registered
48 48 # ZONE_BT - Resource name of the zone boot component
49 49 # PROJECT - A project in the zone, that will be used for the PostgreSQL
50 50 # smf service.
51 51 # PROJECT - A project in the zone, that will be used for the PostgreSQL
52 52 # smf service.
53 53 # If the variable is not set it will be translated as :default for
54 54 # the smf credentialss.
55 55 # Optional
56 56 #
57 57
58 58 RS=
59 59 RG=
60 60 PORT=
61 61 LH=
62 62 HAS_RS=
63 63 PFILE=
64 64
65 65 # failover zone specific options
66 66
67 67 ZONE=
68 68 ZONE_BT=
69 69 PROJECT=
70 70
71 71 #
72 72 # Content for the parameter file
73 73 #
74 74 # USER - The Solaris user who owns the PostgreSQL database.
75 75 # PGROOT - Contains the path to the PostgreSQL directory. Below this
76 76 # directory the postgres binaries are located in the ./bin
77 77 # directory.
78 78 # PGDATA - Contains the path to the databases of this specific PostgreSQL
79 79 # instance.
80 80 # PGPORT - Port where the postmaster process will be listening to.
81 81 # PGHOST - Hostname where the postmaster process is listening to, or a directory where the
82 82 # Unix socket file is stored.
83 83 # If set to a valid hostname, the PGHOST variable forces the probe to
84 84 # traverse the TCP/IP stack. If the PGHOST variable is empty or starts with a "/",
85 85 # the probe will use a socket. If the PGHOST variable starts with a "/", the entry must
86 86 # be the directory which contains the socket file.
87 87 # PGLOGFILE - Logfile where the log messages of the postmaster will be stored.
88 88 # LD_LIBRARY_PATH - This path contains all the necessary libraries for this PostgreSQL
89 89 # installation.
90 90 # Optional
91 91 # ENVSCRIPT - Script to contain PostgreSQL specific runtime variables.
92 92 # Optional
93 93 # SCDB - This database will be monitored.
94 94 # SCUSER - PostgresSQL user to connect to the $SCDB database.
95 95 # SCTABLE - Table name in the $SCDB database. This table name will be manipulated
96 96 # to check if PostgreSQL is alive. This table will be generated at database
97 97 # preparation time.
98 98 # SCPASS - Password of the SCUSER
99 99 # Optional
100 100 # NOCONRET - Return code for connection errors. This return code has to follow the rules
101 101 # for the generic data service. The value has to be between 1 and 100.
102 102 # 100/NOCONRET defines the number of consecutive probes to ignore for failed
103 103 # connections. A restart or failover will occur, if the number is exeeded within
104 104 # the retry interval.
105 105
106 106 USER=
107 107 PGROOT=
108 108 PGDATA=
|
↓ open down ↓ |
71 lines elided |
↑ open up ↑ |
109 109 PGPORT=
110 110 PGHOST=
111 111 PGLOGFILE=
112 112 LD_LIBRARY_PATH=
113 113 ENVSCRIPT=
114 114 SCDB=
115 115 SCUSER=
116 116 SCTABLE=
117 117 SCPASS=
118 118 NOCONRET=10
119 +
120 +# The following parameters need to be configured only if logfile shipping is configured to ship
121 +# the PosgreSQL WAL logs between a designated primary and a designated standby resource.
122 +# They need to be configured only on the primary.
123 +
124 +# STDBY_RS The resource name of the PostgreSQL standby resource.
125 +# STDBY_RG The resource group name of the PostgreSQL standby resource group.
126 +# STDBY_USER User which is the owner of the standby postgres database.
127 +# STDBY_HOST Resolvable name of the standby host or the standby zone,
128 +# this name has to be reachable via ssh.
129 +# STDBY_PARFILE The standbys postgres parameter file to get the rest of the necessary parameters.
130 +# STDBY_PING The number of of packets the primary uses to ping the standby host. If this variable is
131 +# empty, it will be set to 5 packets.
132 +# ROLECHG_RS The rolechangers resource name.
133 +# SSH_PASSDIR A directory where the ssh passphrase is stored in a the file <resourcename>-sshpass.
134 +# This parameter is needed only if you configured WAL file shipping and secured your
135 +# ssh key with a passphrase.
136 +# Leave it undefined if the passprase is empty.
137 +#
138 +# If you configure the logfile shipping in a shared nothing topology, do not set the LH parameter.
139 +#
140 +# Configure the following paramters on the primary host.
141 +
142 +STDBY_RS=
143 +STDBY_RG=
144 +STDBY_USER=
145 +STDBY_HOST=
146 +STDBY_PARFILE=
147 +STDBY_PING=
148 +#
149 +# Configure the following paramters on the standby host.
150 +#
151 +ROLECHG_RS=
152 +#
153 +# Configure the following parameter on both hosts.
154 +#
155 +SSH_PASSDIR=
156 +
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX