ASR Agent or other non-component VSS Backup fails for a server hosting SQL Server 2008 R2
Article
This article helps you work around the problem in which a non-component VSS Backup, such as ASR Agent, fails for a server that is hosting SQL Server 2008 R2.
Original product version: SQL Server 2008, SQL Server 2008 R2 Original KB number: 4504103
Symptoms
Consider the following scenario:
You are using Microsoft SQL Server 2008 or SQL Server 2008 R2.
You start a non-component VSS Backup of a volume that is hosting SQL Server files. For example, you use Microsoft Azure Site Recovery Agent.
In this situation, you notice that the VSS Backup fails because of a SQLServerWriter error even though the SQL Server error log reports a successful Backup.
SQLServerWriter reports the following result in the 'vssadmin list writers' output:
The previous state or error is very generic. Therefore, it doesn't provide enough information to let you selectively identify a given scenario. This situation is significant in the context of non-component backups on SQL Server 2008 or R2.
Additionally, a SQLServerWriter trace reports the following:
[-,0x00c390:0xbb80:0x0eba42eb] sqlwriter.yukon\sqllib\FileName(LineNumber): FrozenDatabase::GetNextPartialInfo: VDI::GetCommand failed with error 0x8077000e
[-,0x00c390:0xbb80:0x0eba42eb] sqlwriter.yukon\sqlwriter\FileName(LineNumber): STDMETHODCALLTYPE CSqlWriter::OnPostSnapshot: Failed to pick up file information from database servers . hr = 0x8077000e
[-,0x00c390:0xbb80:0x0eba42eb] ENTER {Snapshot::~Snapshot}:
Workaround
There is no fix for SQL Server 2008 or SQL Server 2008 R2.
This issue was fixed in the initial release (RTM) of SQL Server 2012. Because SQLServerWriter is a shared component, upgrading the shared components with a later major version of SQL Server replaces SQL Server 2008 or SQL Server 2008 R2 SQLServerWriter with a newer version that contains the fix.
In cases in which SQL Server 2008 or SQL Server 2008 R2 is experiencing this issue, we suggest that you install a free edition of a recent SQL Server version, such as SQL Server Express Edition. (See the More information section for the exact version to use, depending on the version of operating system). To do this, select Upgrade shared features only on the Select Instance page of the SQL Server Express installation wizard.
This method upgrades all the shared components to the SQL Server version that is being used. This means that the same SQL Server VSS Writer service that was previously running the 2008 or 2008 R2 version of the writer is now running the more recent SQL Server version from SQL Express. The more recent version is backward compatible.
SQL Server 2016 and SQL Server 2017 Express Edition require Windows Server 2012 or later, or Windows 8 or later.
If you are using Windows Server 2008 or Windows Server 2008 R2 together with SQL Server 2008 or SQL Server 2008 R2, you can use SQL Server 2014 Service Pack 3 (SP3) Express Edition to upgrade the shared components: Download Microsoft SQL Server 2014 SP3 Express.
When you upgrade the shared components, all the sub-components are upgraded in addition to SQLServerWriter. For example: Integration Services, Master Data Services (MDS), SQL Server Management Studio (SSMS), SQL Server Data Tools (SSDT), and SQL Server Books Online are upgraded.
Another workaround, to upgrade the shared components and to avoid the issue is to install a dummy SQL Express instance of a later major version. When you install a later major version of SQL Server instance, it upgrades the shared components as well. You can later disable or uninstall the dummy instance. However, the cleanest approach is to upgrade the shared components.
You learn how to select appropriate backup solutions for Azure workloads. You also learn how to select appropriate disaster recovery options for these workloads.
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.