` Printed Icetips Article

Icetips Article



Par2: Opportunitic locking in Vista and Server 2008
2009-06-22 -- Richard Dafler
 
> The situation with Opslocks and Windows 2008 / Vista is ambiguous to say the 
> least.
> 
> If you checkout the MSDN entries for this you'll find the statement that 
> Oplocks cannot be disabled on Vista based machines
> But it then goes on to state that doing so (ie disabling Oplocks) will cause 
> Offline Files to fail.
> Work that one out VBG
> 
> We put all the 'old' Oplocks setting into the Registry anyway on the basis 
> that if Vista OSs cannot turn Oplocks off they will be ignored.
> 
> As I understand it SMB is dependant on both the server and the workstation.
> So if you have a Vista based server AND Vista based workstations - SMB 2.0 
> will be used.
> However if you have a Vista based server with XP (or earlier) workstations, 
> then SMB will downgrade to 1.1 .

We have found the same, BUT, have also found, ...

http://www.petri.co.il/how-to-disable-smb-2-on-windows-vista-or-server-2008.htm

on the client machines run the following from the command line,....

sc config lanmanworkstation depend=  bowser/mrxsmb10/nsi
sc config mrxsmb20 start=  disabled

Note: that's a double space after the equal sign.  And, it really says 
"bowser"  After you run these there's a dependency for SMB2 that disappears 
for the bowser service.  Not sure if a reboot is necessary, but can't hurt.

On the 2008 Server set
HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters

Add a new REG_DWORD kewy with the name of "Smb2" (without quotation marks)
Value Name: Smb2
Value Type: REG_DWORD
0 = disabled
1 = enabled

Reboot the server.

We finished up about an hour ago.  So far so good.

Bill Russell adds:
We just changed our Windows Server 2003 out for Windows Server 2008 -
wish we hadn't. 2008 is slow for some reason that I haven't completely
figured out yet.

You can force 2008 to use SMB 1.0 by changing a registry entry (which
I have done - helped a little). The entry is:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters.

Locate and select that key. Add a new DWORD (32-bit) value. Name the
value "SMB2" (without the quotation marks - but you know that ).
Set the value to 0. Reboot server.



Printed November 21, 2024, 7:27 am
This article has been viewed/printed 35222 times.