Avamar:Windows VSS 备份失败,并显示“代码0x80070005访问被拒绝”错误消息
Summary: Windows 卷影拷贝服务 (VSS) 备份失败,并显示“代码0x80070005访问被拒绝”错误消息。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
Windows VSS 备份失败
Windows VSS 系统状态备份失败,并显示类似于以下内容的错误消息:
2015-12-11 07:17:22 avvss Error <8336>: VSS exception code 0x80070005 thrown creating object - 'code 0x80070005: Access is denied'
2015-12-11 07:17:22 avvss Error <0000>: Failed to allocate VSS client, exiting
- 由于同一客户端上也会发生 Avamar SQL 备份,因此 Avagent 服务可能配置为使用 NT 域帐户运行。
- 尚未在 SQL Server Management Studio 中向 NT Authority/SYSTEM 帐户授予 sysadmin 角色,而 sysadmin 角色是备份 SQL 数据库所必需的。
Cause
Windows VSS 备份失败的根本原因
失败并显示“Access is denied”错误的根本原因是使用 NT 域帐户配置了备份代理 (Avagent) 服务。此帐户没有足够的权限执行 VSS 卷影拷贝作。
默认情况下,Avagent 服务配置为使用具有必要权限的本地 SYSTEM 帐户运行。但是,当服务配置为使用 NT 域帐户运行时,它缺少所需的权限,从而导致“拒绝访问”错误。
与此问题关联的特定错误代码为 0x80070005,表示访问被拒绝错误。
Error code: 0x80070005
Error message: Access is denied
成因
- 用于配置 Avagent 服务的 NT 域帐户在 SQL Server Management Studio 中没有 sysadmin 角色,而 sysadmin 角色是备份 SQL 数据库所必需的。
- Avamar SQL 备份也发生在同一客户端上,这可能与 Avagent 服务的配置相关。
Resolution
解决 Windows VSS 备份失败问题
要解决 Windows VSS 备份失败问题,请执行以下步骤:
- 在 Windows 客户端上打开 regedit 以编辑注册表,并按照最佳实践更改注册表。
- 浏览到 HKLM/System/CurrentControlSet/Services/VSS 注册表项。
- 右键单击 VssAccessControl 项并添加新的 DWORD(32 位)值。
- 使用 Avagent 服务帐户的域\用户名对其进行命名,并将值设置为 1。
- 退出注册表编辑器(无需重新启动)。
完成上述步骤后,通过检查备份日志中是否有与 VSS 备份相关的任何错误消息,验证问题是否已成功解决。
除了 Windows 注册表编辑器 (regedit) 之外,此解决方案不需要任何特定的工具或软件。
在编辑注册表之前验证您的权限,并遵循最佳实践以防止出现问题。
如果编辑注册表作不正确,可能会导致系统不稳定。请谨慎行事,并考虑在进行更改之前备份注册表。
Affected Products
Avamar, Avamar Client for WindowsArticle Properties
Article Number: 000025623
Article Type: Solution
Last Modified: 13 May 2025
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.