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
create round robin alias with different IP address for different nodes you dont have to put same nmb server name -----Original Message----- From: Blue Lang [mailto:blue@b-side.org] Sent: Wednesday, August 21, 2002 4:16 AM To: samba@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 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
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. -----Original Message----- From: Blue Lang [mailto:blue@b-side.org] Sent: Wednesday, August 21, 2002 4:53 AM To: Javid Abdul-AJAVID1 Cc: samba@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 namei 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@b-side.org] > Sent: Wednesday, August 21, 2002 4:16 AM > To: samba@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 > > >
-----Original Message----- From: Blue Lang [mailto:blue@b-side.org] Sent: Wednesday, August 21, 2002 5:03 AM To: Javid Abdul-AJAVID1 Cc: samba@lists.samba.org Subject: RE: [Samba] load balancing CIFS/Samba 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>>>> windows asks for foo1 not foo,dns resolves foo to 192.168.1.1 which is smb server with foo1 name you should be fine with architecture 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@b-side.org] > Sent: Wednesday, August 21, 2002 4:53 AM > To: Javid Abdul-AJAVID1 > Cc: samba@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@b-side.org] > > Sent: Wednesday, August 21, 2002 4:16 AM > > To: samba@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 likeall> > > of our requests are being responded to by every node. > > > > Does that make sense? Does anyone have any insight into loadbalancingCIFS> > > that they might share? > > > > Thanks! > > > > Blue Lang > > > > > > >
between check if nmbd is running on foo1, foo2 and foo2 do diagnostic.txt all of them on each server -----Original Message----- From: Javid Abdul-AJAVID1 Sent: Tuesday, August 20, 2002 5:16 PM To: 'Blue Lang'; Javid Abdul-AJAVID1 Cc: samba@lists.samba.org Subject: RE: [Samba] load balancing CIFS/Samba -----Original Message----- From: Blue Lang [mailto:blue@b-side.org] Sent: Wednesday, August 21, 2002 5:03 AM To: Javid Abdul-AJAVID1 Cc: samba@lists.samba.org Subject: RE: [Samba] load balancing CIFS/Samba 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>>>> windows asks for foo1 not foo,dns resolves foo to 192.168.1.1 which is smb server with foo1 name you should be fine with architecture 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@b-side.org] > Sent: Wednesday, August 21, 2002 4:53 AM > To: Javid Abdul-AJAVID1 > Cc: samba@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@b-side.org] > > Sent: Wednesday, August 21, 2002 4:16 AM > > To: samba@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 likeall> > > of our requests are being responded to by every node. > > > > Does that make sense? Does anyone have any insight into loadbalancingCIFS> > > that they might share? > > > > Thanks! > > > > Blue Lang > > > > > > >
Blue, It's been a while since i've worked with it, but I thought Windows would fall back to broadcasting for netbios names only uses dns if the broadcast fails. The resolution order is something like (assuming an H-node): Check to see if it is the local machine name. Try the WINS Server Try broadcasting Check the LMHOSTS file Try the HOSTS file and then DNS I suppose you could try killing 'nmbd' (the netbios name resolver) on the samba servers to force the netbios name broadcast to fail and the clients to fall back on DNS names. This seems an awfull lot like a hack to me, but could feasibly work in some warped fashion. Even if it does work, your clients will have a long timeout period while they flood your network with broadcast traffic before falling back to DNS. -- James Bagley | CDI Innovantage james_bagley@non.agilent.com | Technical Computing UNIX Admin Support DON'T PANIC | Agilent Technologies IT Phone: (541) 738-3340 | Corvallis, Oregon -- On Wed, 21 Aug 2002, Blue Lang wrote:> On Tue, 20 Aug 2002, James Bagley Jr wrote: > > > > > Does windows even use DNS for SMB file-sharing? I'm thinking it doesn't. > > it can definately fall back to using it for hostname resolution at > 'mount' time. if you're running without WINS, you need DNS. > > > The only way that I can think of to load-balance samba servers is to use a > > NAT box with a server pool on a private subnet behind it. This way, all > > your requests are handled by a single ip/hostname and the load balancing > > is done by the NAT box via netfilter or some such. I haven't actually > > tried this, but it should work... ;-) > > i think you are correct, but i am trying to examine other possibilities > first. > > -- > blue >
> > 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?Try killing nmbd and relying on DNS resolving. If you can't kill nmbd you'll have to rely on a virtual IP mechanism. Just curious - what's the underlying filesystem? You may run into a bottleneck there. Nir. -- Nir Soffer -=- Software Engineer, Exanet Inc. -=- "Father, why are all the children weeping? / They are merely crying son O, are they merely crying, father? / Yes, true weeping is yet to come" -- Nick Cave and the Bad Seeds, The Weeping Song