Quote:
Originally Posted by blason Hey Vavai,
Here is my ha.cf file
**************
[root@mail1.kus.net ~]# more /etc/ha.d/ha.cf
keepalive 2
deadtime 30
warntime 10
initdead 120
bcast eth0
node mail1.kus.net
node mail2.kus.net
auto_failback on
crm yes
***********
authkeys
auth 1
1 sha1 MySecret
***********
haresources
[root@mail1.kus.net ~]# more /etc/ha.d/haresources
mail1.kus.net IPaddr::192.168.1.128/24/eth0 drbddisk::r0 Filesystem::/dev/drbd0::/opt::ext3 zimbra |
Your configuration seems to be enough, but I worries your Zimbra system will not be transferred to secondary nodes because of Zimbra hostname unless you have proper initial configuration.
Below is some clue based on my experience :
mail1.kus.net : IP 192.168.1.126
mail2.kus.net : IP 192.168.1.127
mail.kus.net : IP 192.168.1.128
1. Installing Zimbra on Primary node with hostname mail.kus.net with IP 192.168.1.128
2. Shutting down Zimbra services and then revert setting on primary node (mail1.kus.net : IP 192.168.1.126)
3. Installing Zimbra on secondary node with hostname mail.kus.net with IP 192.168.1.128
4. Shutting down Zimbra services and then revert setting on secondary node (mail2.kus.net : IP 192.168.1.127)
5. Setting up DRBD as your setting
6. Setting up Heartbeat as your setting
Summary : make sure that you have installing Zimbra with Heartbeat IP (virtual IP given by Heartbeat) and proper hostname (mail, instead of mail1 or mail2).
Hope this helps you for simplify your setting.