---
name: "hb_standby"
section: "1"
platform: "linux"
package: "heartbeat"
version: "1:3.0.6-17"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/hb_standby"
---

# hb\_standby(1)

issues a failover request to the cluster manager

## NAME

hb\_standby - issues a failover request to the cluster manager

## SYNOPSIS

**hb\_standby** \[all\|foreign\|local\|failback\]

## DESCRIPTION

**Warning**\

This command is deprecated. It is only suitable for legacy Heartbeat clusters without Pacemaker enabled. In Pacemaker-enabled clusters, the [**crm**(8)](/crm/8.md) shell supports switching individual nodes into standby mode, and replaces **hb\_standby**.

**/usr/share/heartbeat/hb\_standby** issues a request to the cluster to move resources from the node where it is invoked, to the other node (if it is currently available). The meaning of the options is relative. This manual assumes the following configuration to be present 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 invoked on alice, Samba would be shut down, the IP address 10.0.0.1 would be released, /local/groups would be unmounted, /dev/drbd0 would be placed into the secondary role and bob would take all these services over.

When run on bob, OpenLDAP would shut down, 10.0.0.2 would be released, /local/ldap would be unmounted, /dev/drbd1 would be placed into the Secondary role and alice would take over all these services.

foreign\|failback

Migrates any resources that the local node *is not* the preferred node for.

When run on alice, OpenLDAP would shut down, 10.0.0.2 would be released, /local/ldap would be unmounted, /dev/drbd1 would be placed into the Secondary role and bob would take over all these services.

When invoked on bob, Samba would be shut down, the IP address 10.0.0.1 would be released, /local/groups would be unmounted, /dev/drbd0 would be placed into the secondary role and alice would take all these services over.

all

Migrates all resources to the other node.

Invoking **hb\_standby** without any options is identical to **hb\_standby** all.

## CAVEATS

**hb\_standby** is only usable in R1-style configurations (i.e., those configured using the haresources file).

## SEE ALSO

[**hb\_takeover**(1)](/hb_takeover/1.md), [**heartbeat**(8)](/heartbeat/8.md), [**cl\_status**(1)](/cl_status/1.md)

## AUTHORS

**Alan Robertson** \<alanr@unix.sh\>

hb\_standby

**Guochun Shi** \<gshi@ncsa.uiuc.edu\>

man page

**Florian Haas** \<florian.haas@linbit.com\>

man page
