Table of Contents
The haresorces file is called when heartbeat starts. Throughout this document we have used /data as our mount point for replication raid1 over LAN.
We use node1, which is the master server and use 192.168.0.4 which is the clusters virtual IP address which will be displayed as eth0:0 on the primary node.
You will see drbddisk Filesystem::/dev/drbd0::/data::ext3 - /dev/drbd0 is our DRBD drive. We have chosen to mount our DRBD file system at /data – this is our replication mount point, which we configured in our samba and smbldap-tools configuration.
You can easily make services highly available by adding the appropriate name to the haresources file as specified below with DNS service named.
[root@node1]# vi haresources
## /etc/ha.d/haresources ## This configuration is to be the same on both nodes node1 192.168.0.4 drbddisk Filesystem::/dev/drbd0::/data::ext3 named
Copy the haresources file across to node2 so they are both identical.
[root@node1]# scp /etc/ha.d/haresources root@node2:/etc/ha.d/