[ClusterLabs] [rgmanager] generic 'initscript' resource agent that passes arguments?

bergman at merctech.com bergman at merctech.com
Tue Sep 13 21:33:49 UTC 2016


In the message dated: Tue, 06 Sep 2016 20:36:53 +0200,
The pithy ruminations from Jan =?utf-8?Q?Pokorn=C3=BD?= on 
<Re: [ClusterLabs] [rgmanager] generic 'initscript' resource agent that passes arguments?> were:

=> On 29/08/16 13:41 -0400, bergman at merctech.com wrote:
=> > I've got a number of scripts that are based on LSB compliant scripts,
=> > but which also accept arguments & values. For example, a script to manage
=> > multiple virtual machines has a command-line in the form:
=> > 
=> > 	vbox_init --vmname $VMNAME [-d|--debug] [start|stop|status|restart]
=> > 

[SNIP!]

=> 
=> 
=> Adapting script.sh to scriptArgs.sh working as desired should not
=> be a hard task, though.  Once you add such custom RA to the system
=> (i.e., across all nodes), supposing you have adapted produced

OK.

Will ccs look for resource scripts anywhere other than
"/usr/share/cluster"? Does it use a search path, such as:

	/usr/share/cluster:/usr/local/share/cluster

or is there a way to specify alternative locations for local resource
files?

I truly hate putting local files in directories that are managed by
external packages -- it will surely be a source of future confusion and
management difficulty.


=> meta-data respectively, you should remember to run "ccs_update_schema"
=> so that any subsequent start of the cluster stack on the node or
=> modification via ccs utility will not fail due to unrecognized RA
=> if present in the to-apply configuration.

Got it.

=> 
=> Note that the new agent will not get reflected in luci web UI
=> automatically, you would have to add a support on your own.
=> 

No problem, I do most cluster configuration via the command line.

Thanks,

Mark


=> -- 
=> Jan (Poki)

-- 
Mark Bergman 




More information about the Users mailing list