resource-agents
resource-agents copied to clipboard
ipaddr2 resource start extremely slow
hi
"export __OCF_ACTION=start;export OCF_ROOT=/usr/lib/ocf;export OCF_RESKEY_nic=xx;export OCF_RESKEY_ip=xx;export OCF_RESKEY_cidir_netmask=xx;/usr/lib/ocf/resource.d/heartbeat/IPaddr2 start"
Invoke this command takes a long time (about 1900s), but only occasionally
thanks
If you run it with sh -x /usr/lib/ocf/resource.d/heartbeat/IPaddr2 start you should be able to see where it gets stuck in these situations.
Also there's no need to define __OCF_ACTION as it's set based on $1 in the agent so it'll be start if your action is start. You can also skip all the export and ;'s and just separate the parameters by spaces before the path/file.