[Samba] Running Samba twice

2003-01-13 Thread tom
Can samba be running twice on a machine so that it can exist on 2 seperate
networks with 2 seperate configs?

I have tried using the -l and -s flags to run it twice and nmbd runs fine
on both interfaces but samba fails with :

[2003/01/13 12:11:33, 0] lib/pidfile.c:pidfile_create(86)
  ERROR: smbd is already running. File /usr/local/samba/var/locks/smbd.pid
exists and process id 23854 is running.

Any help would be greatly appreciated


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Running Samba twice

2003-01-13 Thread tom
On Mon, 13 Jan 2003, Marian Mlcoch, Ing wrote:

 You must set path to pid files in your confs diferent.See conf help to do.

Thankyou very much.

Still doesn't work tho.

Now I get

 bind failed on port 139 socket_addr = 0.0.0.0
 Error = Address already in use.

It sholdn'#t be trying to bind to 0.0.0.0

Am I missing something?


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Running Samba twice

2003-01-13 Thread Gerd-Christian Michalke
On Montag, 13. Januar 2003 19:44, [EMAIL PROTECTED] wrote:
 On Mon, 13 Jan 2003, Marian Mlcoch, Ing wrote:
  You must set path to pid files in your confs diferent.See conf help to
  do.

 Thankyou very much.

 Still doesn't work tho.

 Now I get

  bind failed on port 139 socket_addr = 0.0.0.0
  Error = Address already in use.

 It sholdn'#t be trying to bind to 0.0.0.0

 Am I missing something?

Here some tips which might help you further :


- you must start twice the daemons, but under different names (say, you'd make 
a copy of smbd and call them smbd1 and smbd2)
- those copies should also use different smb.conf files, in which you would 
define different interfaces and bind interface only parameters
- also define different pids and different log directories in those two 
smb.conf
- also, you need two different IP adresses, which you may use IP aliases

It's just an idea, but it might help

Kind regards,
Gerd

-- 
--
[EMAIL PROTECTED]\\_//
 (. .)   Powered by SuSE Linux 8.1   
---oOOo-oOOo--

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Running Samba twice

2003-01-13 Thread mark
On Monday 13 January 2003 18:44, [EMAIL PROTECTED] wrote:
 On Mon, 13 Jan 2003, Marian Mlcoch, Ing wrote:
  You must set path to pid files in your confs diferent.See conf help to
  do.

 Thankyou very much.

 Still doesn't work tho.

 Now I get

  bind failed on port 139 socket_addr = 0.0.0.0
  Error = Address already in use.

 It sholdn'#t be trying to bind to 0.0.0.0

 Am I missing something?
This has been covered a couple of times on this list.  You should really 
search the archives.   

You will need to setup a virtual ip address, and bind each instance an 
individual address to start.  man smbd, nmbd to figure out which options 
you'll need to give to the daemons.  or check the archives.  

mark

ps  you could always check the archives... :)


--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Running Samba twice

2003-01-13 Thread Eric Boehm
On Mon, Jan 13, 2003 at 07:50:31PM +0100, Gerd-Christian Michalke wrote:
 Marian == Marian Mlcoch, Ing [EMAIL PROTECTED] writes:
 Tom == [EMAIL PROTECTED] writes:
 Gerd == Gerd-Christian Michalke [EMAIL PROTECTED] writes:

Marian You must set path to pid files in your confs diferent.See
Marian conf help to do.

Tom Thankyou very much.

Tom Still doesn't work tho.

Tom Now I get

Tom bind failed on port 139 socket_addr = 0.0.0.0 Error = Address
Tom already in use.

Tom It sholdn'#t be trying to bind to 0.0.0.0

Tom Am I missing something?

Gerd Here some tips which might help you further :

Gerd - you must start twice the daemons, but under different
Gerd names (say, you'd make a copy of smbd and call them smbd1
Gerd and smbd2) - those copies should also use different smb.conf
Gerd files, in which you would define different interfaces and
Gerd bind interface only parameters - also define different pids
Gerd and different log directories in those two smb.conf - also,
Gerd you need two different IP adresses, which you may use IP
Gerd aliases

I posted detailed instructions on how to run multiple smbd/nmbd
daemons (almost a year ago). You might take a look at:

http://marc.theaimsgroup.com/?t=10130473722r=1w=2

-- 
Eric M. Boehm  /\  ASCII Ribbon Campaign
[EMAIL PROTECTED]   \ /  No HTML or RTF in mail
X   No proprietary word-processing
Respect Open Standards / \  files in mail
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba