Scroll to navigation

FENCE_AGENT(8) System Manager's Manual FENCE_AGENT(8)

NAME

fence_virt - Fencing agent for virtual machines using VM Channel

fence_xvm - Fencing agent for virtual machines using multicast

DESCRIPTION

fence_virt and fence_xvm are an I/O Fencing agents which can be used with virtual machines. Fence_xvm is backward compatible with fence_xvmd.

Fence_virt and fence_xvm talk to fence_virtd, which supports multiple backend plugins, including:
- libvirt for single-node operation
- Corosync CPG when using Linux-cluster release 3.0.0 or later
- libvirt-qpid for multi-node, non-cluster operation

For compatibility, fence_xvm may talk to fence_xvmd from linux-cluster release 2 or later.

fence_virt and fence_xvm accept options on the command line as well as from stdin. The fencing daemon sends parameters through stdin when it execs the agent. The agent may be run by itself with command line options, which is useful for testing or turning on or off virtual machines from scripts.

GENERAL PARAMETERS

Increment (command line) debug level
Virtual machine (domain UUID or name) to fence

Fencing action (null, off, on, reboot, status, monitor, list, list-status, validate-all, or metadata) (Default Value: reboot). See the FENCING ACTIONS section.

Fencing timeout (in seconds) (Default Value: 30)

Fencing delay (in seconds). The fence agent will wait the specified number of seconds before attempting a fencing operation. (Default Value: 0)

MULTICAST PARAMETERS

These parameters are used only when using fence_virt in multicast mode (e.g. by running fence_xvm).

IP Family (auto, ipv4, ipv6) (Default Value: auto)
Multicast address (Default Values: 225.0.0.12 / ff02::3:1)
IP port (Default Value: 1229)
Multicast time-to-live (in hops) (Default Value: 2)
Multicast retransmit time (in 1/10sec) (Default Value: 20)
Authentication (none, sha1, sha256, sha512) (Default Value: sha256)
Packet hash strength (none, sha1, sha256, sha512) (Default Value: sha256)
Shared key file (Default Value: /etc/cluster/fence_xvm.key)

Specify if using fence_virt with older fence_xvmd installations which are using UUIDs. Fence_virtd ignores this parameter.

SERIAL/VMCHANNEL/TCP/VSOCK PARAMETERS

These parameters are used only when using fence_virt in serial mode (e.g. by running fence_virt).

Serial device (fence_virt mode). On the host, the serial device must be mapped in each domain's configuration file. See fence_virt.conf(5) for more information. Specifying a serial device causes fence_virt to use serial mode (as opposed to VMChannel mode).

Serial parameters. (Default Value: 115200,8N1)

VMChannel IP address (Default Value: 10.0.2.179)

VMChannel IP port (Default Value: 1229)

Connect to the fence_virt daemon via vsock. If CID is specified, fence_virt will attempt to connect to the specified CID, otherwise it will connect to the default hypervisor CID of 2.

GENERAL STDIN PARAMETERS

These parameters are passed to fence_virt via standard input if no command line options are present. They are presented to fence_virt in the form:


name=value

Specify debugging level

Virtual machine (domain UUID or name) to fence

Fencing action (null, off, on, reboot, status, monitor, list, list-status, validate-all, or metadata) (Default Value: reboot). See the FENCING ACTIONS section.
Fencing timeout (in seconds) (Default Value: 30)

MULTICAST STDIN PARAMETERS

IP Family ([auto], ipv4, ipv6) (Default Value: auto)
Multicast address (Defaults: 225.0.0.12 / ff02::3:1)
IP port (Default Value: 1229)
Multicast time-to-live (in hops) (Default Value: 2)
Multicast retransmit time (in 1/10sec) (Default Value: 20)
Authentication (none, sha1, sha256, sha512) (Default Value: sha256)
Packet hash strength (none, sha1, sha256, sha512) (Default Value: sha256)
Shared key file (Default Value: /etc/cluster/fence_xvm.key)

Specify if using fence_virt with older fence_xvmd installations which are using UUIDs. Fence_virtd ignores this parameter.

SERIAL/VMCHANNEL/TCP/VSOCK STDIN PARAMETERS

Serial device. On the host, the serial device must be mapped in each domain's configuration file. See fence_virt.conf(5) for more information. If specified, causes fence_virt to operate in serial mode (not specifying causes fence_virt to operate in VM Channel mode).

Serial parameters. Default=115200,8N1.

Channel IP. Default=10.0.2.179

Channel port. Default=1229

Connect to the fence_virt daemon via vsock. If an argument is given, fence_virt will use the argument specified as the CID for the connection. If no argument is given, it will connect to the default hypervisor CID of 2.

FENCING ACTIONS


Destroy or turn off virtual machine.
Reboot virtual machine; i.e. restart the virtual machine on the same host where it is currently running.
Turn on a virtual machine. Note: Turning on a virtual machine only works with some fence_virt backends.

Check whether a virtual machine is running or not.

Check the health of fence_virtd's backend plugin.

List virtual machines which may be fenced by fence_virtd (not supported on all backends).

Validate arguments given on either the command line or standard input. If validation fails, the fence agent will exit with code 1, otherwise it will exit with code 0.

Print XML metadata to standard output.

SEE ALSO

fence_virtd(8), fence(8), fence_virtd.conf(5)

2009-12-04 fence_virt (Fence Agent)