This is to serve as a (self) reference for possibly repeatably useful shell one-liners. Plain POSIX shell is assumed unless stated otherwise.
- edit the source of the resource agent (may be binary right away!) based on the knowledge of the ID of its configured instance within the live cluster (or when using
$EDIT /usr/lib/ocf/resource.d/$(crm_resource -r ID-OF-THE-RESOURCE | sed 's|.*:\([^:]*\):\([^)]*\)).*|\1/\2|')