排查 Microsoft Azure 恢复服务 (MARS) 代理问题Troubleshoot the Microsoft Azure Recovery Services (MARS) agent

本文介绍如何解决在配置、注册、备份和还原期间可能会出现的错误。This article describes how to resolve errors you might see during configuration, registration, backup, and restore.

基本故障排除Basic troubleshooting

我们建议在开始排查 Microsoft Azure 恢复服务 (MARS) 代理问题之前检查以下各项:We recommend that you check the following before you start troubleshooting Microsoft the Azure Recovery Services (MARS) agent:

提供的保管库凭据无效Invalid vault credentials provided

错误消息:提供的保管库凭据无效。Error message: Invalid vault credentials provided. 该文件已损坏,或者没有与恢复服务关联的最新凭据。The file is either corrupted or does not have the latest credentials associated with recovery service. (ID:34513)(ID: 34513)

原因Cause 建议的操作Recommended actions
保管库凭据无效Vault credentials aren't valid

保管库凭据文件可能已损坏或过期。Vault credential files might be corrupt or might have expired. (例如,它们可能是在注册时的 48 以前下载的。)(For example, they might have been downloaded more than 48 hours before the time of registration.)
请从 Azure 门户上的恢复服务保管库下载新凭据。Download new credentials from Recovery Services vault on the Azure portal. (请参阅下载 MARS 代理部分中的步骤 6。)然后相应地执行以下步骤:(See step 6 in the Download the MARS agent section.) Then take these steps, as appropriate:
  • 如果已安装并注册 MARS,请打开 Microsoft Azure 备份代理 MMC 控制台,然后在“操作”窗格中选择“注册服务器”,以使用新凭据完成注册。**** ****If you've already installed and registered MARS, open the Microsoft Azure Backup Agent MMC console and then select Register Server in the Actions pane to complete the registration with the new credentials.
  • 如果新的安装失败,请尝试使用新凭据重新安装。If the new installation fails, try reinstalling with the new credentials.
注意:如果已下载多个保管库凭据文件,在接下来的 48 小时,只有最新文件才有效。Note: If multiple vault credential files have been downloaded, only the latest file is valid for the next 48 hours. 我们建议下载新的保管库凭据文件。We recommend that you download a new vault credential file.
代理服务器/防火墙正在阻止注册Proxy server/firewall is blocking registration
or
未建立 Internet 连接No internet connectivity

如果计算机或代理服务器限制了 Internet 连接,并且你无法确保能够访问所需的 URL,则注册将会失败。If your machine or proxy server has limited internet connectivity and you don't ensure access for the necessary URLs, the registration will fail.
请执行以下步骤:Take these steps:
  • 与 IT 团队协作,确保系统已建立 Internet 连接。Work with your IT team to ensure the system has internet connectivity.
  • 如果没有代理服务器,请确保在注册代理时不要选择代理选项。If you don't have a proxy server, ensure the proxy option isn't selected when you register the agent. 检查代理设置Check your proxy settings.
  • 如果你使用了防火墙/代理服务器,请与网络团队协作,确保这些 URL 和 IP 地址能够访问:If you do have a firewall/proxy server, work with your networking team to ensure these URLs and IP addresses have access:

    URLURLs
    www.msftncsi.com
    .Microsoft.com.Microsoft.com
    .WindowsAzure.com.WindowsAzure.com
    .partner.microsoftonline.cn.partner.microsoftonline.cn
    .chinacloudapi.cn.chinacloudapi.cn
    IP 地址IP addresses
    20.190.128.0/1820.190.128.0/18
    40.126.0.0/1840.126.0.0/18
完成上述故障排除步骤后,再次尝试注册。Try registering again after you complete the preceding troubleshooting steps.

如果通过 Azure ExpressRoute 进行连接,请确保按照 Azure ExpressRoute 支持中所述内容配置设置。If your connection is via Azure ExpressRoute, make sure the settings are configured as described in Azure ExpressRoute support.
防病毒软件正在阻止注册Antivirus software is blocking registration 如果你在服务器上安装了防病毒软件,请将所需的排除规则添加到这些文件和文件夹的防病毒扫描项中:If you have antivirus software installed on the server, add necessary exclusion rules to the antivirus scan for these files and folders:
  • CBengine.exeCBengine.exe
  • CSC.exeCSC.exe
  • scratch 文件夹。The scratch folder. 其默认位置为 C:\Program Files\Microsoft Azure Recovery Services Agent\Scratch。Its default location is C:\Program Files\Microsoft Azure Recovery Services Agent\Scratch.
  • bin 文件夹 C:\Program Files\Microsoft Azure Recovery Services Agent\Bin。The bin folder at C:\Program Files\Microsoft Azure Recovery Services Agent\Bin.

其他建议Additional recommendations

  • 转到 C:/Windows/Temp,检查是否存在超过 60,000 或 65,000 个扩展名为 .tmp 的文件。Go to C:/Windows/Temp and check whether there are more than 60,000 or 65,000 files with the .tmp extension. 如果存在,请删除这些文件。If there are, delete these files.
  • 确保计算机的日期和时间与本地时区相匹配。Ensure the machine's date and time match the local time zone.
  • 确保已将这些站点添加到 Internet Explorer 中的受信任站点。Ensure these sites are added to your trusted sites in Internet Explorer.

验证 Windows 的代理设置Verifying proxy settings for Windows

  1. Sysinternals 页下载 PsExec。Download PsExec from the Sysinternals page.

  2. 在权限提升的命令提示符下运行 psexec -i -s "c:\Program Files\Internet Explorer\iexplore.exe"Run psexec -i -s "c:\Program Files\Internet Explorer\iexplore.exe" from an elevated command prompt.

    此命令将打开 Internet Explorer。This command will open Internet Explorer.

  3. 转到“工具” > “Internet 选项” > “连接” > “局域网设置”。**** **** **** ****Go to Tools > Internet options > Connections > LAN settings.

  4. 检查系统帐户的代理设置。Check the proxy settings for the system account.

  5. 如果未配置代理但提供了代理详细信息,请删除这些详细信息。If no proxy is configured and proxy details are provided, remove the details.

  6. 如果已配置代理但代理详细信息不正确,请确保“代理 IP”和“端口”详细信息正确。**** ****If a proxy is configured and the proxy details are incorrect, ensure the Proxy IP and Port details are correct.

  7. 关闭 Internet Explorer。Close Internet Explorer.

无法下载保管库凭据文件Unable to download vault credential file

错误Error 建议的操作Recommended actions
未能下载保管库凭据文件。Failed to download the vault credential file. (ID:403)(ID: 403)
  • 使用不同的浏览器尝试下载保管库凭据,或执行以下步骤:Try downloading the vault credentials by using a different browser, or take these steps:
    • 启动 Internet Explorer。Start Internet Explorer. 按 F12。Select F12.
    • 转到“网络”选项卡,并清除缓存和 Cookie。****Go to the Network tab and clear the cache and cookies.
    • 刷新页面。Refresh the page.
  • 检查订阅是否已禁用/过期。Check if the subscription is disabled/expired.
  • 检查是否有任何防火墙规则阻止下载。Check if any firewall rule is blocking the download.
  • 确保未用完保管库的限额(每个保管库 50 台计算机)。Ensure you haven't exhausted the limit on the vault (50 machines per vault).
  • 确保用户拥有所需的 Azure 备份权限,可以下载保管库凭据并将服务器注册到保管库。Ensure the user has the Azure Backup permissions that are required to download vault credentials and register a server with the vault. 请参阅使用基于角色的访问控制管理 Azure 备份恢复点See Use Role-Based Access Control to manage Azure Backup recovery points.

Microsoft Azure 恢复服务代理无法连接到 Microsoft Azure 备份The Microsoft Azure Recovery Service Agent was unable to connect to Microsoft Azure Backup

错误Error 可能的原因Possible cause 建议的操作Recommended actions

  • Microsoft Azure 恢复服务代理无法连接到 Microsoft Azure 备份。The Microsoft Azure Recovery Service Agent was unable to connect to Microsoft Azure Backup. (ID:100050)请检查网络设置,并确保能够连接到 Internet。(ID: 100050) Check your network settings and ensure that you are able to connect to the internet.
  • (407) 需要代理身份验证。(407) Proxy Authentication Required.
代理正在阻止连接。A proxy is blocking the connection.
  • 在 Internet Explorer 中,转到“工具” > “Internet 选项” > “安全性” > “Internet”。**** **** **** ****In Internet Explorer, go to Tools > Internet options > Security > Internet. 选择“自定义级别”,向下滚动到“文件下载”部分。**** ****Select Custom Level and scroll down to the File download section. 选择“启用”****。Select Enable.

    可能还需要将这些 URL 和 IP 地址添加到 Internet Explorer 中的受信任站点。You might also have to add URLs and IP addresses to your trusted sites in Internet Explorer.

  • 更改设置以使用代理服务器。Change the settings to use a proxy server. 然后提供代理服务器详细信息。Then provide the proxy server details.
  • 如果计算机的 Internet 访问状态受限,请确保计算机或代理上的防火墙设置允许以下 URL 和 IP 地址If your machine has limited internet access, ensure that firewall settings on the machine or proxy allow these URLs and IP addresses.
  • 如果服务器中安装了防病毒软件,请从防病毒软件扫描中排除这些文件:If you have antivirus software installed on the server, exclude these files from the antivirus scan:
    • CBEngine.exe(而非 dpmra.exe)。CBEngine.exe (instead of dpmra.exe).
    • CSC.exe(与 .NET Framework 相关)。CSC.exe (related to .NET Framework). 服务器上安装的每个 .NET Framework 版本都有一个 CSC.exe。There's a CSC.exe for every .NET Framework version installed on the server. 排除受影响服务器上的所有 .NET Framework 版本的 CSC.exe 文件。Exclude CSC.exe files for all versions of .NET Framework on the affected server.
    • scratch 文件夹或缓存位置。The scratch folder or cache location.
      scratch 文件夹的默认位置或缓存路径为 C:\Program Files\Microsoft Azure Recovery Services Agent\Scratch。The default location for the scratch folder or the cache path is C:\Program Files\Microsoft Azure Recovery Services Agent\Scratch.
    • bin 文件夹 C:\Program Files\Microsoft Azure Recovery Services Agent\Bin。The bin folder at C:\Program Files\Microsoft Azure Recovery Services Agent\Bin.

备份作业已完成,但出现警告Backup jobs completed with warning

  • 当 MARS 代理在备份过程中循环访问文件和文件夹时,可能会遇到各种情况,这些情况可能会导致备份标记为已完成,但出现警告。When the MARS agent iterates over files and folders during backup, it might encounter various conditions that can cause the backup to be marked as completed with warnings. 在这些情况下,作业显示为已完成,但出现警告。During these conditions, a job shows as completed with warnings. 这样是可以的,但这意味着至少有一个文件未能备份成功。That is fine, but it means that at least one file wasn't able to be backed up. 即作业跳过了该文件,但备份了数据源中的所有其他相关文件。So the job skipped that file, but backed up all other files in question on the data source.

    备份作业已完成,但出现警告

  • 可能导致备份跳过文件的情况包括:Conditions that can cause the backups to skip files include:

    • 不受支持的文件属性(例如,OneDrive 文件夹中不支持压缩流和重新分析点)。Unsupported file attributes (for example: in a OneDrive folder, Compressed stream, reparse points). 有关完整列表,请参阅支持矩阵For the complete list, refer to the support matrix.
    • 文件系统问题A file system issue
    • 其他进程干扰(例如,包含文件句柄的防病毒软件可能会阻止 MARS 代理访问文件)Another process interfering (for example: antivirus software holding handles on files can prevent the MARS agent from accessing the files)
    • 应用程序锁定的文件Files locked by an application
  • 备份服务会将日志文件中的这些文件标记为失败,采用以下命名约定:C:\Program Files\Azure Recovery Service Agent\temp 文件夹下的 LastBackupFailedFilesxxxx.txt** **。The backup service will mark these files as failed in the log file, with the following naming convention: LastBackupFailedFilesxxxx.txt under the C:\Program Files\Azure Recovery Service Agent\temp folder.

  • 若要解决此问题,请查看日志文件以了解问题的性质:To resolve the issue, review the log file to understand the nature of the issue:

    错误代码Error code 原因Reasons 建议Recommendations
    0x800705700x80070570 该文件或目录已损坏且无法读取。The file or directory is corrupted and unreadable. 在源卷上运行 chkdsk****。Run chkdsk on the source volume.
    0x80070002、0x800700030x80070002, 0x80070003 系统找不到指定的文件。The system cannot find the file specified. 确保暂存文件夹未满Ensure the scratch folder isn't full

    检查在其中配置暂存空间的卷是否存在(未删除)Check if the volume where scratch space is configured exists (not deleted)

    确保从计算机上安装的防病毒软件中排除 MARS 代理Ensure the MARS agent is excluded from the antivirus installed on the machine
    0x800700050x80070005 访问被拒绝Access Is Denied 检查是否有防病毒软件或其他第三方软件在阻止访问Check if antivirus or other third-party software is blocking access
    0x8007018b0x8007018b 拒绝访问云文件。Access to the cloud file is denied. OneDrive 文件、Git 文件或计算机上可处于脱机状态的任何其他文件OneDrive files, Git Files, or any other files that can be in offline state on the machine
  • 可使用将排除规则添加到现有策略,从备份策略中排除不受支持的、缺少的或已删除的文件,以确保备份成功。You can use Add Exclusion rules to existing policy to exclude unsupported, missing, or deleted files from your backup policy to ensure successful backups.

  • 避免在顶级文件夹中删除并重新创建具有相同名称的受保护文件夹。Avoid deleting and recreating protected folders with the same names in the top-level folder. 这样做可能会导致备份完成,但出现警告,报告错误“检测到严重不一致,因此无法复制更改”**。Doing so could result in the backup completing with warnings with the error A critical inconsistency was detected, therefore changes cannot be replicated. 如果需要删除并重新创建文件夹,请考虑在受保护的顶级文件夹下的子文件夹中执行此操作。If you need to delete and recreate folders, then consider doing so in subfolders under the protected top-level folder.

未能设置安全备份的加密密钥Failed to set the encryption key for secure backups

错误Error 可能的原因Possible causes 建议的操作Recommended actions

无法设置安全备份的加密密钥。Failed to set the encryption key for secure backups. 激活未完全成功,但是加密通行短语已保存到以下文件中。Activation did not succeed completely but the encryption passphrase was saved to the following file.
  • 服务器已注册到另一个保管库。The server is already registered with another vault.
  • 在配置期间,通行短语已损坏。During configuration, the passphrase was corrupted.
  • 从该保管库中取消注册服务器,然后使用新通行短语重新注册。Unregister the server from the vault and register it again with a new passphrase.

    激活未成功完成The activation did not complete successfully

    错误Error 可能的原因Possible causes 建议的操作Recommended actions

    激活未成功完成。The activation did not complete successfully. 由于内部服务错误 [0x1FC07],当前操作失败。The current operation failed due to an internal service error [0x1FC07]. 稍后重试操作。Retry the operation after some time. 如果该问题仍然存在,请联系 Microsoft 支持部门。If the issue persists, please contact Microsoft support.
  • scratch 文件夹位于空间不足的卷上。The scratch folder is located on a volume that doesn't have enough space.
  • 错误地移动了 scratch 文件夹。The scratch folder has been incorrectly moved.
  • 缺少 OnlineBackup.KEK 文件。The OnlineBackup.KEK file is missing.
  • 升级到最新版本的 MARS 代理。Upgrade to the latest version of the MARS agent.
  • 将 scratch 文件夹或缓存位置移到可用空间相当于备份数据总大小 5% 到 10% 的卷。Move the scratch folder or cache location to a volume with free space that's between 5% and 10% of the total size of the backup data. 若要正确移动缓存位置,请参阅有关备份文件和文件夹的常见问题中的步骤。To correctly move the cache location, refer to the steps in Common questions about backing up files and folders.
  • 确保 OnlineBackup.KEK 文件存在。Ensure that the OnlineBackup.KEK file is present.
    scratch 文件夹的默认位置或缓存路径为 C:\Program Files\Microsoft Azure Recovery Services Agent\Scratch。**The default location for the scratch folder or the cache path is C:\Program Files\Microsoft Azure Recovery Services Agent\Scratch.
  • 未正确配置加密通行短语Encryption passphrase not correctly configured

    错误Error 可能的原因Possible causes 建议的操作Recommended actions

    错误 34506。Error 34506. 未在此计算机上正确配置存储的加密通行短语。The encryption passphrase stored on this computer is not correctly configured.
  • scratch 文件夹位于空间不足的卷上。The scratch folder is located on a volume that doesn't have enough space.
  • 错误地移动了 scratch 文件夹。The scratch folder has been incorrectly moved.
  • 缺少 OnlineBackup.KEK 文件。The OnlineBackup.KEK file is missing.
  • 升级到最新版本的 MARS 代理。Upgrade to the latest version of the MARS Agent.
  • 将 scratch 文件夹或缓存位置移到可用空间相当于备份数据总大小 5% 到 10% 的卷。Move the scratch folder or cache location to a volume with free space that's between 5% and 10% of the total size of the backup data. 若要正确移动缓存位置,请参阅有关备份文件和文件夹的常见问题中的步骤。To correctly move the cache location, refer to the steps in Common questions about backing up files and folders.
  • 确保 OnlineBackup.KEK 文件存在。Ensure that the OnlineBackup.KEK file is present.
    scratch 文件夹的默认位置或缓存路径为 C:\Program Files\Microsoft Azure Recovery Services Agent\Scratch。**The default location for the scratch folder or the cache path is C:\Program Files\Microsoft Azure Recovery Services Agent\Scratch.
  • 备份不按计划运行Backups don't run according to schedule

    如果计划的备份未自动触发,而手动备份却能正常进行,请尝试以下操作:If scheduled backups don't get triggered automatically but manual backups work correctly, try the following actions:

    • 确保 Windows Server 备份计划与 Azure 文件和文件夹备份计划不冲突。Ensure the Windows Server backup schedule doesn't conflict with the Azure files and folders backup schedule.

    • 确保联机备份状态设置为“启用”。****Ensure the online backup status is set to Enable. 若要验证状态,请执行以下步骤:To verify the status, take these steps:

      1. 在任务计划程序中,展开“Microsoft”并选择“联机备份”。**** ****In Task Scheduler, expand Microsoft and select Online Backup.
      2. 双击“Microsoft-OnlineBackup”,然后转到“触发器”选项卡。**** ****Double-click Microsoft-OnlineBackup and go to the Triggers tab.
      3. 检查状态是否设置为“已启用”。****Check if the status is set to Enabled. 如果不是,请依次选择“编辑”、“已启用”、“确定”。**** **** ****If it isn't, select Edit, select Enabled, and then select OK.
    • 确保为运行任务而选择的用户帐户是服务器上的 SYSTEM本地管理员组Ensure the user account selected for running the task is either SYSTEM or Local Administrators' group on the server. 若要验证用户帐户,请转到“常规”选项卡并检查“安全性”选项。**** ****To verify the user account, go to the General tab and check the Security options.

    • 确保服务器上已安装 PowerShell 3.0 或更高版本。Ensure PowerShell 3.0 or later is installed on the server. 若要检查 PowerShell 版本,请运行以下命令,并确认 Major 版本号是否为 3 或更高:To check the PowerShell version, run this command and verify that the Major version number is 3 or later:

      $PSVersionTable.PSVersion

    • 确保此路径包含在 PSMODULEPATH 环境变量中:Ensure this path is part of the PSMODULEPATH environment variable:

      <MARS agent installation path>\Microsoft Azure Recovery Services Agent\bin\Modules\MSOnlineBackup

    • 如果 LocalMachine 的 PowerShell 执行策略设置为 restricted,则触发备份任务的 PowerShell cmdlet 可能会失败。If the PowerShell execution policy for LocalMachine is set to restricted, the PowerShell cmdlet that triggers the backup task might fail. 以权限提升的模式运行以下命令,将执行策略设置为 UnrestrictedRemoteSignedRun these commands in elevated mode to check and set the execution policy to either Unrestricted or RemoteSigned:

    Get-ExecutionPolicy -List
    
    Set-ExecutionPolicy Unrestricted
    
    • 确保 PowerShell 模块的 MSOnlineBackup 文件无缺失或损坏。Ensure there are no missing or corrupt PowerShell module MSOnlineBackup files. 如果有任何文件缺失或损坏,请执行以下步骤:If there are any missing or corrupt files, take these steps:

      1. 在可正常运行 MARS 代理的任何计算机上,从 C:\Program Files\Microsoft Azure Recovery Services Agent\bin\Modules 复制“MSOnlineBackup”文件夹。From any machine that has a MARS agent that's working properly, copy the MSOnlineBackup folder from C:\Program Files\Microsoft Azure Recovery Services Agent\bin\Modules.

      2. 在有问题的计算机上,将复制的文件粘贴到相同的文件夹位置 (C:\Program Files\Microsoft Azure Recovery Services Agent\bin\Modules)。On the problematic machine, paste the copied files at the same folder location (C:\Program Files\Microsoft Azure Recovery Services Agent\bin\Modules).

        如果该计算机上已有一个 MSOnlineBackup 文件夹,请将文件粘贴到其中,或替换所有现有文件。If there's already an MSOnlineBackup folder on the machine, paste the files into it or replace any existing files.

    提示

    为确保一致地应用所做的更改,请在执行上述步骤后重启服务器。To ensure changes are applied consistently, restart the server after performing the preceding steps.

    服务戳中未预配资源Resource not provisioned in service stamp

    错误Error 可能的原因Possible causes 建议的操作Recommended actions
    由于出现“服务戳中未预配资源”的内部服务错误,当前操作失败。The current operation failed due to an internal service error "Resource not provisioned in service stamp". 请稍后重试操作。Please retry the operation after some time. (ID:230006)(ID: 230006) 受保护的服务器已重命名。The protected server was renamed.
  • 将服务器重命名回在保管库中注册的原始名称。Rename the server back to the original name as registered with the vault.
  • 用新名称向保管库重新注册服务器。Re-register the server to the vault with the new name.
  • 排查还原问题Troubleshoot restore problems

    即使等待几分钟,Azure 备份也可能不会成功装载恢复卷。Azure Backup might not successfully mount the recovery volume, even after several minutes. 在此过程中,可能会出现错误消息。And you might receive error messages during the process. 若要开始正常恢复,请执行以下步骤:To begin recovering normally, take these steps:

    1. 如果装载过程已运行了几分钟,请取消此过程。Cancel the mount process if it's been running for several minutes.

    2. 检查是否使用了最新版本的备份代理。Check if you have the latest version of the Backup agent. 若要检查版本,请在 MARS 控制台的“操作”窗格中,选择“关于 Microsoft Azure 恢复服务代理”。**** ****To check the version, on the Actions pane of the MARS console, select About Microsoft Azure Recovery Services Agent. 确认“版本号”等于或高于此文中所述的版本。****Confirm that the Version number is equal to or higher than the version mentioned in this article. 选择下载最新版本的链接。Select this link to download the latest version.

    3. 转到“设备管理器” > “存储控制器”,并找到“Microsoft iSCSI 发起程序”**** **** ****。Go to Device Manager > Storage controllers and locate Microsoft iSCSI Initiator. 如果找到,请直接转到步骤 7。If you locate it, go directly to step 7.

    4. 如果找不到 Microsoft iSCSI 发起程序服务,请尝试在“设备管理器” > “存储控制器”下找到硬件 ID 为“ROOT\ISCSIPRT”的“未知设备”条目**** **** **** ****。If you can't locate the Microsoft iSCSI Initiator service, try to find an entry under Device Manager > Storage controllers named Unknown Device with Hardware ID ROOT\ISCSIPRT.

    5. 右键单击“未知设备”并选择“更新驱动程序软件”**** ****。Right-click Unknown Device and select Update Driver Software.

    6. 选择“自动搜索更新的驱动程序软件”选项,更新驱动程序****。Update the driver by selecting the option to Search automatically for updated driver software. 此项更新应会将“未知设备”更改为“Microsoft iSCSI 发起程序”**** ****:This update should change Unknown Device to Microsoft iSCSI Initiator:

      Azure 备份设备管理器的屏幕截图,其中突出显示了“存储控制器”

    7. 转到“任务管理器” > “服务(本地)” > “Microsoft iSCSI 发起程序服务”**** **** ****:Go to Task Manager > Services (Local) > Microsoft iSCSI Initiator Service:

      Azure 备份任务管理器的屏幕截图,其中突出显示了“服务(本地)”

    8. 重启 Microsoft iSCSI 发起程序服务。Restart the Microsoft iSCSI Initiator service. 为此,请右键单击该服务,并选择“停止”****。To do this, right-click the service and select Stop. 然后再次右键单击它并选择“启动”****。Then right-click it again and select Start.

    9. 使用 即时还原 重试恢复。Retry recovery by using Instant Restore.

    如果恢复仍然失败,请重启服务器或客户端。If the recovery still fails, restart your server or client. 如果不想要重启,或者即使重启服务器,恢复也仍然失败,请尝试从另一台计算机恢复If you don't want to restart, or if the recovery still fails even after you restart the server, try recovering from another machine.

    排查缓存问题Troubleshoot Cache problems

    如果缓存文件夹(也称为 scratch 文件夹)配置不正确、缺少必备项或具有受限访问权限,则备份操作可能会失败。Backup operation may fail if the cache folder (also referred as scratch folder) is incorrectly configured, missing prerequisites or has restricted access.

    先决条件Prerequisites

    要使 MARS 代理操作成功,缓存文件夹需要符合以下要求:For MARS agent operations to succeed the cache folder needs to adhere to the below requirements:

    增加影子副本存储Increase shadow copy storage

    如果用于保护数据源的影子副本存储空间不足,则备份操作可能会失败。Backup operations could fail if there is insufficient shadow copy storage space required to protect the data source. 若要解决此问题,请使用 vssadmin 增加受保护卷上的影子副本存储空间,如下所示:To resolve this issue, increase the shadow copy storage space on the protected volume using vssadmin as shown below:

    • 在提升的命令提示符下检查当前的影子存储空间:Check the current shadow storage space from the elevated command prompt:
      vssadmin List ShadowStorage /For=[Volume letter]:
    • 使用以下命令增加影子存储空间:Increase the shadow storage space using the below command:
      vssadmin Resize ShadowStorage /On=[Volume letter]: /For=[Volume letter]: /Maxsize=[size]

    阻止访问缓存文件夹的其他进程或防病毒软件Another process or antivirus software blocking access to cache folder

    如果你在服务器上安装了防病毒软件,请将所需的排除规则添加到这些文件和文件夹的防病毒扫描项中:If you have antivirus software installed on the server, add necessary exclusion rules to the antivirus scan for these files and folders:

    • scratch 文件夹。The scratch folder. 其默认位置为 C:\Program Files\Azure Recovery Services Agent\ScratchIts default location is C:\Program Files\Azure Recovery Services Agent\Scratch
    • C:\Program Files\Azure Recovery Services Agent\Bin 中的 bin 文件夹The bin folder at C:\Program Files\Azure Recovery Services Agent\Bin
    • CBengine.exeCBengine.exe
    • CSC.exeCSC.exe

    常见问题Common issues

    本部分介绍在使用 MARS 代理时会遇到的常见错误。This section covers the common errors that you encounter while using MARS agent.

    SalChecksumStoreInitializationFailedSalChecksumStoreInitializationFailed

    错误消息Error message 建议的操作Recommended action
    Azure 恢复服务代理无法访问存储在暂存位置的备份校验和Azure Recovery Services Agent was unable to access backup checksum stored in scratch location 若要解决此问题,请执行以下操作,然后重启服务器To resolve this issue, perform the below and restart the server
    - 检查是否存在防病毒或其他进程锁定暂存位置文件- Check if there is an antivirus or other processes locking the scratch location files
    - 检查暂存位置是否有效,是否可供 MARS 代理访问。- Check if the scratch location is valid and accessible to mars agent.

    SalVhdInitializationErrorSalVhdInitializationError

    错误消息Error message 建议的操作Recommended action
    Azure 恢复服务代理无法访问暂存位置,因此无法初始化 VHDAzure Recovery Services Agent was unable to access the scratch location to initialize VHD 若要解决此问题,请执行以下操作,然后重启服务器To resolve this issue, perform the below and restart the server
    - 检查是否存在防病毒或其他进程锁定暂存位置文件- Check if there is an antivirus or other processes locking the scratch location files
    - 检查暂存位置是否有效,是否可供 MARS 代理访问。- Check if the scratch location is valid and accessible to mars agent.

    SalLowDiskSpaceSalLowDiskSpace

    错误消息Error message 建议的操作Recommended action
    由于暂存文件夹所在的卷中存储空间不足,备份失败Backup failed due to insufficient storage in volume where the scratch folder is located 若要解决此问题,请验证以下步骤,然后重试该操作:To resolve this issue, verify the below steps and retry the operation:
    - 确保 MARS 代理是最新的- Ensure MARS agent is latest
    - 验证并解决影响备份暂存空间的存储问题- Verify and resolve storage issues that impact backup scratch space

    SalBitmapErrorSalBitmapError

    错误消息Error message 建议的操作Recommended action
    找不到文件中的更改。Unable to find changes in a file. 这可能是由于各种原因。This could be due to various reasons. 请重试该操作Please retry the operation 若要解决此问题,请验证以下步骤,然后重试该操作:To resolve this issue, verify the below steps and retry the operation:
    - 确保 MARS 代理是最新的- Ensure MARS agent is latest
    - 验证并解决影响备份暂存空间的存储问题- Verify and resolve storage issues that impact backup scratch space

    后续步骤Next steps