resource-agents icon indicating copy to clipboard operation
resource-agents copied to clipboard

ipaddr2 resource start extremely slow

Open TimLand opened this issue 4 years ago • 1 comments

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

TimLand avatar Sep 14 '21 09:09 TimLand

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.

oalbrigt avatar Sep 29 '21 13:09 oalbrigt