Networking Forums

Networking Forums > Computer Networking > Linux Networking > Samba and Linux HA

Reply
Thread Tools Display Modes

Samba and Linux HA

 
 
snovgorodsky@gmail.com
Guest
Posts: n/a

 
      04-14-2009, 02:32 AM
Hi -



I have Samba 3.2.3 running on two Linux machines,

and there is Linux HA (v1) set up on these machines(active-passive).



This is what I have in my Heartbeat config file :



logfacility daemon

node MyNode1

node MyNode2

keepalive 1

deadtime 10

bcast eth0

ping my.ping.host.addr

auto_failback no

respawn hacluster /usr/lib64/heartbeat/ipfail



My smb.conf:



[global]

oplocks = no

msdfs root = yes

guest account = myaccount



workgroup = MYWORKGROUP

security = SHARE



max smbd processes = 15

interfaces = eth* lo

bind interfaces only = yes



[MyShare]

path = /opt/myshare

read only = No

guest ok = Yes

locking = no

hosts allow = valid.hosts.ip.addr

hosts deny = ALL





When I test a failover from one node to another, a Samba client

(either Linux or Windows)

does't reconnect automatically to the new node.

I was able to fix this adding this line to ha.cf:

"respawn root /usr/sbin/rcsmb" -- restarting Samba server



Is that a correct way of handling the issue?

Why doesn't a Samba client reconnect automatically after the HA

failover?



Thanks,

Sergey
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do all Linux distros have Samba built-in? Detect if Samba installed? Matthew Lincoln Linux Networking 8 11-17-2008 12:11 AM
Linux / Samba Limitations William Linux Networking 5 10-06-2007 08:27 PM
XP --> Linux with Samba Mike T. Linux Networking 4 11-07-2005 08:33 AM
samba and linux passwords Jeff Godfrey Linux Networking 2 03-02-2004 12:14 AM
Samba: Windows can't see Linux Robert Book Linux Networking 3 07-27-2003 07:00 PM



1 2 3 4 5 6 7 8 9 10 11