<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SnapManager for SQL Server: Error Codes 0xc0040836 and 0xc00408d4 in Data Protection</title>
    <link>https://community.netapp.com/t5/Data-Protection/SnapManager-for-SQL-Server-Error-Codes-0xc0040836-and-0xc00408d4/m-p/35373#M8273</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've been encountering the following errors for one of our databases that utilizes SnapManager when a full backup is attempted.&amp;nbsp; The errors (in reverse chronological order) are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR style="padding-left: 30px;" /&gt;&lt;P style="padding-left: 30px;"&gt;Source: SnapManager for SQL Server&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;EventID: 311&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SnapManager for SQL Server online snapshot based full database backup failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Error Code: 0xc0040836 &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;The thread that prepares the backup timed out before preparing for snapshot creation.&lt;/P&gt;&lt;HR style="padding-left: 30px;" /&gt;&lt;P style="padding-left: 30px;"&gt;Source: SnapManager for SQL Server&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;EventID: 364&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;VDI operation failed for database 'DatabaseName' of on SQL Server 'InstanceName'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Error Code: 0xc00408d4 &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;The VDI backup thread received a termination request as a result of one or more SQL database backups failing, or the SnapDrive failing to prepare for snapshot creation.&lt;/P&gt;&lt;HR style="padding-left: 30px;" /&gt;&lt;P style="padding-left: 30px;"&gt;Source: MSSQL$PROD&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;EventID: 18210&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;BackupVirtualDeviceFile::PrepareToFreeze:&amp;nbsp; failure on backup device 'DeviceName'. Operating system error 995(The I/O operation has been aborted because of either a thread exit or an application request.).&lt;/P&gt;&lt;HR style="padding-left: 30px;" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This (Sharepoint) database is roughly 250GB in size split across 2 LUNs (a single 210GB Data file on the Data LUN and a single 40GB Log file on the Log LUN).&amp;nbsp; There are other databases on the instance as well that all backup without issue.&amp;nbsp; The largest of which is 330 GB (290GB Data file and 40GB Log file located on the same respective LUNs) so we're not seeing any correlation to size.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it looks like is happening is a timeout (default of 1800 seconds) is reached for the PrepareToFreeze command resulting in a backup failure.&amp;nbsp; I've found that the error codes above do not map to any MS specific error codes, so I have to assume this is an issue specific to the NetApp SnapManager tool (we're running 5.1) instead.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, this database &lt;STRONG&gt;was&lt;/STRONG&gt; being successfully backed up until just a few days ago, so it does not look to be related to a SnapManager configuration issue (per &lt;A _jive_internal="true" href="https://community.netapp.com/thread/1784" target="_blank"&gt;http://communities.netapp.com/thread/1784&lt;/A&gt;), nor can I find any evidence it's related to a problem with the SQL index services on the database.&amp;nbsp; Also, no new databases were added so we're not running into a max number of DBs per LUN (as per &lt;A _jive_internal="true" href="https://community.netapp.com/thread/4764" target="_blank"&gt;http://communities.netapp.com/thread/4764&lt;/A&gt;) either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The database engine is a clustered SQL Server 2008 R2, Enterprise Instance.&amp;nbsp; The OS is Windows Server 2008 R2 Enterprise, 72GB RAM, 64bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John Eisbrener&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 06:46:28 GMT</pubDate>
    <dc:creator>JEISBRENERQBE</dc:creator>
    <dc:date>2025-06-05T06:46:28Z</dc:date>
    <item>
      <title>SnapManager for SQL Server: Error Codes 0xc0040836 and 0xc00408d4</title>
      <link>https://community.netapp.com/t5/Data-Protection/SnapManager-for-SQL-Server-Error-Codes-0xc0040836-and-0xc00408d4/m-p/35373#M8273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've been encountering the following errors for one of our databases that utilizes SnapManager when a full backup is attempted.&amp;nbsp; The errors (in reverse chronological order) are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR style="padding-left: 30px;" /&gt;&lt;P style="padding-left: 30px;"&gt;Source: SnapManager for SQL Server&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;EventID: 311&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;SnapManager for SQL Server online snapshot based full database backup failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Error Code: 0xc0040836 &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;The thread that prepares the backup timed out before preparing for snapshot creation.&lt;/P&gt;&lt;HR style="padding-left: 30px;" /&gt;&lt;P style="padding-left: 30px;"&gt;Source: SnapManager for SQL Server&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;EventID: 364&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;VDI operation failed for database 'DatabaseName' of on SQL Server 'InstanceName'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Error Code: 0xc00408d4 &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;The VDI backup thread received a termination request as a result of one or more SQL database backups failing, or the SnapDrive failing to prepare for snapshot creation.&lt;/P&gt;&lt;HR style="padding-left: 30px;" /&gt;&lt;P style="padding-left: 30px;"&gt;Source: MSSQL$PROD&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;EventID: 18210&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;BackupVirtualDeviceFile::PrepareToFreeze:&amp;nbsp; failure on backup device 'DeviceName'. Operating system error 995(The I/O operation has been aborted because of either a thread exit or an application request.).&lt;/P&gt;&lt;HR style="padding-left: 30px;" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This (Sharepoint) database is roughly 250GB in size split across 2 LUNs (a single 210GB Data file on the Data LUN and a single 40GB Log file on the Log LUN).&amp;nbsp; There are other databases on the instance as well that all backup without issue.&amp;nbsp; The largest of which is 330 GB (290GB Data file and 40GB Log file located on the same respective LUNs) so we're not seeing any correlation to size.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it looks like is happening is a timeout (default of 1800 seconds) is reached for the PrepareToFreeze command resulting in a backup failure.&amp;nbsp; I've found that the error codes above do not map to any MS specific error codes, so I have to assume this is an issue specific to the NetApp SnapManager tool (we're running 5.1) instead.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, this database &lt;STRONG&gt;was&lt;/STRONG&gt; being successfully backed up until just a few days ago, so it does not look to be related to a SnapManager configuration issue (per &lt;A _jive_internal="true" href="https://community.netapp.com/thread/1784" target="_blank"&gt;http://communities.netapp.com/thread/1784&lt;/A&gt;), nor can I find any evidence it's related to a problem with the SQL index services on the database.&amp;nbsp; Also, no new databases were added so we're not running into a max number of DBs per LUN (as per &lt;A _jive_internal="true" href="https://community.netapp.com/thread/4764" target="_blank"&gt;http://communities.netapp.com/thread/4764&lt;/A&gt;) either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The database engine is a clustered SQL Server 2008 R2, Enterprise Instance.&amp;nbsp; The OS is Windows Server 2008 R2 Enterprise, 72GB RAM, 64bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John Eisbrener&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:46:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SnapManager-for-SQL-Server-Error-Codes-0xc0040836-and-0xc00408d4/m-p/35373#M8273</guid>
      <dc:creator>JEISBRENERQBE</dc:creator>
      <dc:date>2025-06-05T06:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: SnapManager for SQL Server: Error Codes 0xc0040836 and 0xc00408d4</title>
      <link>https://community.netapp.com/t5/Data-Protection/SnapManager-for-SQL-Server-Error-Codes-0xc0040836-and-0xc00408d4/m-p/35377#M8274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For those of you stumbling across this, the error ended up being generated as a result of the SnapBackup and a &lt;A href="http://technet.microsoft.com/en-us/library/cc263166%28office.12%29.aspx" target="_blank"&gt;Sharepoint farm backup&lt;/A&gt; operation running at the same time.&amp;nbsp; This is only conjecture, but we believe that the VDI PrepareToFreeze call was waiting for the Sharepoint farm backup operation to finish before it would return a success and proceed with the VSS backup.&amp;nbsp; However the alloted (default) 30 minute timeout of this call was reached which triggered the errors reported in my intial post.&amp;nbsp; Once we tracked down these conflicting backup operations, we rescheduled things to no longer interfere and have yet to experience this issue again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps someone else down the road.&amp;nbsp; Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John Eisbrener&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 20:01:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/SnapManager-for-SQL-Server-Error-Codes-0xc0040836-and-0xc00408d4/m-p/35377#M8274</guid>
      <dc:creator>JEISBRENERQBE</dc:creator>
      <dc:date>2011-09-21T20:01:41Z</dc:date>
    </item>
  </channel>
</rss>

