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.
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?
ionthegeek
2 Intern
•
2049 Posts
1268
0
Posted January 15th, 2013 08:00
Wow, thank you for this very thorough write-up!