This site best when viewed with a modern standards-compliant browser. We recommend Firefox Get Firefox!.

Linux-HA project logo
Providing Open Source High-Availability Software for Linux and other OSes since 1999.

USA Flag UK Flag

Japanese Flag

Homepage

About Us

Contact Us

Legal Info

How To Contribute

Security Issues

7th - 10th October 2008 Linux-Kongress in Hamburg will have several sessions on Linux-HA - see you there!

18 August 2008 Heartbeat release 2.1.4 is now out Download it

11 October 2007 NEW educational HA/DR Blog hosted by Alan Robertson

9 April 2007 Check out the Cool Heartbeat Screencasts: Installation, Intro to the GUI Part of the Heartbeat Education project

Last site update:
2009-01-06 00:38:52

Note

In Heartbeat 2.x versions, haresources is no longer used if CRM is enabled. Instead /var/lib/heartbeat/crm/cib.xml is used, details can be found in GettingStartedV2.

Configuring the haresources file

The haresources file is one of the most important files to configure when using Heartbeat.

The general form of a line in the haresources file is simple:

preferred-node resourcename ...

The list of resources on a line is referred to as a resource group.

The preferred-node is the node that this resource group would prefer to be run on. Continuations of lines can be made with '\' characters at the end of the line.

Heartbeat resources are acquired in a left-to-right order, and released in a right-to-left order.

Note that it is absolutely mandatory for the haresources files to be identical on both machines.

This preferred-node is the nominal owner of the resources. That is, this is the machine who will own them if both machines are available and you have selected autofailback on. A fairly common error is to think that you have to tell each machine to own the same set of resources on both machines. By doing this, you have directed Heartbeat to make each machine owner of the same set of resources, and you wind up with both machines trying to run the same resources at the same time. If you do this, BadThingsWillHappen.

Note: Make sure that the first resource in each resource group is unique because the first resource will be used as resource group name.

See Also

hb_standby, hb_takeover, ha.cf, authkeys, Configuring Heartbeat, Getting Started - Configuring haresources