DRBD, heartbeat on Debian Etch: Difference between revisions

From Skytech
Jump to navigation Jump to search
No edit summary
 
Line 15: Line 15:
</pre>
</pre>


== Setup some basic drbd replication [internal meta - partition] ==
=== Setup some basic drbd replication [internal meta - partition] ===
<pre>
<pre>
resource drbd {
resource drbd {
Line 42: Line 42:


Of course adjust to your need.
Of course adjust to your need.


== Install heartbeat ==
<pre>
apt-get install heartbeat
</pre>

=== Setup heartbeat (basic) ===

Revision as of 21:01, 11 December 2008


DRBD & Heartbeat on Debian Etch

Install DRBD

Unfortunately, drbd is not actively available as a package under Debian Etch, so it has to be build from source.

Luckily this can be done automatically with debian.

apt-get install module-assistant build-essential drbd0.7-module-source

## Then build the module
m-a a-i drbd0.7

Setup some basic drbd replication [internal meta - partition]

resource drbd {
  protocol C;
  incon-degr-cmd "killall heartbeat";
  disk {
    on-io-error panic;
  }
  syncer {
    rate 10M; # Note: 'M' is MegaBytes, not MegaBits
  }
  on server1 {
    device    /dev/drbd0;
    disk      /dev/hdc3;
    address   192.168.0.110:7789;
    meta-disk  internal;
  }
  on server2 {
    device    /dev/drbd0;
    disk      /dev/hda3;
    address   192.168.0.140:7789;
    meta-disk  internal;
  }
}

Of course adjust to your need.


Install heartbeat

apt-get install heartbeat

Setup heartbeat (basic)