Editing HA cluster with DRBD and Heartbeat
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 231: | Line 231: | ||
[root@ovz-node1 ~]# | [root@ovz-node1 ~]# | ||
</pre> | </pre> | ||
− | Create the Heartbeat configuration file ha.cf and copy it to | + | Create the Heartbeat configuration file ha.cf and copy it to /etc/ha.d/ha.cf on both nodes. Details about this file can be found at http://www.linux-ha.org/ha.cf. Below is an example configuration which uses the two network connections and also a serial connection for heartbeat packets: |
<pre> | <pre> | ||
# Heartbeat logging configuration | # Heartbeat logging configuration | ||
Line 262: | Line 262: | ||
respawn hacluster /usr/lib64/heartbeat/ipfail | respawn hacluster /usr/lib64/heartbeat/ipfail | ||
</pre> | </pre> | ||
− | Create the Heartbeat configuration file authkeys and copy it to | + | Create the Heartbeat configuration file authkeys and copy it to /etc/ha.d/authkeys on both nodes. Set the permissions of this file to 600. Details about this file can be found at http://www.linux-ha.org/authkeys. Below is an example: |
<pre> | <pre> | ||
auth 1 | auth 1 | ||
1 sha1 PutYourSuperSecretKeyHere | 1 sha1 PutYourSuperSecretKeyHere | ||
</pre> | </pre> | ||
− | Create the Heartbeat configuration file haresources and copy it to | + | Create the Heartbeat configuration file haresources and copy it to /etc/ha.d/haresources on both nodes. Details about this file can be found at http://www.linux-ha.org/haresources. Below is an example: |
<pre> | <pre> | ||
ovz-node1 drbddisk::r0 Filesystem::/dev/drbd0::/vz::ext3 vz MailTo::youremail@yourdomain.tld | ovz-node1 drbddisk::r0 Filesystem::/dev/drbd0::/vz::ext3 vz MailTo::youremail@yourdomain.tld |