NVP vProxy:(故障排除指南)备份失败并显示“NSR VMware proxy is not available for datastores”

Summary: 这是一种常规故障排除知识库文章,旨在为支持人员提供帮助,以帮助了解在执行 vProxy 备份时出现错误“NSR VMware proxy is not available for datastores”的可能原因。

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.

Instructions

在使用 NetWorker VMware Protection (NVP) vProxy 应用装置执行虚拟机备份期间,一个或多个虚拟机的虚拟机备份失败,并显示错误:
NSR VMware proxy is not available for datastores (DATASTORE_NAME) in vCenter 'VCENTER_NAME'.
在 NMC 监测 窗口中查看失败的备份操作详细信息时,可以找到此错误。
image.png
或者在 NetWorker 服务器上的备份操作日志中:
root@linux1:~# nsr_render_log /nsr/logs/policy/Gold/VMware/Backup_235896.raw | grep -i error
164882 02/07/2023 09:44:11 AM  3 5 0 1296803648 11621 0 linux1.amer.lan nsrvproxy_save NSR error Unable to process VM 'linuxclient01': NSR VMware proxy is not available for datastores (datastore1) in vCenter 'vcsa.amer.lan'. Check if it is enabled.
164546 02/07/2023 09:44:11 AM  3 5 0 1296803648 11621 0 linux1.amer.lan nsrvproxy_save NSR error linuxclient01: Backup failed.
164882 02/07/2023 09:44:11 AM  3 5 0 1296803648 11621 0 linux1.amer.lan nsrvproxy_save NSR error Unable to process VM 'winclient02': NSR VMware proxy is not available for datastores (datastore1) in vCenter 'vcsa.amer.lan'. Check if it is enabled.
164546 02/07/2023 09:44:11 AM  3 5 0 1296803648 11621 0 linux1.amer.lan nsrvproxy_save NSR error winclient02: Backup failed.
164882 02/07/2023 09:44:45 AM  3 5 0 1296803648 11621 0 linux1.amer.lan nsrvproxy_save NSR error Unable to process VM 'linuxclient01': NSR VMware proxy is not available for datastores (datastore1) in vCenter 'vcsa.amer.lan'. Check if it is enabled.
164546 02/07/2023 09:44:45 AM  3 5 0 1296803648 11621 0 linux1.amer.lan nsrvproxy_save NSR error linuxclient01: Backup failed.
164882 02/07/2023 09:44:45 AM  3 5 0 1296803648 11621 0 linux1.amer.lan nsrvproxy_save NSR error Unable to process VM 'winclient02': NSR VMware proxy is not available for datastores (datastore1) in vCenter 'vcsa.amer.lan'. Check if it is enabled.
164546 02/07/2023 09:44:45 AM  3 5 0 1296803648 11621 0 linux1.amer.lan nsrvproxy_save NSR error winclient02: Backup failed.
出现此错误的原因有多种。下面详细介绍了几个常见原因以及如何解决它们。

 

vProxy 可用性:

vProxy 状态:是否为备份启用了 vProxy?

root@linux1:~# nsradmin
NetWorker administration program.
Use the "help" command for help, "visual" for full-screen mode.
nsradmin> show enabled; name
nsradmin> print type: nsr vmware proxy
                        name: vproxy01.amer.lan;
                     enabled: Yes;


image.png

如果 vProxy 显示 已启用“否”,请设置为 已启用 “是”。这可以从 NMC 完成:

image.png
或 nsradmin:

nsradmin> . type: nsr vmware proxy; name: vproxy01.amer.lan
Current query set
nsradmin> update enabled: Yes
                     enabled: Yes;
Update? y
updated resource id 141.0.147.119.0.0.0.0.114.88.175.99.192.168.7.101(28)
nsradmin>

如果 vProxy 未进入“Enabled”状态:

  • 验证 vProxy 与 NetWorker 服务器之间的端口 9090 通信(双向):
    • vProxy: curl -v NW_SERVERNAME:9090
    • NetWorker 服务器: nsrports -t VPROXY_NAME -p 9090
  • 尝试手动重新注册 vProxy:https://www.dell.com/support/kbdoc/000156072

VMware 配置:

测试 hotadd 是否存在使用网络数据块设备 (NBD) 方法执行虚拟机备份的一种方法。
vProxy 是否已启用 NBD 会话(默认情况下,NBD 会话设置为 0(已禁用)):
image.png

如果启用了 NBD 会话,请将 NBD 会话设置为匹配 hotadd:

image.png
或者:

root@linux1:~# nsradmin
NetWorker administration program.
Use the "help" command for help, "visual" for full-screen mode.
nsradmin> show name; maximum NBD sessions
nsradmin> . type: nsr vmware proxy; name: vproxy01.amer.lan
Current query set
nsradmin> update maximum NBD sessions: 13
        maximum NBD sessions: 13;
Update? y
updated resource id 141.0.147.119.0.0.0.0.114.88.175.99.192.168.7.101(31)
nsradmin> print
                        name: vproxy01.amer.lan;
        maximum NBD sessions: 13;

再次执行备份。如果备份成功,则表明 vProxy 无法通过 HotAdd 连接到虚拟机文件;但是,vProxy 可以使用网络数据块设备 (NBD) 通过管理网络连接到虚拟机。
有关检查 hotadd 连接的 ProxyHC 示例,请参阅“其他信息”字段。

如果 NBD 备份成功并且/或 ProxyHC 报告使用 hotadd 访问虚拟机时出现问题,请执行以下操作:

记下:

  • 报告错误的特定虚拟机。
  • 在错误中指定了哪些数据存储区。
  • 错误中报告的 vCenter 名称。
  • 备份/报告在错误中使用的 vProxy 应用装置。

1.登录到执行备份的 vCenter 的 vSphere Web Client。
2.转至 Inventory 并转至 VM and Templates 。
3.转至(或搜索)vProxy 虚拟机,在 摘要 选项卡中记下 vProxy 所在的 ESXi 主机:

image.png

4.转到 主机和群集 选项卡,选择 vProxy 所在的 ESXi 主机,然后单击 数据存储区 :

image.png

这列出了 vProxy 所在的 ESXi 主机可见的 VMware 数据存储区。如果备份中返回的数据存储区错误“NSR VMware proxy is not available for datastores (DATASTORE_NAME)”未显示在列表中,则 vProxy 无法通过 hotadd 访问虚拟机文件。要支持 hotadd,vProxy 必须部署在具有虚拟机数据存储区路径的 ESXi 主机上。同样,也可以使用相同的过程来查看虚拟机所在的 ESXi 主机,然后查看该 ESXi 主机的数据存储区,如果我们没有看到 vProxy 驻留的数据存储区,则 vProxy 和虚拟机之间没有跨数据存储区的路径。
可能的解决方案包括:

  • VMware vSphere vMotion vProxy 应用装置到有权访问虚拟机备份所需的所有数据存储区的 ESXi 主机。
  • 配置 vProxy 驻留的 ESXi 主机,以访问虚拟机所在的 VMware 数据存储区。
  • 在连接到唯一数据存储区的 ESXi 主机上部署 vProxy 应用装置(在已部署 vProxies 时无法通过主机访问)。 
上述配置更改必须由 VMware 管理员执行,而不是 NetWorker 支持。如果无法进行配置更改以允许 hotadd 正常工作,则必须使用 NBD。

NetWorker VMware 集成指南 包含有关传输模式建议、要求和限制的更多详细信息:https://www.dell.com/support/home/product-support/product/networker/docs

IDE 磁盘

如果未观察到数据存储区问题,请检查出现故障的虚拟机,查看它们是否配置为使用 IDE 磁盘。这可以在 vSphere 中的虚拟机设置中看到:
image.png
IDE 磁盘不支持 hotadd,必须将 vProxy 应用装置配置为允许“回退到 IDE 磁盘的 NBD”:
image.png
如果 NBD 会话设置为零,但工作流包含具有 IDE 磁盘的虚拟机,则可以启用此设置。只有具有 IDE 磁盘的虚拟机将使用 NBD 进行备份;所有其他具有 SCSI 磁盘的虚拟机将通过 hotadd 进行备份。不建议部署具有 IDE 磁盘的虚拟机,应尽可能使用 ISCSI 磁盘。

 

Additional Information

也可以使用 ProxyHC 验证 Hotadd 连接:https://www.dell.com/support/kbdoc/000022590

vproxy01:~ # ./ProxyHC hotadd
Info: Checking OS account status -------> Passed
Info: Checking configuration files
        Info: Proxy is registered to: linux1.amer.lan
        Info: Proxy version is: 4.3.0-38
Info: Checking OS
        Info: Checking attached disks -------> Passed
        Info: Checking disk usage -------> Passed
        Info: Checking memory usage -------> Passed
Info: Checking connectivity
        Info: Checking primary NIC ------->  192.168.9.123
        Info: Testing ping to gateway 192.168.7.100 -------> Passed
        Info: Testing ping to DNS 192.168.10.100 -------> Passed
        Info: Testing ping to DNS 192.168.7.100 -------> Passed
        Info: Testing ping to DNS 192.168.9.100 -------> Passed
        Info: Checking DNS response
        Info: Testing name lookup for linux1.amer.lan -------> Passed
        Info: Testing name lookup for vcsa.amer.lan -------> Passed
Info: Checking package details
        Info: Checking vProxy package version -------> Found version 4.3.0
        Info: Verifying vProxy package -------> command returned error
Info: Checking service state
        Info: Checking status for vbackupd -------> Passed
        Info: Checking status for vflragent -------> Passed
        Info: Checking status for vflrd -------> Passed
        Info: Checking status for vkpod -------> Passed
        Info: Checking status for vrapid -------> Passed
        Info: Checking status for vrecoverd -------> Passed
        Info: Checking status for vsessionsd -------> Passed
Info: Checking engine logs
        Info: Checking vsessionsd engine log -------> Passed
        Info: Checking vrapid engine log -------> Passed
        Info: Checking vrecoverd engine log -------> Passed
        Info: Checking vbackupd engine log -------> Found 2 failed sessions
        Info: Checking vkpod engine log -------> Passed
        Info: Checking vflragent engine log -------> Passed
        Info: Checking vflrd engine log -------> Passed
Info: Checking vCenter access
        Please specify vCenter USER name for vcsa.amer.lan: bkupadmin@amer.lan
        Please provide vCenter server password:
        Info: Validating vCenter server connectivity -------> Passed
Info: Checking for hotadd access
        Please provide DNS name of VM(as shown in vSphere): linuxclient01.amer.lan
        Info: Looking for vProxy VM -------> Passed
        Info: Checking vCenter user permissions
        Info: Looking for user permissions to root object -------> Failed
        Info: Validating datacenter match -------> Passed
        Info: Looking for IDE disks -------> Passed
        Info: Checking virtual hardware version -------> Passed
        Info: Looking for independent disk -------> Passed
        Info: Checking datastore access -------> Passed
        Info: Checking entity names -------> Passed
 

Affected Products

NetWorker

Products

NetWorker Family, NetWorker Series
Article Properties
Article Number: 000208393
Article Type: How To
Last Modified: 10 Apr 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.