[ClusterLabs] Antw: [EXT] custom cluster module

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Fri Jun 12 04:00:53 EDT 2020


It seems you must write an OCF RA agent, not a "script". Did you check the docs?

>>> jim <jimod4 at yahoo.com> schrieb am 11.06.2020 um 17:37 in Nachricht
<4301_1591889865_5EE24FC9_4301_1414_1_1976808532.1177800.1591889854651 at mail.yaho 
.com>:
> I made a copy on the anything module and modified for the application I want 
> to monitor.  I put the script in /usr/lib/ocf/resoure.d/<vendor>/<application>. 
> The script works from the command line to start and stop the application.  
> when I try to add the module with "pcs resource create <some_name> 
> ocf:heartbeat:<module_name> --group <some_group> " i get an error, "Error: Agent 
> 'ocf:heartbeat:<module_name>' is not installed or does not provide valid 
> metadata: Metadata query for ocf:heartbeat:<module_name> failed: Input/Output 
> error, use --force to override".  the script supports 
> meta-data|metadata|meta_data.  I'm not sure how to know what is valid 
> metadat. I know i saw a utility to check the scripts, but that does not 
> appear to be installed/available on redhat.






More information about the Users mailing list