FENCE_AGENT(8)

✨ NAME ✨

fence_sbd β€” the fence agent for sbd, bestie πŸ’–


🌸 DESCRIPTION 🌸

fence_sbd is an I/O Fencing agent that you can use in any environment where sbd works β€” aka, shared storage situations, iykyk πŸ¦‹

So here's the vibe: this fence agent takes options on the command line and from stdin. When fenced execs the agent, it sends the parameters through stdin. But you can also just run the agent by itself with command line options, no cap β€” that's lowkey perfect for testing and for turning outlets on or off from scripts πŸ”₯

Vendor URL:


πŸ’… PARAMETERS πŸ’…

  • -o, --action=[action] β€” the fencing action you want (Default Value: reboot) ⭐
  • --devices=[device_a,device_b] β€” the SBD Device, periodt
  • -m, --method=[method] β€” the method to fence, and it's onoff|cycle (Default Value: cycle)
  • -n, --plug=[id] β€” physical plug number on the device, or the UUID, or the identification of the machine. 🚨 This parameter is always required. Like, always always.
  • -q, --quiet β€” disable logging to stderr. It does not affect --verbose, or --debug-file, or logging to syslog. Not those. Just stderr. πŸ’€
  • -v, --verbose β€” verbose mode. You can stack multiple -v flags on the command line (e.g., -vvv) to increase verbosity, go off πŸ‘‘
  • --verbose-level β€” level of debugging detail in output. Defaults to the number of --verbose flags you gave on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).
  • -D, --debug-file=[debugfile] β€” write debug information to the given file πŸŽ€
  • -V, --version β€” display version information and exit
  • -h, --help β€” display help and exit
  • --plug-separator=[char] β€” the separator for the plug parameter when you're specifying more than 1 plug (Default Value: ,)
  • -C, --separator=[char] β€” the separator for the CSV created by the list operation (Default Value: ,)
  • --delay=[seconds] β€” wait X seconds before fencing is started (Default Value: 0)
  • --disable-timeout=[true/false] β€” disable timeout, true/false style (default: true when run from Pacemaker 2.0+) πŸ™ˆ
  • --login-timeout=[seconds] β€” wait X seconds for the cmd prompt after login (Default Value: 5)
  • --power-timeout=[seconds] β€” test X seconds for status change after ON/OFF (Default Value: 30)
  • --power-wait=[seconds] β€” wait X seconds after issuing ON/OFF (Default Value: 0)
  • --sbd-path=[path] β€” path to the SBD binary (Default Value: /usr/sbin/sbd)
  • --shell-timeout=[seconds] β€” wait X seconds for the cmd prompt after issuing a command (Default Value: 3)
  • --stonith-status-sleep=[seconds] β€” sleep X seconds between status calls during a STONITH action (Default Value: 1)
  • --crashdump β€” crashdump instead of a regular fence πŸ’₯
  • --retry-on=[attempts] β€” how many attempts to retry power on (Default Value: 1)

🌈 ACTIONS 🌈

  • on β€” power on the machine. ✨
  • off β€” power off the machine.
  • reboot β€” reboot the machine. πŸ”„
  • status β€” this returns the status of the plug/virtual machine.
  • list β€” list available plugs with aliases/virtual machines, if there's support for more than 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. πŸ‘€
  • monitor β€” check the health of the fence device 🩺
  • metadata β€” display the XML metadata describing this resource.
  • manpage β€” the operational behavior of this is not known. (not us shrugging πŸ’€)
  • validate-all β€” validate if all required parameters are entered. βœ…

🫢 STDIN PARAMETERS 🫢

  • action β€” fencing action (Default Value: reboot)
  • devices β€” SBD Device
  • method β€” method to fence (onoff|cycle) (Default Value: cycle)
  • plug β€” physical plug number on device, UUID or identification of machine. This parameter is always required. Obsoletes: port
  • quiet β€” disable logging to stderr. Does not affect --verbose or --debug-file or logging to syslog.
  • verbose β€” verbose mode. Multiple -v flags can be stacked on the command line (e.g., -vvv) to increase verbosity.
  • verbose_level β€” level of debugging detail in output. Defaults to the number of --verbose flags specified on the command line, or to 1 if verbose=1 in a stonith device configuration (i.e., on stdin).
  • debug_file β€” write debug information to given file. Obsoletes: debug
  • version β€” display version information and exit
  • help β€” display help and exit
  • plug_separator β€” separator for plug parameter when specifying more than 1 plug (Default Value: ,)
  • separator β€” separator for CSV created by list operation (Default Value: ,)
  • delay β€” wait X seconds before fencing is started (Default Value: 0)
  • disable_timeout β€” disable timeout (true/false) (default: true when run from Pacemaker 2.0+)
  • login_timeout β€” wait X seconds for cmd prompt after login (Default Value: 5)
  • power_timeout β€” test X seconds for status change after ON/OFF (Default Value: 30)
  • power_wait β€” wait X seconds after issuing ON/OFF (Default Value: 0)
  • sbd_path β€” path to SBD binary (Default Value: /usr/sbin/sbd)
  • shell_timeout β€” wait X seconds for cmd prompt after issuing command (Default Value: 3)
  • stonith_status_sleep β€” sleep X seconds between status calls during a STONITH action (Default Value: 1)
  • crashdump β€” crashdump instead of regular fence
  • retry_on β€” count of attempts to retry power on (Default Value: 1)

okay that's literally the whole page, you ate that πŸ“ This was fence_sbd (Fence Agent), dated 2009-10-20, from the FENCE_AGENT(8) manual. mwah πŸ’‹

πŸ“¦ where this page comes from