2009-12-04 22:46:54 +03:00
.TH FENCE_AGENT 8 2009 -12-04 "fence_virt (Fence Agent)"
.SH NAME
fence_virt - Fencing agent for virtual machines using VM Channel
2009-12-17 15:28:13 +03:00
2009-12-04 22:46:54 +03:00
fence_xvm - Fencing agent for virtual machines using multicast
.SH DESCRIPTION
.P
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
- Cluster Checkpoints 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.
.P
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.
2010-01-13 19:37:48 +03:00
.SH GENERAL PARAMETERS
2009-12-04 22:46:54 +03:00
.TP
.B -d
.
Specify (CCS) / increment (command line) debug level
2010-01-13 19:37:48 +03:00
.TP
.B -H
.
Virtual machine (domain name) to fence
.TP
.B -o
.
Fencing action (null, off, on, [reboot], status, devstatus, or hostlist) (Default Value: reboot)
.TP
.B -t
.
Fencing timeout (in seconds; default=30) (Default Value: 30)
.SH MULTICAST PARAMETERS
These parameters are used only when using fence_virt in multicast mode
(e.g. by running fence_xvm).
2009-12-04 22:46:54 +03:00
.TP
.B -i
.
IP Family ([auto], ipv4, ipv6) (Default Value: auto)
.TP
.B -a
.
Multicast address (default=225.0.0.12 / ff02::3:1)
.TP
.B -p
.
IP port (default=1229) (Default Value: 1229)
.TP
.B -T
.
Multicast time-to-live (in hops; default=2) (Default Value: 2)
.TP
.B -r
.
Multicast retransmit time (in 1/10sec; default=20) (Default Value: 20)
.TP
.B -C
.
Authentication (none, sha1, [sha256], sha512) (Default Value: sha256)
.TP
.B -c
.
Packet hash strength (none, sha1, [sha256], sha512) (Default Value: sha256)
.TP
.B -k
.
Shared key file (Default Value: /etc/cluster/fence_xvm.key)
2010-01-13 19:37:48 +03:00
2009-12-04 22:46:54 +03:00
.TP
.B -u
.
Treat 'domain' as UUID instead of domain name.
2010-01-13 19:37:48 +03:00
.SH MULTICAST PARAMETERS
These parameters are used only when using fence_virt in multicast mode
(e.g. by running fence_xvm).
2010-01-09 22:20:59 +03:00
.TP
.B -D
.
2010-01-13 19:37:48 +03:00
Serial device (fence_virt mode). Default=/dev/ttyS1. On the host, the
serial device must be mapped in each domain's configuration file. See
fence_virt.conf(5) for more information.
2010-01-09 22:20:59 +03:00
.TP
.B -P
.
2010-01-13 19:37:48 +03:00
Serial parameters. Default=115200,8N1
2009-12-04 22:46:54 +03:00
2010-01-13 19:37:48 +03:00
.SH 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:
2009-12-04 22:46:54 +03:00
2010-01-13 19:37:48 +03:00
name=value
2009-12-04 22:46:54 +03:00
.TP
2010-01-13 19:37:48 +03:00
.B debug
.
Specify debugging level
2009-12-04 22:46:54 +03:00
.TP
2010-01-13 19:37:48 +03:00
.B domain
.
Virtual machine (domain name) to fence
2009-12-04 22:46:54 +03:00
.TP
2010-01-13 19:37:48 +03:00
.B action
2009-12-04 22:46:54 +03:00
.
2010-01-13 19:37:48 +03:00
Fencing action to perform (See FENCING ACTIONS section)
2009-12-04 22:46:54 +03:00
2010-01-13 19:37:48 +03:00
.TP
.B timeout
.
Fencing timeout (in seconds; default=30) (Default Value: 30)
.SH MULTICAST STDIN PARAMETERS
2009-12-04 22:46:54 +03:00
.TP
.B ip_family
.
IP Family ([auto], ipv4, ipv6) (Default Value: auto)
.TP
.B multicast_address
.
Multicast address (default=225.0.0.12 / ff02::3:1)
.TP
.B port
.
IP port (default=1229) (Default Value: 1229)
.TP
.B multicast_ttl
.
Multicast time-to-live (in hops; default=2) (Default Value: 2)
.TP
.B retrans
.
Multicast retransmit time (in 1/10sec; default=20) (Default Value: 20)
.TP
.B auth
.
Authentication (none, sha1, [sha256], sha512) (Default Value: sha256)
.TP
.B hash
.
Packet hash strength (none, sha1, [sha256], sha512) (Default Value: sha256)
.TP
.B key_file
.
Shared key file (default=/etc/cluster/fence_xvm.key) (Default Value: /etc/cluster/fence_xvm.key)
2010-01-13 19:37:48 +03:00
2009-12-04 22:46:54 +03:00
.TP
.B use_uuid
.
Treat 'domain' as UUID instead of domain name
2010-01-07 01:01:46 +03:00
2010-01-13 19:37:48 +03:00
.SH SERIAL STDIN PARAMETERS
2010-01-09 22:20:59 +03:00
.TP
.B serial_device
.
2010-01-13 19:37:48 +03:00
Serial device. Default=/dev/ttyS1. On the host, the serial device must
be mapped in each domain's configuration file. See fence_virt.conf(5)
for more information.
2010-01-09 22:20:59 +03:00
.TP
.B serial_params
.
2010-01-13 19:37:48 +03:00
Serial parameters. Default=115200,8N1.
.SH FENCING ACTIONS
.TP
\fB off \fP
Destroy or turn off virtual machine.
.TP
\fB reboot \fP
Reboot virtual machine; i.e. restart the virtual machine on the same
host where it is currently running.
.TP
\fB on \fP
Turn on a virtual machine. Note: Turning on a virtual machine only works
with some fence_virt backends.
2010-01-09 22:20:59 +03:00
2010-01-13 19:37:48 +03:00
.TP
\fB status \fP
Check whether a virtual machine is running or not.
2010-01-09 22:20:59 +03:00
2010-01-13 19:37:48 +03:00
.TP
\fB devstatus \fP
Check the health of fence_virtd.
2010-01-09 22:20:59 +03:00
2010-01-13 19:37:48 +03:00
.TP
\fB hostlist \fP
List virtual machines which may be fenced by fence_virtd (not supported
on all backends).
2010-01-09 22:20:59 +03:00
2010-01-07 01:01:46 +03:00
.SH SEE ALSO
2010-01-13 19:37:48 +03:00
fence_virtd(8), fence(8), fence_virtd.conf(5)