mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: Add on_lockfailure event configuration
Using this new element, one can configure an action that should be performed when resource locks are lost.
This commit is contained in:
@@ -919,6 +919,7 @@
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<on_lockfailure>poweroff</on_lockfailure>
|
||||
...</pre>
|
||||
|
||||
<p>
|
||||
@@ -974,6 +975,27 @@
|
||||
domain will be restarted with the same configuration</dd>
|
||||
</dl>
|
||||
|
||||
<p>
|
||||
The <code>on_lockfailure</code> element (<span class="since">since
|
||||
0.10.3</span>) may be used to configure what action should be
|
||||
taken when a lock manager loses resource locks. The following
|
||||
actions are recognized by libvirt, although not all of them need
|
||||
to be supported by individual lock managers. When no action is
|
||||
specified, each lock manager will take its default action.
|
||||
</p>
|
||||
<dl>
|
||||
<dt><code>poweroff</code></dt>
|
||||
<dd>The domain will be forcefully powered off.</dd>
|
||||
<dt><code>restart</code></dt>
|
||||
<dd>The domain will be powered off and started up again to
|
||||
reacquire its locks.</dd>
|
||||
<dt><code>pause</code></dt>
|
||||
<dd>The domain will be paused so that it can be manually resumed
|
||||
when lock issues are solved.</dd>
|
||||
<dt><code>ignore</code></dt>
|
||||
<dd>Keep the domain running as if nothing happened.</dd>
|
||||
</dl>
|
||||
|
||||
<h3><a name="elementsPowerManagement">Power Management</a></h3>
|
||||
|
||||
<p>
|
||||
|
||||
@@ -2246,6 +2246,11 @@
|
||||
<ref name="crashOptions"/>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<element name="on_lockfailure">
|
||||
<ref name="lockfailureOptions"/>
|
||||
</element>
|
||||
</optional>
|
||||
</interleave>
|
||||
</define>
|
||||
<!--
|
||||
@@ -2287,6 +2292,23 @@
|
||||
<value>coredump-restart</value>
|
||||
</choice>
|
||||
</define>
|
||||
<!--
|
||||
Options when resource locks are lost:
|
||||
poweroff: power off the domain
|
||||
restart: power off the domain and start it up again to reacquire the
|
||||
locks
|
||||
pause: pause the execution of the domain so that it can be manually
|
||||
resumed when lock issues are solved
|
||||
ignore: keep the domain running
|
||||
-->
|
||||
<define name="lockfailureOptions">
|
||||
<choice>
|
||||
<value>poweroff</value>
|
||||
<value>restart</value>
|
||||
<value>pause</value>
|
||||
<value>ignore</value>
|
||||
</choice>
|
||||
</define>
|
||||
<!--
|
||||
Control ACPI sleep states (dis)allowed for the domain
|
||||
For each of the states the following rules apply:
|
||||
|
||||
Reference in New Issue
Block a user