NSR VMware proxy is not available for datastores (DATASTORE_NAME) in vCenter 'VCENTER_NAME'.
在 NMC 监测 窗口中查看失败的备份操作详细信息时,可以找到此错误。
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;
或
如果 vProxy 显示 已启用“否”,请设置为 已启用 “是”。这可以从 NMC 完成:
或 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”状态:
如果启用了 NBD 会话,请将 NBD 会话设置为匹配 hotadd:
或者:
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 访问虚拟机时出现问题,请执行以下操作:
记下:
1.登录到执行备份的 vCenter 的 vSphere Web Client。
2.转至 Inventory 并转至 VM and Templates 。
3.转至(或搜索)vProxy 虚拟机,在 摘要 选项卡中记下 vProxy 所在的 ESXi 主机:
4.转到 主机和群集 选项卡,选择 vProxy 所在的 ESXi 主机,然后单击 数据存储区 :
这列出了 vProxy 所在的 ESXi 主机可见的 VMware 数据存储区。如果备份中返回的数据存储区错误“NSR VMware proxy is not available for datastores (DATASTORE_NAME)”未显示在列表中,则 vProxy 无法通过 hotadd 访问虚拟机文件。要支持 hotadd,vProxy 必须部署在具有虚拟机数据存储区路径的 ESXi 主机上。同样,也可以使用相同的过程来查看虚拟机所在的 ESXi 主机,然后查看该 ESXi 主机的数据存储区,如果我们没有看到 vProxy 驻留的数据存储区,则 vProxy 和虚拟机之间没有跨数据存储区的路径。
可能的解决方案包括:
也可以使用 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