SAPInst May Run Slowly on Windows 2012 or Windows 2012 R2

SAPInst May Run Slowly on Windows 2012 or Windows 2012 R2

Rate This
  • Comments 1

Almost all SAP products are now supported on Windows 2012 and SAP are in the process of certifying Windows 2012 R2.  Windows 2012 introduced a new feature called SMB 3.0.  Windows 2012 R2 introduces SMB 3.02 with support for running SQL Server over SMB.  SMB 3.0 features may cause SAPInst to run slowly. There is a SAP Note and a Microsoft KB article that describes the issue and how to resolve it. 

1.        How to Resolve the Issue?

Before running SAPInst on Windows 2012 or Windows 2012 R2 read SAP Note 1823833 - Accessing shares via SMB3.0 can result in long waiting times and Microsoft “Delayed error message when you try to access a shared folder that no longer exists in Windows Server 2012”.  

2.        What is SMB 3.0 and Why Can This Cause SAPInst to Become Slow?

Server Message Block (SMB) was a protocol first developed by IBM and has been greatly enhanced by Microsoft.  SMB 3.0 protocol released with Windows 2012 is a major enhancement over previous SMB implementations.  One of the major enhancements in SMB 3.0 is Transparent Failover and node fault tolerance.  Transparent failover allows SMB 3.0 sessions to preserve file handles and other attributes even when a SMB share fails over from one host to another.  SMB 3.0 uses retry and reroute logic to allow a SMB 3.0 client to reconnect to a SMB 3.0 share.  This can lead to up to 30-60 seconds per retry.  SAPInst does many calls to the \\<local hostname>\SAPMNT or SAPLOC during installation in order to test if an SAP application instance is installed.

3.        Exact Details of the Change?

The change required is a simple registry change. 

1.      Swipe in from the right edge of the screen, and then tap Search. Or, if you are using a mouse, point to the lower-right corner of the screen, and then click Search.

2.      In the search box, type regedit, and then tap or click regedit. lapse this imageExpand this

If you are prompted to enter an administrator password, type the password. If you are prompted to provide confirmation, provide confirmation.

3.      Locate and then tap or click the following registry subkey:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanWorkStation\Parameters

4.      On the Edit menu, point to New, and then tap or click DWORD Value.

5.      Type DisableCARetryOnInitialConnect.

6.      Press and hold or right-click DisableCARetryOnInitialConnect, and then tap or click Modify.

7.      In the Value data box, type 0, and then tap or click OK.

Exit Registry Editor.

4.        Can the Registry Change Be Automated?

Yes, it is possible to make the change into a .REG file and merge this with the registry on each server.

1.            Open Notepad

2.            Paste in the following text

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters]

"DisableCARetryOnInitialConnect"=dword:00000000

3.            Save file as “KB 2820470 Reg Change.REG”

4.            Copy “KB 2820470 Reg Change.REG” to each server

5.            Right click on file and select “Merge”

Another option is to use PowerShell commands

1.            Open Powershell

2.            Paste the following command

New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters -Name DisableCARetryOnInitialConnect -PropertyType dword -value "0"

Another option is to use a Group Policy as explained in this blog. 

Important Notes, Blogs, Whitepapers and Links

http://blogs.technet.com/b/josebda/

http://blogs.technet.com/b/windowsserver/archive/2012/04/19/smb-2-2-is-now-smb-3-0.aspx

http://blogs.technet.com/b/josebda/archive/2012/10/06/windows-server-2012-file-servers-and-smb-3-0-simpler-and-easier-by-design.aspx

http://blogs.technet.com/b/josebda/archive/2013/10/02/windows-server-2012-r2-which-version-of-the-smb-protocol-smb-1-0-smb-2-0-smb-2-1-smb-3-0-or-smb-3-02-you-are-using.aspx

https://communities.netapp.com/community/netapp-blogs/cloud/blog/2013/06/11/clustered-ontap-82-with-windows-server-2012-r2-and-system-center-2012-r2-innovation-in-storage-and-the-cloud

http://blog.nigelpoulton.com/smb-3-0-best-feature-of-windows-server-2012/

http://blogs.technet.com/b/clausjor/archive/2012/06/07/smb-transparent-failover-making-file-shares-continuously-available.aspx

http://technet.microsoft.com/en-us/library/dd315394.aspx

http://blogs.technet.com/b/askds/archive/2007/08/14/deploying-custom-registry-changes-through-group-policy.aspx

Links and content in this blog are used under Fair Use guidelines

Leave a Comment
  • Please add 1 and 8 and type the answer here:
  • Post
  • The SAP note indicates that this may be a problem on systems with failover clustering.  Does this also apply to 2012 systems without failover clustering?

Page 1 of 1 (1 items)