Koozali.org: home of the SME Server

various Samba processes running on SME 6.0 final

Michael Doerner

various Samba processes running on SME 6.0 final
« on: January 17, 2004, 08:06:55 AM »
Hi,

it looks like there was an (important) change between SME6.0 beta 3 and 6.0 final: The Samba processes nmbd and smbd on 6.0 final are running under the control of daemontools/supervise.
ps ax | grep mbd shows smbd and nmbd processes being started with the parameters -F -S where in the past on all older SME versions, those processes ran with -D parameter. As I understand the daemontools/Samba documentation, this is correct.

Previously there was ONE smbd -D and one nmbd -D process running only (always ?) and it looks like that it is the same (one smbd -F -S and one nmbd -F -S each) on a fresh SME 6.0 final install but apparently on all upgraded servers that were SME 5.6 before or older, there seems to be more then one nmbd or smbd process running ie.:

3270 ?        S      0:00 /usr/sbin/smbd -F -S
3312 ?        S      0:03 /usr/sbin/nmbd -F -S
3313 ?        S      0:00 /usr/sbin/nmbd -F -S
 480 ?        S      0:00 /usr/sbin/smbd -F -S
 481 ?        S      0:00 /usr/sbin/smbd -F -S

Looking at the PIDs like 3312/3313 for nmbd and 480/481 for smbd they must have been started immediately after each other.

I just wonder whether this is correct (?) or others might have similar experiences?

Regards,
Michael Doerner

Charlie Brady

Re: various Samba processes running on SME 6.0 final
« Reply #1 on: January 17, 2004, 11:27:14 PM »
Michael Doerner wrote:

> it looks like there was an (important) change between SME6.0
> beta 3 and 6.0 final: The Samba processes nmbd and smbd on 6.0
> final are running under the control of daemontools/supervise.

Correct, here's an extract from the release notes:

- Samba's two daemons, smbd and nmbd, are now under supervision such
  that they will be restarted automatically if they fail for any reason.

> ps ax | grep mbd shows smbd and nmbd processes being started
> with the parameters -F -S where in the past on all older SME
> versions, those processes ran with -D parameter. As I
> understand the daemontools/Samba documentation, this is
> correct.

...

> I just wonder whether this is correct

Have you noticed anything not functioning correctly? Seems to be more a design change that a bug if not.

Charlie

Michael Doerner

Re: various Samba processes running on SME 6.0 final
« Reply #2 on: January 18, 2004, 11:45:53 AM »
Charlie,

so far the "daily work" seems to be OK. I recognised it when I tried to find the reason why log rotation for Samba is not working (at least on upgraded systems).

I found under /etc/logrotate.d the following 3 files:
- samba,
- samba.rpmnew,
- samba.rpmsave

and I believe none of these actually does the logrotate job because they all are looking for the log files in a format "/var/log/samba/*.log " but under SME currently it's "/var/log/samba/log.*" (I suspect this comes form the standard Samba rpms). I can change that easily (and remove the unwanted samba.rpm entries manually) but I stumbled with the postrotate syntax/command because a "cat /var/run/smbd.pid" for example will restart the first smbd process only and I still think this might not be good/reliable enough.

Regards,
Michael Doerner