Thursday 20 June 2013

Distribution Manager in System Center Configuration Manager 2007 is blocked by checking distribution points and packages


Distribution Manager in System Center Configuration Manager 2007 is blocked by checking distribution points and packages

After you do a site reset by using System Center Configuration Manager (ConfigMgr) set up or you do a hotfix installation with a site reset, Distribution Manager needs hours to check following things if the sites have many distribution points and thousands of packages on the distribution points.

Cause

Cause 1




Setting SigURL / Setting HTTPUrl for every package on every distribution point.

 

The following is an example from DistMgr.LOG file:

 

1/27/2009 14:52:58          Setting HTTPUrl to http://JENSGOPALSRV001/SMS_DP_SMSPKGC$/HP100005/ for package HP100005 on DP \\JENSGOPALSRV001\SMSPKGC$           628 (0x0274)

1/27/2009 14:52:58          Setting SigURL to http://jensgopalsrv001/SMS_DP_SMSSIG$/HP100005.2.tar for package HP100005 on DP \\jensgopalsrv001\SMSSIG$          628 (0x0274)

1/27/2009 14:52:58          Setting HTTPUrl to http://JENSGOPALSRV001/SMS_DP_SMSPKGC$/HP100009/ for package HP100009 on DP \\JENSGOPALSRV001\SMSPKGC$           628 (0x0274)

1/27/2009 14:52:58          Setting SigURL to http://jensgopalsrv001/SMS_DP_SMSSIG$/HP100009.2.tar for package HP100009 on DP \\jensgopalsrv001\SMSSIG$          628 (0x0274)

 

Cause 2 



SMS_Site_Component_Manager creates a RESETISAPI.TRN in the INBOXES\DistMgr.BOX directory if a real site reset is initialized by ConfigMgr Setup / Hotfix Installation / "PREINST /StopSite" or a site upgrade happens.

 

Note Site Reset is initiated by via SHUTDOWN.TRN created in directory INBOXES\SiteComp.BOX, a Site Upgrade via RESETALL.TRN.

 

The following is an example of the DistMgr.LOG file:

 

1/27/2009 14:58:40          Found file resetisapi.trn, will try to upgrade SMS hidden file ISAPI on all BITS enabled Distribution Points   2892 (0x0B4C)

1/27/2009 14:58:40          for ["Display=\\jensgopalsrv001\"]MSWNET:["SMS_SITE=HP1"]\\jensgopalsrv001\, machine account is to be used     2892 (0x0B4C)

1/27/2009 14:58:40          target processor architecture is x86         2892 (0x0B4C)

1/27/2009 14:58:40          for ["Display=\\jensgopalsrv001\"]MSWNET:["SMS_SITE=HP1"]\\jensgopalsrv001\, machine account is to be used     2892 (0x0B4C)

1/27/2009 14:58:40          IISPortsList in the SCF is "80".      2892 (0x0B4C)

1/27/2009 14:58:40          IISSSLPortsList in the SCF is "443".             2892 (0x0B4C)

1/27/2009 14:58:40          IISWebSiteName in the SCF is "".              2892 (0x0B4C)

1/27/2009 14:58:40          IISSSLState in the SCF is 0.            2892 (0x0B4C)

1/27/2009 14:58:40          Virtual Directory SMS_DP_SMSPKGC$ for the physical path C:\SMSPKGC$ already exists.             2892 (0x0B4C)

1/27/2009 14:58:40          As this is an upgrade Virtual Directory SMS_DP_SMSPKGC$ will be updated with new properties.                2892 (0x0B4C)

1/27/2009 14:58:40          target processor architecture is x86         2892 (0x0B4C)

1/27/2009 14:58:41          Successfully created the virtual directory SMS_DP_SMSPKGC$ for the physical path C:\SMSPKGC$.                2892 (0x0B4C)

1/27/2009 14:58:41          Successfully added file extension C:\WINDOWS\system32\inetsrv\smsfileisapi.dll.          2892 (0x0B4C)

1/27/2009 14:58:41          for ["Display=\\jensgopalsrv001\"]MSWNET:["SMS_SITE=HP1"]\\jensgopalsrv001\, machine account is to be used     2892 (0x0B4C)

1/27/2009 14:58:41          IISPortsList in the SCF is "80".      2892 (0x0B4C)

1/27/2009 14:58:41          IISSSLPortsList in the SCF is "443".             2892 (0x0B4C)

1/27/2009 14:58:41          IISWebSiteName in the SCF is "".              2892 (0x0B4C)

1/27/2009 14:58:41          IISSSLState in the SCF is 0.            2892 (0x0B4C)

1/27/2009 14:58:41          CWmi::GetObject(): GetObject() failed. - 0x80070003     2892 (0x0B4C)

1/27/2009 14:58:41          Setting HTTPUrl to http://JENSGOPALSRV001/SMS_DP_SMSPKGC$/HP100005/ for package HP100005 on DP \\JENSGOPALSRV001\SMSPKGC$           2892 (0x0B4C)

1/27/2009 14:58:41          target processor architecture is x86         2892 (0x0B4C)

1/27/2009 14:58:41          for ["Display=\\jensgopalsrv001\"]MSWNET:["SMS_SITE=HP1"]\\jensgopalsrv001\, machine account is to be used     2892 (0x0B4C)

1/27/2009 14:58:41          IISPortsList in the SCF is "80".      2892 (0x0B4C)

1/27/2009 14:58:41          IISSSLPortsList in the SCF is "443".             2892 (0x0B4C)

1/27/2009 14:58:41          IISWebSiteName in the SCF is "".              2892 (0x0B4C)

1/27/2009 14:58:41          IISSSLState in the SCF is 0.            2892 (0x0B4C)

1/27/2009 14:58:41          Virtual Directory SMS_DP_SMSSIG$ for the physical path C:\SMSSIG$ already exists.      2892 (0x0B4C)

1/27/2009 14:58:41          As this is an upgrade Virtual Directory SMS_DP_SMSSIG$ will be updated with new properties. 2892 (0x0B4C)

1/27/2009 14:58:41          target processor architecture is x86         2892 (0x0B4C)

1/27/2009 14:58:41          Successfully created the virtual directory SMS_DP_SMSSIG$ for the physical path C:\SMSSIG$.  2892 (0x0B4C)

1/27/2009 14:58:41          Successfully added file extension C:\WINDOWS\system32\inetsrv\smsfileisapi.dll.          2892 (0x0B4C)

1/27/2009 14:58:41          for ["Display=\\jensgopalsrv001\"]MSWNET:["SMS_SITE=HP1"]\\jensgopalsrv001\, machine account is to be used     2892 (0x0B4C)

 

Note In both causes, the SMS_Site_Component_Manager creates a RESETISAPI.TRN.

 

Resolution

Resolution for Cause 1



This issue is addressed by hotfix KB956194. For more information about hotfix KB956194, see the following article in the Microsoft Knowledge Base:

 

956194 Distribution Manager in System Center Configuration Manager 2007 Service Pack 1 may require several hours after startup before it begins to process packages

 

Additionally, registry changes are necessary to disable the verification that Distribution Manager runs on distribution point properties at startup.

 

HKEY_LOCAL_MACHINE\Software\Microsoft\SMS\Components\SMS_DISTRIBUTION_MANAGER 

 

Create the following new value:

 

Name : DoNotVerifyDPPropertiesOnStartUp

Type : REG_DWORD

Value : 1

 

Note This will disable the verification that Distribution Manager runs on distribution point properties at startup.



 

If the DoNotVerifyDPPropertiesOnStartUp item does not exist or if its value is set to 0, Distribution Manager will verify distribution point properties during the startup process. If the value of the DoNotVerifyDPPropertiesOnStartUp item is set to 1, this verification behavior is  disabled.

 

With hotfix KB956194 and the registry changes completed, you should find only following line in the DistMGR.LOG file:

 

1/27/2009 14:57:43          Skip DP Properties Verification. 2892 (0x0B4C)

Resolution for Cause 2



You can prevent such a scan if you delete RESETISAPI.TRN before SMS_Distribution_Manager can pickup the file - rename distmgr.dll to distmgr.org before the site reset happens.

 

If the site reset finished by SMS_Site_Component_Manager and you have delete the TRN, rename back the DLL and restart SMS_EXECUTIVE.

 

Note You can upgrade SMS hidden file ISAPI on all BITS enabled distribution points for example over night by creating RESETISAPI.TRN in INBOXES\DistMgr.BOX directory.



No comments: