[Samba] load balancing CIFS/Samba

Blue Lang blue at b-side.org
Tue Aug 20 13:02:01 GMT 2002


On Tue, 20 Aug 2002, Javid Abdul-AJAVID1 wrote:

> when you are running samba , you will start nmbd also which resolves your
> unix host on which samba running as netbios
> each time client access \\foo\bar, dns will send the request one by one as
> you list ips.

unless i misunderstand what you're suggesting, this does not work.

in DNS, foo = 192.168.1.1, .2, .3

192.168.1.1 = IP hostname foo1, samba server name foo1, share name bar
192.168.1.2 = IP hostname foo3, samba server name foo2, share name bar
192.168.1.3 = IP hostname foo4, samba server name foo3, share name bar

windows client does start->run->\\foo\bar
DNS returns 192.168.1.1
windows makes connection to 192.168.1.1 and asks for foo
which does not exist
failure

the only way i can make it work at all is to have the smb server name be 
the same on all boxes.

does that make sense now?

> 
> -----Original Message-----
> From: Blue Lang [mailto:blue at b-side.org]
> Sent: Wednesday, August 21, 2002 4:53 AM
> To: Javid Abdul-AJAVID1
> Cc: samba at lists.samba.org
> Subject: RE: [Samba] load balancing CIFS/Samba
> 
> 
> On Tue, 20 Aug 2002, Javid Abdul-AJAVID1 wrote:
> 
> > create round robin alias with different IP address for different nodes
> > you dont have to put same nmb server name
> 
> i haven't tried that yet, but my intuition is that that would make it 
> impossible to, for instance, mount the same share from multiple windows 
> hosts. ie
> 
> start->run->\\foo.b-side.org\bar
> 
> would not resolve, because windows demands an nmb lookup, even after the
> host has been resolved via ip. is this not correct?
> 
> thanks!
> 
> > 
> > 
> > 
> > -----Original Message-----
> > From: Blue Lang [mailto:blue at b-side.org]
> > Sent: Wednesday, August 21, 2002 4:16 AM
> > To: samba at lists.samba.org
> > Subject: [Samba] load balancing CIFS/Samba
> > 
> > 
> > 
> > Hi Folks,
> > 
> > I'm trying out some ideas for loadbalancing Samba servers with some 
> > replication underneath. Right now, we're trying to use DNS round robin, 
> > just to see if it works, but it isn't.
> > 
> > Our basic config is that we have the same share and NMB server name on 
> > every node. Each node has a different IP hostname, which are all 
> > round-robin'ed to a single hostname. When we try to do requests from 
> > clients on the same subnet, everything grinds to a halt. It looks like all
> 
> > of our requests are being responded to by every node.
> > 
> > Does that make sense? Does anyone have any insight into loadbalancing CIFS
> 
> > that they might share?
> > 
> > Thanks!
> > 
> > Blue Lang
> > 
> > 
> > 
> 




More information about the samba mailing list