+ Post New Thread
Results 1 to 12 of 12
*nix Thread, intermittent samba hang- needs double restart? in Technical; Hi My centos file server is the most stable part of my sysem but recently, out of the blue it's ...
  1. #1
    philjones2000's Avatar
    Join Date
    Mar 2006
    Location
    Pool, Cornwall
    Posts
    137
    Thank Post
    52
    Thanked 8 Times in 4 Posts
    Rep Power
    20

    intermittent samba hang- needs double restart?

    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

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: intermittent samba hang- needs double restart?

    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.

  3. #3
    philjones2000's Avatar
    Join Date
    Mar 2006
    Location
    Pool, Cornwall
    Posts
    137
    Thank Post
    52
    Thanked 8 Times in 4 Posts
    Rep Power
    20

    Re: intermittent samba hang- needs double restart?

    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

  4. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: intermittent samba hang- needs double restart?

    Hmm, what network card do you have?

  5. #5
    philjones2000's Avatar
    Join Date
    Mar 2006
    Location
    Pool, Cornwall
    Posts
    137
    Thank Post
    52
    Thanked 8 Times in 4 Posts
    Rep Power
    20

    Re: intermittent samba hang- needs double restart?

    It's a intel 82557/8/9 ethernet pro 100...

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: intermittent samba hang- needs double restart?

    Which driver are you using?

  7. #7
    philjones2000's Avatar
    Join Date
    Mar 2006
    Location
    Pool, Cornwall
    Posts
    137
    Thank Post
    52
    Thanked 8 Times in 4 Posts
    Rep Power
    20

    Re: intermittent samba hang- needs double restart?

    What's the best way of finding this out? As far as i know i am using the ones that came with fedora... (I got the distro wrong in my first post)

    Phil

  8. #8

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: intermittent samba hang- needs double restart?

    'lsmod' will tell you what drivers are loaded. It'll be either eepro100 or e100.

  9. #9
    philjones2000's Avatar
    Join Date
    Mar 2006
    Location
    Pool, Cornwall
    Posts
    137
    Thank Post
    52
    Thanked 8 Times in 4 Posts
    Rep Power
    20

    Re: intermittent samba hang- needs double restart?

    its the e100

  10. #10

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: intermittent samba hang- needs double restart?

    ok, try the eepro100 driver instead.

  11. #11
    philjones2000's Avatar
    Join Date
    Mar 2006
    Location
    Pool, Cornwall
    Posts
    137
    Thank Post
    52
    Thanked 8 Times in 4 Posts
    Rep Power
    20

    Re: intermittent samba hang- needs double restart?

    Thanks for your help Geoff. I'll switch them tonight.

    Although there is another network card installed on that machine- maybe i should ditch the intel one totally?

  12. #12

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: intermittent samba hang- needs double restart?

    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.

SHARE:
+ Post New Thread

Similar Threads

  1. Clients hang at logon
    By Newton in forum Windows
    Replies: 25
    Last Post: 28th November 2007, 11:16 AM
  2. Intermittent Network
    By mcowley in forum Wireless Networks
    Replies: 22
    Last Post: 11th October 2007, 08:25 AM
  3. Log-off Hang
    By sqdge in forum Windows
    Replies: 6
    Last Post: 16th May 2007, 12:40 PM
  4. Double Entendres
    By marco84 in forum General Chat
    Replies: 1
    Last Post: 26th March 2007, 06:36 PM
  5. CC3 Workstations seem to hang on logoff
    By Mintsoft in forum Windows
    Replies: 3
    Last Post: 27th February 2006, 03:33 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •