UNSOLVED

stewartk2

updated

14 years ago

S

stewartk2

20 Posts

2

18248

January 15th, 2013 07:00

MSSQL Backups failing in Avamar 6.0 after last patch cycle with avsql Error <9072>

After the last Windows patch cycle (Dec 2012), our SQL backups started to fail.  I found a quick fix, but it only worked for one night, then the jobs would fail again.  The error we were getting was:

2012-12-26 09:13:43 avsql Error <9072>: sqlconnectimpl_smo::get_installed_instance_list Microsoft.SqlServer.Management.Smo.FailedOperationException: An exception occurred in SMO while trying to manage a service. ---> Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException: Failed to retrieve data for this request. ---> System.Management.ManagementException: Invalid class

                Line 16:    at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)

                Line 52:    at SMO_GetInstances(UInt16* server, UInt16*** pinstances, UInt16*** perrors, Boolean include_clustered_servers)

                Line 55: 2012-12-26 09:13:43 avsql Error <7064>: No targets even after expansion!

After working with Avamar support, they suggested that we open a ticket with Microsoft.

Our Principal Admin started working on this, and found that

At 12:05 AM every night WMI runs a process reregister all its providers.  When it hits the SQL provider it chokes and throws Event ID: 4 with this message, “Error 0x8004100a encountered when trying to load MOF C:\PROGRAM FILES (X86)\MICROSOFT SQL SERVER\100\SHARED\SQLMGMPROVIDERXPSP2UP.MOF while recovering .MOF file marked with autorecover.”

He found that our SQL servers not exhibiting this behavior did not have WMI 3.0 installed.

And he found this at Microsoft:

http://support.microsoft.com/kb/2796086

Here's how he fixed the problem:

Avavmar SQL backups suddenly stop working.

Event Log on SQL server shows Event ID: 4, “Error 0x8004100a encountered when trying to load MOF C:\PROGRAM FILES (X86)\MICROSOFT SQL SERVER\100\SHARED\SQLMGMPROVIDERXPSP2UP.MOF while recovering .MOF file marked with autorecover.”  This will probably be in the 12:00AM - 2:00AM timeframe.

Manually running - mofcomp "%programfiles(x86)%\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof" resolves the problem but it returns the next day.

Check the following.

Is WMI Framework 3.0 (KB2506143) installed on the SQL Server?

Is Microsoft System Center Configuration Manger 2012 used to manage the system?

If both of these are true the problem is identified in Microsoft KB2796086,  http://support.microsoft.com/kb/2796086.

The fix is to edit the registry key: HKLM\SOFTWARE\Microsoft\CCM\CcmEval\NotifyOnly

Change the value from FALSE to TRUE

Then run:

mofcomp "%programfiles(x86)%\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"

to recompile the SQL Management Provider.

Service Pack 1 for Microsoft System Center Configuration Manager 2012 is supposed to fix the problem.

  • ionthegeek

    2 Intern

    •

    2049 Posts

    1268

    0

    Posted January 15th, 2013 08:00

    Wow, thank you for this very thorough write-up!

  • AKMyint1

    1 Message

    1268

    0

    Posted September 8th, 2013 20:00

    Is WMI Framework 3.0 (KB2506143) installed on the SQL Server?

    Is Microsoft System Center Configuration Manger 2012 used to manage the system?

    And no error at event log however the error code from avamar Error <9072>  was same.

    To my case it was fixed after recompiling

    mofcomp "%programfiles(x86)%\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof".


    Cheer!

  • BKaragoz

    2 Posts

    1270

    0

    Posted June 23rd, 2015 06:00

    thanks guys its worked as well,