[PLUG] Sudden Samba problem

Robert Kopp iconoklastic at yahoo.com
Fri Dec 21 06:02:42 UTC 2007



m0gely <m0gely at telestream.com> wrote:So you have two Windows machines and one Linux machine connected to a 
LAN and suddenly network resources for printers and file sharing are 
unavailable on one windows machine to the other two machines. Is that 
correct?

So far the question is what changed on the one Windows machine?

It happened following a system scan with Norton on the Windows machine. The use of smbclient on the command line revealed this:

linux-vom8:/home/robert #  smbclient //christine/My_Pictures
Password:
Domain=[CHRISTINE] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_INSUFF_SERVER_RESOURCES
linux-vom8:/home/robert #    

This can be caused by insufficient IRPStackSize in the Windows registry. Remember, the Windows computer can still browse Linux shares, so the problem is not bidirectional. Anyhow, I'm going to try this--  

IRPStackSize is not explicitly stated in this case, so it defaults to 15. MS explains how to increase it:   

The IRPStackSize parameter specifies the number of stack locations in I/O request packets (IRPs) that are used by Windows 2000 Server, by Windows Server 2003, and by Windows XP. You may have to increase this number for certain transports, for media access control (MAC) drivers, or for file system drivers. Each stack uses 36 bytes of memory for each receive buffer. This value is set in the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
The default value of the IRPStackSize parameter is 15. The range is from 11  (0xb hexadecimal) through 50 (0x32 hexadecimal).

If the subkey is not present, you can use Registry Editor to add the subkey. To do this, follow these steps:
1.    Click Start, click Run, type regedit, and then click OK.
2.    Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
3.    Click Edit, point to New, and then click DWORD Value.
4.    Type IRPStackSize, and then press ENTER to name the value.

Note Type IRPStackSize exactly as it is displayed. The value name is case sensitive.
5.    Click Edit, and then click Modify.
6.    In the Data Value box, type the value that is appropriate for the network, and then click OK.
If the problem persists after you complete this procedure, increase the value of IRPStackSize even more.




Robert "Tim" Kopp
http://analytic.tripod.com/


More information about the PLUG mailing list