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

ホームページ

サイトについて

コンタクト情報

使用条件

協力方法

セキュリティ

This web page is no longer maintained. Information presented here exists only to avoid breaking historical links.
The Project stays maintained, and lives on: see the Linux-HA Reference Documentation.
To get rid of this notice, you may want to browse the old wiki instead.

2010.1.28
追加パッケージ集リニューアル
追加パッケージ集は、こちらから

2008.8.28
RHEL用rpm更新
更新情報はこちらから

2008.8.18
Heartbeat 2.1.4
リリース!
Downloadはこちらから

2007.11.13
Linux-ha-japan日本語ML移植しました

2007.10.5
日本語サイトOPEN
日本語MLも開設しました

2007.10.5
OSC2007 Tokyo/Fall で Heartbeat紹介
発表資料を公開しました

Last site update:
2017-12-11 11:50:32

An Active/Active Two IP address Configuration

A common configuration is that of a high-availability server which simply provides two IP addresses (1.2.3.4, and 1.2.3.5) to be failed over between the nodes of our cluster. We will set this up as an active/active configuration.

Version 1 Configuration in /etc/ha.d/haresources

paul    1.2.3.4
silas   1.2.3.5

Version 2 Configuration in /var/lib/heartbeat/crm/cib.xml

<cib>
  <configuration>
    <crm_config/>
    <nodes/>
    <resources>
      <primitive id="ip_resource_1" class="ocf" type="IPaddr" provider="heartbeat">
        <instance_attributes>
          <attributes>
            <nvpair name="ip" value="1.2.3.4"/>
          </attributes>
        </instance_attributes>
      </primitive>
      <primitive id="ip_resource_2" class="ocf" type="IPaddr" provider="heartbeat">
        <instance_attributes>
          <attributes>
            <nvpair name="ip" value="1.2.3.5"/>
          </attributes>
        </instance_attributes>
      </primitive>
    </resources>
    <constraints>
      <rsc_location id="run_ip_resource_1" rsc="ip_resource_1">
        <rule id="pref_run_ip_resource_1" score="100">
          <expression attribute="#uname" operation="eq" value="paul"/>
        </rule>
      </rsc_location>
      <rsc_location id="run_ip_resource_2" rsc="ip_resource_2">
        <rule id="pref_run_ip_resource_2" score="100">
          <expression attribute="#uname" operation="eq" value="silas"/>
        </rule>
      </rsc_location>
    </constraints>
  </configuration>
  <status/>
</cib>

Explanation

See Also

GettingStarted/TwoIPaddresses