[NTLUG:Discuss] SMB desperation

Brad Christian webmaster at millerparker.com
Fri Jul 26 10:23:44 CDT 2002


Kelladin,

Thanks! I'll try it this weekend when everyones gone.

Thanks again,
Brad

-----Original Message-----
From: discuss-admin at ntlug.org [mailto:discuss-admin at ntlug.org]On Behalf
Of Kelledin
Sent: Thursday, July 25, 2002 9:27 PM
To: discuss at ntlug.org
Subject: Re: [NTLUG:Discuss] SMB desperation


On Thursday 25 July 2002 02:56 pm, Brad Christian wrote:
> I have a samba pdc with 2 file servers,
> 1 nt print server. On my main file server,
> doing /etc/service smb restart keeps
> failing, listing a different pid each time,
> "No such PID".
>
> The result is crashing workstations
> everytime sometime browses the network.
>
> SMBD now has 40-odd pids running. This
> machine has been running a few months with
> no problem, except startx always crashes
> the box. I don't use it, so no big deal.
>
> Tcpdump, smbstatus and msbrowse -AM - all
> return good. Any ideas?
>
> Thanks,
> Brad

This would probably be because samba services miswrite their PID 
files.  An LSB-compliant service is supposed to atomically lock 
and write a PID file (/var/run/`basename servicepath`.pid) 
containing only one line that holds the human-readable PID of 
the currently running service.  Samba does something like this, 
but unfortunately, it prints some garbage in the file as well.

This command you're running to restart the service is probably 
relying on the miswritten pid file, and doesn't know what to 
make of the garbage.

The attached patch should fix samba, if you're up for recompiling 
it.

-- 
Kelledin
"If a server crashes in a server farm and no one pings it, does 
it still cost four figures to fix?"






More information about the Discuss mailing list