[DRBD-user] problem with heartbaet

dhz_bf at walla.co.il dhz_bf at walla.co.il
Sun May 23 08:39:43 CEST 2004

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


I think the problem lies in the line:

Server52 10.0.0.50::datadisk::drbd0 Filesystem::/dev/nb0::smb

The 10.0.0.50 should be on its own.  So, you should have:

Server52 10.0.0.50 datadisk::drbd0 Filesystem::/dev/nb0::smb

Now, the "::" separates a script (or a resource in heartbeat terms) from its argument.  The 10.0.0.50 is a shortcut for 
IPaddr::10.0.0.50.  It tells heartbeat to assign the cluster IP address, 10.0.0.50 to the local node when it becomes primary.
It has nothing to do with drbd.  datadisk::drbd0 on the other hand tells drbd to make the local drbd partition primary when
the heartbeat determines that the local node should be primary.



<michael.mueller at pergis.de>
[DRBD-user] problem with heartbaet

Hello,

i`ve a question about heartbeat together with drbd. I've installed a system
with two server
(called server51 and server52). They are both installed with suse 9.0
including the packages drbd and heartbeat. In both server are three network
cards installed.
Two of them are connected by an cross-over cable and each one goes to LAN.
The system
is going to be a fileserver in the LAN.

First I've built an mirror with drbd. It is working fine ! Here is my
drbd.conf file:
#
resource drbd0 {
  protocol = B
  fsckcmd  = fsck -p -y
#  disk {
#    do-panic
#    disk-size = 4194304k
#  }
  net {
    sync-min    = 10M
    sync-max    = 50M   # maximal average syncer bandwidth
    sync-nice   = 5
    tl-size     = 5000  # transfer log size, ensures strict write ordering
    timeout     = 60    # 0.1 seconds
    connect-int = 10    # seconds
    ping-int    = 10    # seconds
  }
  on node1 {
    device  = /dev/nb0
    disk    = /dev/hda4
    address = 192.168.0.51
    port    = 7788
  }
  on node2 {
    device  = /dev/nb0
    disk    = /dev/hda4
    address = 192.168.0.52
    port    = 7788
  }

There are no problems with running drbd !

Now I will configure heartbeat. But I've no idea where I've made a mistake.

here are my config files:
#		/etc/ha.d/haresources
#
#
#
Server52 10.0.0.50::datadisk::drbd0 Filesystem::/dev/nb0::smb

#		/etc/ha.d/ha.cf
#
#	server52
#
debugfile /var/log/ha-debug
logfile /var/log/ha-log
logfacility	local0
deadtime 10
# serial /dev/ttyS3
udp	eth1
udp	eth2
thost1 		server51
thost2		server52

#		/etc/ha.d/authkeys
#		02.10.2001
#server52
#
auth 1
1 crc



Perhaps somebody can help. Thank you

Michael


_______________________________________________
drbd-user mailing list
drbd-user at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user

-----------------------------------------------------------------------
Walla! Mail, Get Your Private, Free E-mail from Walla! at:
http://mail.walla.co.il

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20040523/6899e0c7/attachment.htm>


More information about the drbd-user mailing list