Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-15-2009, 05:50 PM   #1
LQ Newbie
Registered: Jul 2009
Posts: 8

Rep: Reputation: 0
Windows Server 2003 clients periodically unable to read CIFS shares

Hi forum,

Here are the symptoms:

Periodically, and especially when our dual-quad-core file servers are under load, the Windows Server 2003 systems report:
"Insufficient system resources exist to complete the requested service"
With log level turned up to 6 in smb.conf, the only thing logged at the exact moment of failure is:
@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^v
(no exaggeration, it's all At's and Carat's and an arbitrary seeming number of 'em. A Google search for even the phonetic 'at'+'carat' doesn't return a thing...)
...which leads me to many various docs, including a KB which indicates NTBackup has such and such an issue with the blob of data that certain apps send instead of chunking it out, and to assuage the issue one can simply increase PagedPoolSize etc, and at this point I'm near to insane with the babysitting and restarting samba when my monitors report they can't get the directory listing any longer.

Configuration is fairly simple. Here's my smb.conf sans anything that might get me in trouble:
        log file = /var/log/samba/%m.log
        log level = 3
        socket options = TCP_NODELAY SO_RCVBUF=8162 SO_SNDBUF=8162 IPTOS_LOWDELAY
        smb ports = 445
        oplocks = no
        dns proxy = yes
        disable netbios = yes
        server string = SATA04
        workgroup = TPV
        security = SHARE
        max log size = 50
        unix extensions = no
        local master = no
        os level = 0
        load printers = no
        map to guest = bad user
        deadtime = 1 some share definitions which basically look like:
        path = /some/path
        force directory mode = 777
        force create mode = 777
        comment = This is a comment
        create mode = 777
        directory mode = 777
        write list = @writers
        guest ok = yes
DNS is functional, CentOS is up to date on one system, but the same issue occurs on a RHEL4 system with a completely different version of samba, so I guess the fact that CentOS is current is immaterial.

I've done tcpdump's and captured the packets that are being transmitted at the time of the failure between the linux and windows systems and there are no errors (like invalid checksums, or otherwise transport issues).

Thanks in advance...

Old 07-15-2009, 05:54 PM   #2
LQ Newbie
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Just as an additional bit, I just had the issue and tested from Windows 2000 Server (sp4, up to date, blah, blah) and the issue occurs there too.

Old 07-15-2009, 06:04 PM   #3
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
You might get some useful information from sar. It is in the sysstats package. Once you install sar you have got to configure it to collect data on a regular basis, such as every ten minutes. It will keep enormous amounts of data about every little thing going on in the kernel. You have to tell it to do that. The default configuration may be nearly useless on your distribution; it is on mine.

Once you have sar data collector running it should provide a really great snapshot of system resources at the time of the next failure. You may have to be clever about what you ask sar to tell you. It has lots of parameters because it can show you lots of different things.

I would first suspect that the insufficient resources could be memory or network buffers. Fixing one of those could require you to recompile the kernel.

Keep us up to date on this. It sounds really interesting.

There may be useful information at I don't know.

Last edited by stress_junkie; 07-15-2009 at 06:06 PM.
Old 08-10-2009, 10:53 AM   #4
LQ Newbie
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up

Just to follow up on this post:

By changing the following, I have been able to reduce the amount we are seeing this particular issue 99%.

security = user
encrypt passwords = yes
bind interfaces only = yes
interfaces = ip.of.this.system

#Although the next two were already present in my config, I changed the system to use a RO account and an RW account. {shrugs} Not sure if it has anything to do with the error going away, but it does control write access...
guest account = roaccount
map to guest = bad user


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash script to read .txt files on a remote Windows 2003 R2 server via FTP laurens Linux - Newbie 25 05-15-2009 07:01 AM
CIFS Permissions mapping from Linux to windows shares maximus_gr Linux - Server 0 03-18-2009 12:40 PM
with linux pptp unable to establish a tunnel to windows 2003 server kapsikum Linux - Networking 1 02-05-2009 04:15 PM
Linux to Windows 2003 AD, unable to ssh to server gambler1025 Linux - Server 2 02-14-2007 02:15 PM
Cant Access Windows 2003 Server Shares Thru Samba tobias_r33per Linux - Software 4 05-22-2004 11:54 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration