[samba] Problem with SAMBA+HEARTBEAT

Mike mmortier at it.ramadaparkhotel.ch
Tue Mar 21 11:17:06 GMT 2006


Hi all,
I have two servers ZEUS (MASTER - 192.168.2.11) and POSEIDON (SLAVE - 192.168.2.12) with HeartBeat+DRBD+SAMBA installed ; HeartBeat is controlling SAMBA.
I have a big partition which are mirrored /share.
I moved all important directory on it. For example:
# mv /var/lib/samba /share/cluster/varlibsamba
# mv /var/cache/samba /share/cluster/varcachesamba

and I make a link for each one:
# ln -s /share/cluster/varlibsamba /var/lib/samba
# ln -s /share/cluster/varcachesamba /var/cache/samba

for infromation:
# vi /etc/ha.d/haresources
zeus    drbddisk::drbd1 Filesystem::/dev/drbd1::/share::ext3
zeus    IPaddr::192.168.2.10 \
        killallslapd \
        slapd \
        killallcupsys \
        cupsys \
        killallsamba \
        samba


On ZEUS, everything is working fine. When I launched HeartBeat, SAMBA starts correctly:
Zeus become a domain master, a local master, etc...

But I want to test the other node and I crashe zeus, Poseidon starts SAMBA but
it doesn't become a domain master. I have this:
[2006/03/21 11:13:18, 0] nmbd/nmbd_become_dmb.c:become_domain_master_query_success(225)
  become_domain_master_query_success:
  There is already a domain master browser at IP 192.168.2.11 for workgroup PSYNUX registered on subnet UNICAST_SUBNET.
[2006/03/21 11:14:01, 0] nmbd/nmbd_browsesync.c:domain_master_node_status_fail(250)
  domain_master_node_status_fail:
  Doing a node status request to the domain master browser
  for workgroup PSYNUX at IP 192.168.2.11 failed.
  Cannot sync browser lists.

My /etc/smb/smbf.conf is the same on the two nodes:
[global]
## Browsing/Identification ###
   workgroup = PSYNUX
   netbios name = CLUSTER-PSYNUX
   server string = %h server (Samba %v)

#### Debugging/Accounting ####
   log file = /var/log/samba/log.%m
   log level = 2
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d

####### Authentication #######
   security = user
   obey pam restrictions = No
   enable privileges = yes
   encrypt passwords = true
   guest account = nobody
   hosts allow = 127.0.0.1 192.168.2.0/24
   hosts deny = 0.0.0.0/0
   interfaces = eth0* lo
   bind interfaces only = yes

##### LDAP configuration #####
   ;add machine script = /usr/sbin/smbldap-useradd -w -d /dev/null -c 'Machine Account' -s /bin/false #"%u"
   add machine script = /usr/sbin/smbldap-useradd -w "%u"
   add user script = /usr/sbin/smbldap-useradd -a -m "%u"
   ;delete user script = /usr/sbin/smbldap-userdel -r "%u"
   ldap delete dn = Yes
   add group script = /usr/sbin/smbldap-groupadd -g "%g"
   ;delete group script = /usr/sbin/smbldap-groupdel "%g"
   add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
   delete user from group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
   set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"

   # LDAP configuration for Domain Controlling:
   # Lancez cette commande pour que Samba puisse lire et écrire
   # dans l'annuaire : smbpasswd -w mypassword
   ldap admin dn = cn=manager,dc=psynux,dc=ch
   ldap suffix = dc=psynux,dc=ch
   ;ldap filter = (&(objectclass=sambaSamAccount)(uid=%u))
   ldap passwd sync = yes
   ldap user suffix = ou=People
   ldap group suffix = ou=Groups
   ldap machine suffix = ou=Computers
   ;ldap idmap suffix = ou=People

   # Connexion à l'annuaire en localhost, puisque
   # Samba est sur la même machine que OpenLDAP.
   passdb backend = ldapsam:ldap://localhost
   ;idmap backend = ldapsam:ldap://localhost

########### Domain ###########
   domain master = yes
   local master = yes
   os level = 64
   ;preferred master = yes
   domain logons = yes
   wins support = yes
   dns proxy = no
   time server = yes

And:
# cat /var/lib/samba/wins.dat
VERSION 1 0
"__MSBROWSE__#01" 1143230979 255.255.255.255 e4R
[...]
"CLUSTER-PSYNUX#00" 1143195799 192.168.2.11 192.168.2.12 192.168.2.10 66R
"CLUSTER-PSYNUX#03" 1143195799 192.168.2.11 192.168.2.12 192.168.2.10 66R
"CLUSTER-PSYNUX#20" 1143195799 192.168.2.11 192.168.2.12 192.168.2.10 66R
"PSYNUX#00" 1143237180 255.255.255.255 e4R
"PSYNUX#1b" 1143193253 192.168.2.11 192.168.2.10 64R
"PSYNUX#1c" 1143195799 192.168.2.11 192.168.2.12 192.168.2.10 e4R
"PSYNUX#1e" 1143195799 255.255.255.255 e4R

Any ideas to solve this problem?

thanks a lot for your help,

Mike


More information about the samba mailing list