Jump to content

Recommended Posts

Posted

Hi

 

My centos file server is the most stable part of my sysem but recently, out of the blue it's started playing up a little.

 

Samba seems to hang. Simply restarting the smb service doesn't do the trick, it needs to be shutdown twice- the first looks as if the smb and nmb services have been shut but the second time another smb service is shut down but not another nmb (I guess it was shut down the first time).

 

Once I've done this there's no probs for a few weeks until the same thing crops up. I'm just worried it'll happen when I'm not around at some point.

 

So what's up? Why the infrequentcy? I haven't changed anything and as there are no Y11 the system is a lot quiter. And why do I have to restart the smb service twice?

 

I don't see anything in the logs- any ideas?

 

Thanks

 

Phil

Posted

It sounds like some of the samba child threads are stuck with zombie status. You can verify this with 'ps'. Now while this might indicate a bug in samba (presumably you've checked for updates) it's more likely this is configuration issue or network related.

 

To troubleshoot this, we need more information. I'd first check how much detail you are logging. Check your 'log level' configuration setting in smb.conf. 1 is almost no logging where as 10 is everything.

 

Also, ensure the samba panic action script is enabled. This will email you whenever one of sambas child processes crashes. You need gdb, sambas debugging symbols and functional email to make this usable though.

Posted

OK after increasing the logging data and waiting for it to happen I have this to report:

 

Jun 26 14:39:40 byron kernel: KERNEL: assertion (tp->copied_seq == tp->rcv_nxt || (flags & (MSG_PEEK | MSG_TRUNC))) failed at net/ipv4/tcp.c (1348)

Jun 26 14:39:40 byron kernel: KERNEL: assertion (flags & MSG_PEEK) failed at net/ipv4/tcp.c (1284)

Jun 26 14:39:40 byron kernel: recvmsg bug: copied E37FE81B seq E37FE88D

 

Over and over again?

 

Any ideas? Samba is right up to date.

 

Thanks as always.

 

Phil

Posted
Well I'm suspecting its some sort of TCP offloading problem on the network card. It'd be nice to determine if it is, because you can report it as a bug and have it fixed. Which will benefit everyone.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...