VMware 6.7 从 Server 2016 挂载 NFS

VMware 6.7 从 Server 2016 挂载 NFS

我有一台 2016 年的服务器,其中有一个 QNAP 的 iSCSI 驱动器,作为 NFS 挂载共享

当我从 VMWare cli 运行命令时:

[root@localhost:~] esxcli storage nfs add -H 192.168.1.20 -s vmwaredatastore -v shareddatastore

我收到以下错误

Unable to complete Sysinfo operation.  Please see the VMkernel log file for more details.: Sysinfo error: Bad parameterSee VMkernel log for details.

如果我尝试从 esxi GUI 或 vCenter GUI 将 NFS 共享附加为数据存储,我会收到相同的错误

来自 vmkernal.log

2020-10-01T08:31:59.783Z cpu7:2099026 opID=6cdf2f9b)World: 11943: VC opID esxcli-c7-290b maps to vmkernel opID 6cdf2f9b
2020-10-01T08:31:59.783Z cpu7:2099026 opID=6cdf2f9b)NFS: 160: Command: (mount) Server: (192.168.1.20) IP: (192.168.1.20) Path: (vmwaredatastore) Label: (shareddatastore) Options: (None)
2020-10-01T08:31:59.784Z cpu7:2099026 opID=6cdf2f9b)StorageApdHandler: 977: APD Handle 6488d328-d7d9d13a Created with lock[StorageApd-0x4311cd3b76d0]
2020-10-01T08:31:59.784Z cpu7:2099026 opID=6cdf2f9b)SunRPC: 1099: Destroying world 0x402cbc
2020-10-01T08:31:59.785Z cpu0:2098060)WARNING: NFS: 221: Got error 22 from mount call
2020-10-01T08:31:59.785Z cpu7:2099026 opID=6cdf2f9b)SunRPC: 1099: Destroying world 0x402cbd
2020-10-01T08:31:59.785Z cpu7:2099026 opID=6cdf2f9b)StorageApdHandler: 1063: Freeing APD handle 0x4311cd3b76d0 [6488d328-d7d9d13a]
2020-10-01T08:31:59.785Z cpu7:2099026 opID=6cdf2f9b)StorageApdHandler: 1147: APD Handle freed!
2020-10-01T08:31:59.785Z cpu7:2099026 opID=6cdf2f9b)NFS: 221: NFS mount 192.168.1.20:vmwaredatastore status: Bad parameter

我可以 ping 主机并连接端口 2049 和 111

[root@localhost:~] nc -z 192.168.1.20 2049
Connection to 192.168.1.20 2049 port [tcp/nfs] succeeded!
[root@localhost:~] nc -z 192.168.1.20 111
Connection to 192.168.1.20 111 port [tcp/sunrpc] succeeded!

我用谷歌搜索了一下,但还是搞不清楚“坏参数”是什么

主持人截图

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

在此处输入图片描述

相关内容