Hi ! I want to run 2 samba instances on my linux server. the server has 2 ip adresses and i made 2 different smb.conf`s (2 different netbios-names/workgroups bound to specific interfaces - params "interfaces" , "bind interfaces only" and "socket address") furthermore i cloned the start/stopscripts (cp smb/nmb to smb2/nmb2) to use that different smb.conf`s. but that doesnt work perfect - i can connect to the different ip`s and have 2 smbd`s serving files - but i wonder about the following: - i have no clue how to make samba instance #1 use /var/lib/samba and instance #2 use /var/lib/samba2 for their TDB backend files. also nmbd writes a browse.dat - so - we have concurrent access on that file if 2 nmbd`s are running, right? hardcoded paths ? - i have no clue why nmbd binds to IP #1 or #2 AND to 0.0.0.0:138 THOUGH i configured bind interfaces only (bug?). that must be the reason why browsing doesn`t work when 2 instances are up and running. can someone help me with this ? i`m sure that multi-instance of samba should work in general - but there seem to be some bells and whistles..... regards roland
>- i have no clue how to make samba instance #1 use /var/lib/samba and instance #2 use /var/lib/samba2 for their TDB backend files. > >For what you're doing, which is pretty advanced, how bout if you ./configure your instances to run from their own seperate directory trees? Ex. /usr/local/samba-servername and /usr/local/samba-otherservername That would make the most sense to me, but maybe I'm just crazy. Some of the other issues may go away if there are other file overlaps you're not considering. -- Paul Gienger Office: 701-281-1884 Applied Engineering Inc. Information Systems Consultant Fax: 701-281-1322 URL: www.ae-solutions.com mailto: pgienger@ae-solutions.com
check out the following smb.conf parameters private dir lock directory pid directory devzero@web.de wrote:> Hi ! > I want to run 2 samba instances on my linux server. > the server has 2 ip adresses and i made 2 different smb.conf`s (2 different netbios-names/workgroups bound to specific interfaces - > params "interfaces" , "bind interfaces only" and "socket address") > furthermore i cloned the start/stopscripts (cp smb/nmb to smb2/nmb2) to use that different smb.conf`s. > > but that doesnt work perfect - i can connect to the different ip`s and have 2 smbd`s serving files - but i wonder about the > following: > > - i have no clue how to make samba instance #1 use /var/lib/samba and instance #2 use /var/lib/samba2 for their TDB backend files. > also nmbd writes a browse.dat - so - we have concurrent access on that file if 2 nmbd`s are running, right? > hardcoded paths ? > > - i have no clue why nmbd binds to IP #1 or #2 AND to 0.0.0.0:138 THOUGH i configured bind interfaces only (bug?). that must be the > reason why browsing doesn`t work when 2 instances are up and running. > > can someone help me with this ? > > i`m sure that multi-instance of samba should work in general - but there seem to be some bells and whistles..... > > regards > roland > > >
Ahhh - thanks! I found the lock dir and pid dir param but must have missed the private dir param when searching the smb.conf manpage. maybe i had an outdated manpage? i give it a try. it`s strange that google gives me "only" 365 hits when searching for <"private dir" smb.conf> (there are thousands of smb.conf documents out there on the net! is that a brand new param ? so - only one issue left :> > - i have no clue why nmbd binds to IP #1 or #2 AND to 0.0.0.0:138 THOUGH i configured bind interfaces only (bug?). that must bethe> > reason why browsing doesn`t work when 2 instances are up and running.:) regards roland ----- Original Message ----- From: "Herb Lewis" <hlewis@panasas.com> To: <devzero@web.de> Cc: <samba@lists.samba.org> Sent: Friday, August 27, 2004 6:08 PM Subject: Re: [Samba] samba multiple instances> check out the following smb.conf parameters > > private dir > lock directory > pid directory > > > devzero@web.de wrote: > > Hi ! > > I want to run 2 samba instances on my linux server. > > the server has 2 ip adresses and i made 2 different smb.conf`s (2 different netbios-names/workgroups bound to specificinterfaces -> > params "interfaces" , "bind interfaces only" and "socket address") > > furthermore i cloned the start/stopscripts (cp smb/nmb to smb2/nmb2) to use that different smb.conf`s. > > > > but that doesnt work perfect - i can connect to the different ip`s and have 2 smbd`s serving files - but i wonder about the > > following: > > > > - i have no clue how to make samba instance #1 use /var/lib/samba and instance #2 use /var/lib/samba2 for their TDB backendfiles.> > also nmbd writes a browse.dat - so - we have concurrent access on that file if 2 nmbd`s are running, right? > > hardcoded paths ? > > > > - i have no clue why nmbd binds to IP #1 or #2 AND to 0.0.0.0:138 THOUGH i configured bind interfaces only (bug?). that must bethe> > reason why browsing doesn`t work when 2 instances are up and running. > > > > can someone help me with this ? > > > > i`m sure that multi-instance of samba should work in general - but there seem to be some bells and whistles..... > > > > regards > > roland > > > > > > >
Hi, regarding my "problem" with nmbd i took a look into the code (nmbd.c) and found: static BOOL open_sockets(BOOL isdaemon, int port) { /* * The sockets opened here will be used to receive broadcast * packets *only*. Interface specific sockets are opened in * make_subnet() in namedbsubnet.c. Thus we bind to the * address "0.0.0.0". The parameter 'socket address' is * now deprecated. */ mhhh - if the socket address parameter is deprecated - why is it still mentioned in the documentation section of smb.conf on the website ? ok - documentation is always behind - maybe it needs an update ? i still wonder: why should nmbd need to bind to 0.0.0.0 to receive broadcast packets ? i have a network 192.168.0.0/24 and so i want nmbd bind to interface 192.168.0.100 - and that would be quite sufficient to receive broadcasts from 192.168.0.100 - wouldn`t it ? any hints ? TIA roland>check out the following smb.conf parameters > >private dir >lock directory >pid directory > > >devzero@web.de wrote: >> Hi ! >> I want to run 2 samba instances on my linux server. >> the server has 2 ip adresses and i made 2 different smb.conf`s (2 different \ >> netbios-names/workgroups bound to specific interfaces - params "interfaces" , "bind \ >> interfaces only" and "socket address") furthermore i cloned the start/stopscripts \ >> (cp smb/nmb to smb2/nmb2) to use that different smb.conf`s. >> but that doesnt work perfect - i can connect to the different ip`s and have 2 \ >> smbd`s serving files - but i wonder about the following: >> >> - i have no clue how to make samba instance #1 use /var/lib/samba and instance #2 \ >> use /var/lib/samba2 for their TDB backend files. also nmbd writes a browse.dat - so \ >> - we have concurrent access on that file if 2 nmbd`s are running, right? hardcoded \ >> paths ? >> - i have no clue why nmbd binds to IP #1 or #2 AND to 0.0.0.0:138 THOUGH i \ >> configured bind interfaces only (bug?). that must be the reason why browsing \ >> doesn`t work when 2 instances are up and running. >> can someone help me with this ? >> >> i`m sure that multi-instance of samba should work in general - but there seem to be \ >> some bells and whistles..... >> regards >> roland >> >> >>________________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193