I have tried hunting through docs/lists/Google but no joy. I am sure I saw something about running multiple Samba's on different ports but I want to use different interfaces all on port 139. So: Can I run multiple s/nmbd's on the same machine? I have nine main VLANs and somewher in the region of 30 odd worgroups (don't ask !) of which 10 are of interest. 3,500 odd PCs. I have a Linux box with all nine VLANs on it and I can easily add more IP addresses per VLAN using aliasing. It has 18 addresses at the moment. The idea was to make this thing a browse master for all VLANs/workgroups. This should ease the amount of master browser elections etc etc we see and also effectivly give cross subnet browsing for all workgroups. I think it *should* be possible. I am having a go anyway with two lots of everything. ie 2 smb.conf's and pid files etc etc. If it is not possible, I would be gratefull if someone could point this out before I lose hair over it. A simple yes or no should do the trick. Cheers Jon Gerdes
>From: "Jon Gerdes" <gerdesj@whl.co.uk> >To: <samba@lists.samba.org> >Subject: [Samba] Multiple Samba's on same machine >Date: Tue, 30 Apr 2002 12:57:35 +0100 > >So: Can I run multiple s/nmbd's on the same machine?Yes. There's two basic ways of doing it (AFAIK). One) have multiple smb.conf's each with:- interfaces = <one-interface> and bind interfaces only = true in each, and star them all with 'smbd -s ......' THe oterh technique relies on your clients using different names to connect to the server, and then you use a single smb.conf (and start smbd only once) like ths:- netbios aliases = name1 name2 include = %L.conf and then you have a series of config files (called name1.conf, name2.conf) with different settings in each. In all of this, watch that your log (and locks) directories don't trip over each other in unexpected ways. Also be aware that nmbd doesn't cope with being a MB for multiple workgroups, you will need multiple nmbds for that (AFAIK). [I've never used either of these techniques, but they've both been mentioned in the past by happy users] Mac Assistant Systems Adminstrator @nibsc.ac.uk dmccann@nibsc.ac.uk Work: +44 1707 654753 x285 Everything else: +44 7956 237670 (anytime)
Mac Thanks for the quick reply. I was thinking in this direction - ie multiple everything. Should be a laugh to get 90 odd interfaces worth of Samba running. Might have to up the files-max setting in /proc though ! I'll post a howto when I'm done, although its a bit of an esoteric setup - we really ought to be using domains for this many PCs but then we are a NetWare shop for file/print and this noncy browsing business is a bit of a side effect of the clients. Anyway, you do it because you can ! Cheers Jon Gerdes>>> Mac <dmccann@nibsc.ac.uk> 30/04/2002 13:14:36 >>> >From: "Jon Gerdes" <gerdesj@whl.co.uk> >To: <samba@lists.samba.org> >Subject: [Samba] Multiple Samba's on same machine >Date: Tue, 30 Apr 2002 12:57:35 +0100 > >So: Can I run multiple s/nmbd's on the same machine?Yes. There's two basic ways of doing it (AFAIK). One) have multiple smb.conf's each with:- interfaces = <one-interface> and bind interfaces only = true in each, and star them all with 'smbd -s ......' THe oterh technique relies on your clients using different names to connect to the server, and then you use a single smb.conf (and start smbd only once) like ths:- netbios aliases = name1 name2 include = %L.conf and then you have a series of config files (called name1.conf, name2.conf) with different settings in each. In all of this, watch that your log (and locks) directories don't trip over each other in unexpected ways. Also be aware that nmbd doesn't cope with being a MB for multiple workgroups, you will need multiple nmbds for that (AFAIK). [I've never used either of these techniques, but they've both been mentioned in the past by happy users]
Jon Gerdes wrote:> I have tried hunting through docs/lists/Google but no joy. I am sure I saw something about running multiple Samba's on different ports but I want to use different interfaces all on port 139. > > So: Can I run multiple s/nmbd's on the same machine? > > I have nine main VLANs and somewher in the region of 30 odd worgroups (don't ask !) of which 10 are of interest. 3,500 odd PCs. I have a Linux box with all nine VLANs on it and I can easily add more IP addresses per VLAN using aliasing. It has 18 addresses at the moment. > > The idea was to make this thing a browse master for all VLANs/workgroups. This should ease the amount of master browser elections etc etc we see and also effectivly give cross subnet browsing for all workgroups. > > I think it *should* be possible. I am having a go anyway with two lots of everything. ie 2 smb.conf's and pid files etc etc. > > If it is not possible, I would be gratefull if someone could point this out before I lose hair over it. A simple yes or no should do the trick. > > Cheers > Jon Gerdes > >hi jon, i have this running on several servers, this was not a big problem. i have for each server a own virtual interface (eth0:0, eth0:1) and all samba running on port 139. the options i added to the different smb.conf was: interfaces = 192.168.1.4/255.255.25.0 bind interfaces only = yes socket address = 192.168.1.4 i used it until now twice, once for 2.0.7 (production-server), and a tng and 2.2.x for testing on one machine. and last week on a suse 7.3 with samba 2.2.3a and samba-2.2.4pre running on one machine (the 2.2.4pre was for w2k profiles) greetings thomas -- # Thomas Stegbauer # http://www.keyserver.de:11371/pks/lookup?op=get&search=0xFF837A1A