Print this page
6865006 ldom validate shouldn't check for password file if migration type is set to normal
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/cmd/ha-services/gds-agents/xvm/SUNW.ldom
+++ new/usr/src/cmd/ha-services/gds-agents/xvm/SUNW.ldom
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 #
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 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 #ident "%Z%%M% %I% %E% SMI"
26 26 #
27 27
28 28 RESOURCE_TYPE = "ldom";
29 29 VENDOR_ID = SUNW;
30 30 RT_DESCRIPTION = "Sun Cluster HA for xVM SPARC Guest Domains";
31 31
32 32 RT_version ="1";
33 33 API_version = 10;
34 34
35 35 RT_basedir=/opt/SUNWscgds/bin;
36 36
37 37 Init = ../../SUNWscxvm/bin/init_xvm;
38 38 Boot = ../../SUNWscxvm/bin/boot_xvm;
39 39
40 40 Start = gds_svc_start;
41 41 Stop = gds_svc_stop;
42 42
43 43 Validate = ../../SUNWscxvm/bin/validate_xvm;
44 44 Update = gds_update;
45 45
46 46 Monitor_start = gds_monitor_start;
47 47 Monitor_stop = gds_monitor_stop;
48 48 Monitor_check = gds_monitor_check;
49 49
50 50 Init_nodes = RG_PRIMARIES;
51 51 Failover = FALSE;
52 52
53 53 # The paramtable is a list of bracketed resource property declarations
54 54 # that come after the resource-type declarations
55 55 # The property-name declaration must be the first attribute
56 56 # after the open curly of a paramtable entry
57 57 #
58 58 # The following are the system defined properties. Each of the system defined
59 59 # properties have a default value set for each of the attributes. Look at
60 60 # man rt_reg(4) for a detailed explanation.
61 61 #
62 62 {
63 63 PROPERTY = Start_timeout;
64 64 MIN = 60;
65 65 DEFAULT = 300;
66 66 }
67 67 {
68 68 PROPERTY = Stop_timeout;
69 69 MIN = 60;
70 70 DEFAULT = 300;
71 71 }
72 72 {
73 73 PROPERTY = Validate_timeout;
74 74 MIN = 60;
75 75 DEFAULT = 300;
76 76 }
77 77 {
78 78 PROPERTY = Update_timeout;
79 79 MIN = 60;
80 80 DEFAULT = 300;
81 81 }
82 82 {
83 83 PROPERTY = Monitor_Start_timeout;
84 84 MIN = 60;
85 85 DEFAULT = 300;
86 86 }
87 87 {
88 88 PROPERTY = Monitor_Stop_timeout;
89 89 MIN = 60;
90 90 DEFAULT = 300;
91 91 }
92 92 {
93 93 PROPERTY = Monitor_Check_timeout;
94 94 MIN = 60;
95 95 DEFAULT = 300;
96 96 }
97 97 {
98 98 PROPERTY = FailOver_Mode;
99 99 DEFAULT = SOFT;
100 100 TUNABLE = ANYTIME;
101 101 }
102 102 {
103 103 PROPERTY = Network_resources_used;
104 104 TUNABLE = ANYTIME;
105 105 DEFAULT = "";
106 106 }
107 107 {
108 108 PROPERTY = Thorough_Probe_Interval;
109 109 MAX = 3600;
110 110 DEFAULT = 60;
111 111 TUNABLE = ANYTIME;
112 112 }
113 113 {
114 114 PROPERTY = Retry_Count;
115 115 MAX = 10;
116 116 DEFAULT = 2;
117 117 TUNABLE = ANYTIME;
118 118 }
119 119 {
120 120 PROPERTY = Retry_Interval;
121 121 MAX = 3600;
122 122 DEFAULT = 370;
123 123 TUNABLE = ANYTIME;
124 124 }
125 125
126 126 {
127 127 PROPERTY = Port_list;
128 128 DEFAULT = "";
129 129 TUNABLE = ANYTIME;
130 130 }
131 131
132 132 {
133 133 PROPERTY = Scalable;
134 134 DEFAULT = FALSE;
135 135 TUNABLE = AT_CREATION;
136 136 }
137 137
138 138 {
139 139 PROPERTY = Load_balancing_policy;
140 140 DEFAULT = LB_WEIGHTED;
141 141 TUNABLE = AT_CREATION;
142 142 }
143 143
144 144 {
145 145 PROPERTY = Load_balancing_weights;
146 146 DEFAULT = "";
147 147 TUNABLE = ANYTIME;
148 148 }
149 149
150 150 #
151 151 # Extension Properties
152 152 #
153 153
154 154 # These two control the restarting of the fault monitor itself
155 155 # (not the server daemon) by PMF.
156 156 {
157 157 PROPERTY = Monitor_retry_count;
158 158 EXTENSION;
159 159 INT;
160 160 DEFAULT = 4;
161 161 TUNABLE = ANYTIME;
162 162 DESCRIPTION = "Number of PMF restarts allowed for the fault monitor";
163 163 }
164 164
165 165 {
166 166 PROPERTY = Monitor_retry_interval;
167 167 EXTENSION;
168 168 INT;
169 169 DEFAULT = 2;
170 170 TUNABLE = ANYTIME;
171 171 DESCRIPTION = "Time window (minutes) for fault monitor restarts";
172 172 }
173 173
174 174 # Time out value for the probe
175 175 {
176 176 PROPERTY = Probe_timeout;
177 177 EXTENSION;
178 178 INT;
179 179 MIN = 2;
180 180 DEFAULT = 30;
181 181 TUNABLE = ANYTIME;
182 182 DESCRIPTION = "Time out value for the probe (seconds)";
183 183 }
184 184
185 185 # Child process monitoring level for PMF (-C option of pmfadm)
186 186 # Default of -1 means: Do NOT use the -C option to PMFADM
187 187 # A value of 0-> indicates the level of child process monitoring
188 188 # by PMF that is desired.
189 189 {
190 190 PROPERTY = Child_mon_level;
191 191 EXTENSION;
192 192 INT;
193 193 DEFAULT = -1;
194 194 TUNABLE = AT_CREATION;
195 195 DESCRIPTION = "Child monitoring level for PMF";
196 196 }
197 197
198 198 # This is an optional property. Any value provided will be used as
199 199 # the absolute path to a command to invoke to validate the application.
200 200 # If no value is provided, The validation will be skipped.
201 201 #
202 202 {
203 203 PROPERTY = Validate_command;
204 204 EXTENSION;
205 205 STRING;
206 206 DEFAULT = "";
207 207 TUNABLE = NONE;
208 208 DESCRIPTION = "Command to validate the application";
209 209 }
210 210
211 211 # This property must be specified, since this is the only mechanism
212 212 # that indicates how to start the application. Since a value must
213 213 # be provided, there is no default. The value must be an absolute path.
214 214 {
215 215 PROPERTY = Start_command;
216 216 EXTENSION;
217 217 STRINGARRAY;
218 218 DEFAULT = "/opt/SUNWscxvm/bin/control_xvm start -R %RS_NAME -T %RT_NAME -G %RG_NAME";
219 219 TUNABLE = NONE;
220 220 DESCRIPTION = "Command to start application";
221 221 }
222 222
223 223 # This is an optional property. Any value provided will be used as
224 224 # the absolute path to a command to invoke to stop the application.
225 225 # If no value is provided, signals will be used to stop the application.
226 226 #
227 227 # It is assumed that Stop_command will not return until the
228 228 # application has been stopped.
229 229 {
230 230 PROPERTY = Stop_command;
231 231 EXTENSION;
232 232 STRING;
233 233 DEFAULT = "/opt/SUNWscxvm/bin/control_xvm stop -R %RS_NAME -T %RT_NAME -G %RG_NAME";
234 234 TUNABLE = NONE;
235 235 DESCRIPTION = "Command to stop application";
236 236 }
237 237
238 238 # This is an optional property. Any value provided will be used as
239 239 # the absolute path to a command to invoke to probe the application.
240 240 # If no value is provided, the "simple_probe" will be used to probe
241 241 # the application.
242 242 #
243 243 {
244 244 PROPERTY = Probe_command;
245 245 EXTENSION;
246 246 STRING;
247 247 DEFAULT = "/opt/SUNWscxvm/bin/control_xvm probe -R %RS_NAME -G %RG_NAME -T %RT_NAME";
248 248 TUNABLE = NONE;
249 249 DESCRIPTION = "Command to probe application";
250 250 }
251 251
252 252 # This is an optional property. It determines whether the application
253 253 # uses network to communicate with its clients.
254 254 #
255 255 {
256 256 PROPERTY = Network_aware;
257 257 EXTENSION;
258 258 BOOLEAN;
259 259 DEFAULT = FALSE;
260 260 TUNABLE = AT_CREATION;
261 261 DESCRIPTION = "Determines whether the application uses network";
262 262 }
263 263
264 264 # This is an optional property, which determines the signal sent to the
265 265 # application for being stopped.
266 266 #
267 267 {
268 268 PROPERTY = Stop_signal;
269 269 EXTENSION;
270 270 INT;
271 271 MIN = 1;
272 272 MAX = 37;
273 273 DEFAULT = 15;
274 274 TUNABLE = WHEN_DISABLED;
275 275 DESCRIPTION = "The signal sent to the application for being stopped";
276 276 }
277 277
278 278 # This is an optional property, which determines whether to failover when
279 279 # retry_count is exceeded during retry_interval.
280 280 #
281 281 {
282 282 PROPERTY = Failover_enabled;
283 283 EXTENSION;
284 284 BOOLEAN;
285 285 DEFAULT = TRUE;
286 286 TUNABLE = WHEN_DISABLED;
287 287 DESCRIPTION = "Determines whether to failover when retry_count is exceeded during retry_interval";
288 288 }
289 289
290 290 # This is an optional property that specifies the log level GDS events.
291 291 #
292 292 {
293 293 PROPERTY = Log_level;
294 294 EXTENSION;
295 295 ENUM { NONE, INFO, ERR };
296 296 DEFAULT = "INFO";
297 297 TUNABLE = ANYTIME;
298 298 DESCRIPTION = "Determines the log level for event based traces";
299 299 }
300 300
301 301 {
302 302 Property = Debug_level;
303 303 Extension;
304 304 Per_node;
305 305 Int;
306 306 Min = 0;
307 307 Max = 2;
308 308 Default = 0;
309 309 Tunable = ANYTIME;
310 310 Description = "Debug level";
311 311 }
312 312
313 313 {
314 314 Property = Domain_name;
315 315 Extension;
316 316 String;
317 317 Minlength = 1;
318 318 Tunable = WHEN_DISABLED;
319 319 Description = "LDoms Guest Domain name";
320 320 }
321 321
322 322 {
323 323 Property = Migration_type;
324 324 Extension;
325 325 Enum { NORMAL, MIGRATE };
326 326 Default = "MIGRATE";
327 327 Tunable = ANYTIME;
328 328 Description = "Type of guest domain migration to be performed";
329 329 }
330 330
331 331 {
332 332 PROPERTY = Plugin_probe;
333 333 EXTENSION;
|
↓ open down ↓ |
333 lines elided |
↑ open up ↑ |
334 334 STRING;
335 335 DEFAULT = "";
336 336 TUNABLE = ANYTIME;
337 337 DESCRIPTION = "Script or command to check the guest domain";
338 338 }
339 339
340 340 {
341 341 PROPERTY = Password_file;
342 342 EXTENSION;
343 343 STRING;
344 + DEFAULT = "";
344 345 TUNABLE = WHEN_DISABLED;
345 346 DESCRIPTION = "The complete path to the file containing the target host password";
346 347 }
347 348
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX