HB_STANDBY(1)
π HB_STANDBY π
okay bestie, welcome to the hb_standby(1) page, living in the General commands section of the manual β¨
β¨ NAME β¨
hb_standby β it slides into the cluster manager's DMs and issues a failover request π«Ά
πΈ SYNOPSIS πΈ
hb_standby [all|foreign|local|failback]
π DESCRIPTION π
Warning π¨ This command is deprecated. Lowkey it's only suitable for legacy Heartbeat clusters that don't have Pacemaker enabled. If your cluster does have Pacemaker, thecrm(8)shell supports switching individual nodes into standby mode, and it replaceshb_standby. so likeβ¦ move on, babe π
/usr/share/heartbeat/hb_standby sends a lil request to the cluster asking it to move resources off the node where you invoked it, over to the other node β as long as that other node is currently available π
The meaning of the options is relative, so keep up bestie. This manual assumes the following config is sitting in /etc/ha.d/haresources:
alice drbddisk::r0 Filesystem::/dev/drbd0::/local/groups::ext3 10.0.0.1 smb
bob drbddisk::r1 Filesystem::/dev/drbd1::/local/ldap::ext3 10.0.0.2 ldap
β OPTIONS β
The following options are supported:
localβ migrates any resources that the local node is the preferred node for. β¨
When you invoke it on alice, Samba gets shut down, the IP address 10.0.0.1 gets released, /local/groups gets unmounted, /dev/drbd0 gets placed into the secondary role, and bob takes all these services over. the whole glow-up, hand-delivered π
When you run it on bob, OpenLDAP shuts down, 10.0.0.2 gets released, /local/ldap gets unmounted, /dev/drbd1 gets placed into the Secondary role, and alice takes over all these services. iconic behaviour fr fr π₯
foreign,failbackβ migrates any resources that the local node is not the preferred node for. not me handing over the stuff I wasn't even main character for π
When you run it on alice, OpenLDAP shuts down, 10.0.0.2 gets released, /local/ldap gets unmounted, /dev/drbd1 gets placed into the Secondary role, and bob takes over all these services.
When you invoke it on bob, Samba gets shut down, the IP address 10.0.0.1 gets released, /local/groups gets unmounted, /dev/drbd0 gets placed into the secondary role, and alice takes all these services over. slay π
allβ migrates all resources to the other node. all of them. every last one. no crumbs left behind π
β¨ psst: invokinghb_standbywith no options at all is identical tohb_standby all. so like, the default is literally everything, bestie. no cap.
π¦ CAVEATS π¦
hb_standby is only usable in R1-style configurations β meaning the ones configured using the haresources file. if your setup isn't that, this command is giving nothing, sorry π
π SEE ALSO π
hb_takeover(1), heartbeat(8), cl_status(1)
π AUTHORS π
- Alan Robertson
<alanr@unix.sh>hb_standby
- Guochun Shi
<gshi@ncsa.uiuc.edu>- man page
- Florian Haas
<florian.haas@linbit.com>- man page
and that's the whole vibe check, bestie π§ this page is from Heartbeat 3.0.6, dated November 26, 2009 β shoutout to the legends who wrote it, we stan πβ¨π
π¦ where this page comes from
- debian bookworm: heartbeat 1:3.0.6-13+b2 Β· GPL-2.0-or-later
- debian trixie: heartbeat 1:3.0.6-17 Β· GPL-2.0-or-later
- ubuntu jammy: heartbeat 1:3.0.6-12build1 Β· GPL-2.0-or-later
- ubuntu noble: heartbeat 1:3.0.6-14.1ubuntu2 Β· GPL-2.0-or-later
- ubuntu questing: heartbeat 1:3.0.6-17ubuntu2
- ubuntu resolute: heartbeat 1:3.0.6-18ubuntu2 Β· GPL-2.0-or-later
- ubuntu stonking: heartbeat 1:3.0.6-18ubuntu2 Β· 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