1HB_STANDBY(1)               General Commands Manual              HB_STANDBY(1)
2
3
4

NAME

6       hb_standby -  hb_standby is a simple linux-ha shell script. It issues a
7       failover from the node where it is running to the other node, if avail‐
8       able.
9

SYNOPSIS

11       hb_standby [all|foreign|local|failback]
12

DESCRIPTION

14       The  full path is usually /usr/lib/heartbeat/hb_standby.  To get a list
15       of the options to hb_standby issue the command,
16        "/usr/lib/heartbeat/hb_standby  --help"  .    NOTE:   For   historical
17       reasons,  unlike  most scripts where failure to specify an option gives
18       you the list of possible options,  failure  to  provide  an  option  to
19       hb_standby is equivalent to "hb_standby all".
20
21       The  meaning  of  the  options is relative. For this sample haresources
22       file:
23
24       nodea drbddisk::r0 Filesystem::/dev/drbd0::/local/groups::ext3 10.0.0.1
25       smb
26
27       nodeb  drbddisk::r1  Filesystem::/dev/drbd1::/local/ldap::ext3 10.0.0.2
28       ldap
29
30
31       hb_standby local
32              When run on nodea, means migrate any resources that nodea is the
33              preferred  node  for.  In this case Samba would be shutdown, the
34              IP address 10.0.0.1 would be released,  /local/groups  would  be
35              unmounted,  /dev/drbd0  would be placed into secondary and nodeb
36              would take all these services over.  When run on nodeb, OpenLDAP
37              would shutdown, 10.0.0.2 would be released, /local/ldap would be
38              unmounted, /dev/drbd1 would be placed into  Secondary  mode  and
39              nodea would take over all these services.
40
41
42       hb_standby foreign
43              When run on nodea, means migrate any resources that nodea is NOT
44              the preferred node for.  In this case OpenLDAP  would  shutdown,
45              10.0.0.2  would  be  released,  /local/ldap  would be unmounted,
46              /dev/drbd1 would be placed into Secondary mode and  nodeb  would
47              take over all these services.  When run on nodeb, Samba would be
48              shutdown,  the  IP   address   10.0.0.1   would   be   released,
49              /local/groups  would  be  unmounted,  /dev/drbd0 would be placed
50              into secondary and nodea would take all these services over.
51
52
53       hb_standby all
54              Regardless of which node  it's  run  on  means  to  release  all
55              resources so the other node takes over all resources.
56
57
58       hb_standby
59              Without an argument is the same as "hb_standby all"
60
61
62       hb_standby failback
63              Same as "hb_standby foreign"
64
65

CAVEATS

67       hb_standby  is  only  usable  in  R1-style  configurations (i.e., those
68       configured using the haresources file).
69
70

SEE ALSO

72       hb_takeover(1), heartbeat(8), cl_status(1)
73
74

DOCUMENTATION

76       More  information  may  be  found   at   http://linux-ha.org/hb_standby
77http://linux-ha.org/hb_standby
78
79

AUTHORS

81       linux-ha  --  Alan  Robertson <alanr@unix.sh> ⟨mailto:alanr@unix.sh⟩ et
82       al.
83
84       man      page      --      Guochun       Shi       <gshi@ncsa.uiuc.edu>
85       ⟨mailto:gshi@ncsa.uiuc.edu⟩
86
87
88
89
90                                9th August 2005                  HB_STANDBY(1)
Impressum