FENCE_AGENT(8)

πŸ“¦
version 4.17.0 Β· 4 versions
, in centos-stream 10, debian trixie, fedora 43, fedora 44, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

fence_virt β€” the fence agent for virtual machines, bestie. It's giving power-fencing but make it virtual. 🧚✨


🌸 DESCRIPTION 🌸

okay so. fence_virt is a Power Fencing agent that you use with virtual machines. That's the whole vibe. πŸ‘‘

⚠️ NOTE: reboot-action does not power on nodes that are powered off. Like, it will not. Do not expect it to. It said what it said. πŸ’€

The fence agent accepts options on the command line as well as from stdin. When fenced execs the agent, it sends parameters through stdin. But you can also just run the agent by itself with command line options β€” which is lowkey so useful for testing πŸ§ͺ and for turning outlets on or off from scripts. main character energy fr fr.

Vendor URL: https://libvirt.org πŸ¦‹


✨ PARAMETERS ✨

  • -d β€” Specify (stdin) or increment (command line) debug level. πŸ›
  • -D β€” Serial device (default=/dev/ttyS1) (Default Value: /dev/ttyS1)
  • -P β€” Serial Parameters (default=115200,8N1) (Default Value: 115200,8N1)
  • -A β€” VM Channel IP address (default=10.0.2.179) (Default Value: 10.0.2.179)
  • -p β€” TCP, Multicast, VMChannel, or VM socket port (default=1229) (Default Value: 1229)
  • -n β€” Virtual Machine (domain name) to fence. This parameter is always required. no skipping it, bestie 🫢
  • -o β€” Fencing action (null, off, on, [reboot], status, list, list-status, monitor, validate-all, metadata) (Default Value: reboot)
  • -t β€” Fencing timeout (in seconds; default=30) (Default Value: 30) ⏰
  • -T β€” IP address to connect to in TCP mode (default=127.0.0.1 / ::1) (Default Value: 127.0.0.1)
  • -S β€” vm socket CID to connect to in vsock mode (Default Value: 2)
  • -C β€” Authentication (none, sha1, [sha256], sha512) (Default Value: sha256) πŸ”
  • -c β€” Packet hash strength (none, sha1, [sha256], sha512) (Default Value: sha256)
  • -k β€” Shared key file (default=/etc/cluster/fence_xvm.key) (Default Value: /etc/cluster/fence_xvm.key) πŸ—οΈ
  • -w β€” Fencing delay (in seconds; default=0) (Default Value: 0)

πŸŽ€ ACTIONS πŸŽ€

  • null β€” The operational behavior of this is not known. (yeah. that's literally all it says. iconic mystery behavior πŸ™ˆ)
  • on β€” Power on machine. πŸ”₯
  • off β€” Power off machine. πŸ’€
  • reboot β€” Reboot machine. πŸ”„
  • metadata β€” Display the XML metadata describing this resource. πŸ“œ
  • status β€” This returns the status of the plug/virtual machine. πŸ‘€
  • monitor β€” Check the health of fence device. 🩺
  • list β€” List available plugs with aliases/virtual machines if there is support for more then one device. Returns N/A otherwise.
  • list-status β€” List available plugs with aliases/virtual machines and their power state if it can be obtained without additional commands. ⚑
  • validate-all β€” Validate if all required parameters are entered. βœ…

🌈 STDIN PARAMETERS 🌈

  • debug β€” Specify (stdin) or increment (command line) debug level πŸ›
  • serial_device β€” Serial device (default=/dev/ttyS1) (Default Value: /dev/ttyS1)
  • serial_params β€” Serial Parameters (default=115200,8N1) (Default Value: 115200,8N1)
  • channel_address β€” VM Channel IP address (default=10.0.2.179) (Default Value: 10.0.2.179)
  • ipport β€” TCP, Multicast, VMChannel, or VM socket port (default=1229) (Default Value: 1229)
  • plug β€” Virtual Machine (domain name) to fence. This parameter is always required. Obsoletes: port πŸ‘‘
  • action β€” Fencing action (null, off, on, [reboot], status, list, list-status, monitor, validate-all, metadata) (Default Value: reboot)
  • timeout β€” Fencing timeout (in seconds; default=30) (Default Value: 30) ⏰
  • ipaddr β€” IP address to connect to in TCP mode (default=127.0.0.1 / ::1) (Default Value: 127.0.0.1)
  • vsock β€” vm socket CID to connect to in vsock mode (Default Value: 2)
  • auth β€” Authentication (none, sha1, [sha256], sha512) (Default Value: sha256) πŸ”
  • hash β€” Packet hash strength (none, sha1, [sha256], sha512) (Default Value: sha256)
  • key_file β€” Shared key file (default=/etc/cluster/fence_xvm.key) (Default Value: /etc/cluster/fence_xvm.key) πŸ—οΈ
  • delay β€” Fencing delay (in seconds; default=0) (Default Value: 0)

and that's the whole page, bestie!! this one came from the fence_virt (Fence Agent) era, dated 2009-10-20, and it lives in section FENCE_AGENT(8) of the System Manager's Manual. slay, go fence something πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from