Skip to content

Commit

Permalink
Improve resource cleanup procedure
Browse files Browse the repository at this point in the history
bsc#1211019
jsc#DOCTEAM-977
  • Loading branch information
tahliar committed Sep 19, 2023
1 parent e802cb8 commit 0dfae8b
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions xml/ha_managing_resources.xml
Original file line number Diff line number Diff line change
Expand Up @@ -430,16 +430,34 @@ primitive admin_addr IPaddr2 \
Get a list of all your resources:
</para>
<screen>&prompt.root;<command>crm resource status</command>
...
Resource Group: dlm-clvm:1
dlm:1 (ocf:pacemaker:controld) Started
clvm:1 (ocf:heartbeat:lvmlockd) Started</screen>
Full List of Resources
* admin-ip (ocf:heartbeat:IPaddr2): Started
* stonith-sbd (stonith:external/sbd): Started
* Resource Group: dlm-clvm:
* dlm: (ocf:pacemaker:controld) Started
* clvm: (ocf:heartbeat:lvmlockd) Started</screen>
</step>
<step>
<para>
Show the fail count of a resource:
</para>
<screen>&prompt.root;<command>crm resource failcount <replaceable>RESOURCE</replaceable> show <replaceable>NODE</replaceable></command></screen>
<para>
For example, to show the fail count of the resource <literal>dlm</literal> on node
<literal>&node1;</literal>:
</para>
<screen>&prompt.root;<command>crm resource failcount dlm show &node1;</command>
scope=status name=fail-count-dlm value=2</screen>
</step>
<step>
<para>
To clean up the resource <literal>dlm</literal>, for example:
Clean up the resource:
</para>
<screen>&prompt.root;<command>crm resource cleanup dlm</command></screen>
<screen>&prompt.root;<command>crm resource cleanup <replaceable>RESOURCE</replaceable></command></screen>
<para>
This command cleans up the resource on all nodes. If the resource is part of a group,
&crmsh; also cleans up the other resources in the group.
</para>
</step>
</procedure>
</sect2>
Expand Down

0 comments on commit 0dfae8b

Please sign in to comment.