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, the crm(8) shell supports switching individual nodes into standby mode, and it replaces hb_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: invoking hb_standby with no options at all is identical to hb_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 πŸ’–βœ¨πŸŽ€