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'sonoff|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-vflags 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--verboseflags you gave on the command line, or to1ifverbose=1in 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 thelistoperation (Default Value:,)--delay=[seconds]β wait X seconds before fencing is started (Default Value:0)--disable-timeout=[true/false]β disable timeout,true/falsestyle (default:truewhen 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. ReturnsN/Aotherwise.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 Devicemethodβ 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:portquietβ disable logging to stderr. Does not affect--verboseor--debug-fileor logging to syslog.verboseβ verbose mode. Multiple-vflags 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--verboseflags specified on the command line, or to1ifverbose=1in a stonith device configuration (i.e., on stdin).debug_fileβ write debug information to given file. Obsoletes:debugversionβ display version information and exithelpβ display help and exitplug_separatorβ separator for plug parameter when specifying more than 1 plug (Default Value:,)separatorβ separator for CSV created bylistoperation (Default Value:,)delayβ wait X seconds before fencing is started (Default Value:0)disable_timeoutβ disable timeout (true/false) (default:truewhen 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 fenceretry_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
- fedora 43: fence-agents-sbd 4.17.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- fedora 44: fence-agents-sbd 4.17.0-2.fc44 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: fence-agents-sbd 4.16.0+git.1750325058.755815b1-160000.2.2 Β· GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu resolute: fence-agents-sbd 4.17.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: fence-agents-sbd 4.17.0-1ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms