Veeam Backup使用相关问题汇总

问题1

备份到SMB存储报错,提示“Incorrect function. Agent failed to process method {ReFs.SetFileIntegrity}”

解决方法
定位到注册表HKEY_LOCAL_MACHINE\SOFTWARE\Veeam\Veeam Backup and Replication
新建DOWRD值,名称UseCifsVirtualSynthetic,数值为0

问题2

恢复实例到ESXi时报错,提示以下错误:
1. Error: Unable to check if vPower NFS is mounted on the host
2. Failed to add NFS datastore for NFS host
3. Failed to mount NFS volume

解决方法
检查是否有其他服务占用了NFS端口
Get-Process -Id (Get-NetTCPConnection -LocalPort 111).OwningProcess

问题3

使用Agent备份时报错,提示:

2022/8/7 1:21:08 :: Creating VSS snapshot Error: Failed to create snapshot: Backup job failed.
Cannot create a shadow copy of the volumes containing writer's data.
A VSS critical writer has failed. Writer name: [SqlServerWriter]. Class ID: [{a65faa63-5ea8-4ebc-9dbd-a0c4db26912a}]. Instance ID: [{27cb112f-ca7c-4875-8f90-96f6ac42b218}]. Writer's state: [VSS_WS_FAILED_AT_PREPARE_SNAPSHOT]. Error code: [0x800423f4].

Eventlog报错:

Sqllib 错误: 调用 ICommandText::Execute 时遇到 OLEDB 错误。hr = 0x80040e14。 SQLSTATE: 42000, Native Error: 3013
Error state: 1, Severity: 16
Source: Microsoft SQL Server Native Client 11.0
Error message: BACKUP DATABASE 正在异常终止。
SQLSTATE: 42000, Native Error: 18210
Error state: 1, Severity: 16
Source: Microsoft SQL Server Native Client 11.0
Error message: BackupVirtualDeviceSet::AllocateBuffer: 在备份设备 '{C6E9D69C-7DE4-46A2-8D1D-546DB7A70318}720' 上发生 故障。操作系统错误 995(由于线程退出或应用程序请求,已中止 I/O 操作。)。

解决方法
使用vssadmin list writers发现以下错误

写入程序名: 'SqlServerWriter'
   写入程序 ID: {a65faa63-5ea8-4ebc-9dbd-a0c4db26912a}
   写入程序实例 ID: {01db3075-d98f-46de-ab9e-7f8fdd59fbd7}
   状态: [8] 失败
   上一个错误: 不可重试的错误

修改SQLServer服务器属性,处理器-最大工作线程数为3000

问题4

Windows2008使用Agent备份失败,提示

2024/6/6 23:35:07 :: Error: Exception of type 'Veeam.Backup.AgentProvider.AgentClosedException' was thrown

解决方法
升级Veeam Server到12.0.0.1420 P20230412或以上版本,然后再升级Agent版本。如果官方的升级Patch无法安装,可以备份配置,直接重装新版本

Agent、Backup Transport、Installer Service安装包路径

Agent
C:\ProgramData\Veeam\Agents

Backup Transport、Installer Service
C:\Program Files\Veeam\Backup and Replication\Backup\Packages

来源:
https://forums.veeam.com/microsoft-hyper-v-f25/error-incorrect-function-agent-failed-to-process-method-refs-setfileintegrity-t68754.html

https://www.veeam.com/kb1055

https://forums.veeam.com/veeam-agent-for-windows-f33/creating-vss-snapshot-error-t44472.html

https://www.veeam.com/kb4419