webbrowser
n00b
- Joined
- Jun 12, 2013
- Messages
- 31
I'm scratching my head as to why ESXi refuses to mount the nfs datastore with an I/O error. Here are the details.
From the ESXi ssh shell,
- "vmkping 192.168.9.249" (the nfs server) succeeds.
- "nc -z 192.168.9.249 2049" succeeds.
- "esxcfg-nas -a -o 192.168.9.249 -s /z/vmdatastore nas" gives:
The NFS server is Debian 7 Wheezy, running nfs-kernel-server.
- /etc/exports is
/z/vmdatastore 192.168.9.0/24(rw,no_root_squash,no_subtree_check)
- /z/vmdatastore is ZFS formatted SSD with 777 permissions.
- nfs mount on the NFS server localhost, that works.
- If I do an nfs mount on the NFS server localhost but with the wrong path (eg. /vmdatastore instead of /z/vmdatastore) yields an error message in syslog:
rpc.mountd[3340]: refused mount request from 192.168.9.249 for /vmdatastore (/): not exported
- esxcfg-nas add with the same wrong path does not yield any error message in syslog. So something is screwing up even before it gets to this stage. But the ping and nc connectivity tests succeeded
More details if needed:
From the ESXi ssh shell,
- "vmkping 192.168.9.249" (the nfs server) succeeds.
- "nc -z 192.168.9.249 2049" succeeds.
- "esxcfg-nas -a -o 192.168.9.249 -s /z/vmdatastore nas" gives:
- /var/log/vmkernel.log says:Connecting to NAS volume: nas
Unable to connect to NAS volume nas: Sysinfo error on operation returned status : I/O error. Please see the VMkernel log for detailed error information
2013-07-28T12:13:30.769Z cpu6:30335)NFS: 157: Command: (mount) Server: (192.168.9.249) IP: (192.168.9.249) Path: (/z/vmdatastore) Label: (nas) Options: (None)
2013-07-28T12:13:30.769Z cpu6:30335)StorageApdHandler: 692: APD Handle 3ab89597-5160e1d0 Created with lock[StorageApd0x410016]
2013-07-28T12:13:30.770Z cpu3:30335)StorageApdHandler: 739: Freeing APD Handle [3ab89597-5160e1d0]
2013-07-28T12:13:30.770Z cpu3:30335)StorageApdHandler: 802: APD Handle freed!
2013-07-28T12:13:30.770Z cpu3:30335)NFS: 218: NFS mount 192.168.9.249:/z/vmdatastore status: I/O error
The NFS server is Debian 7 Wheezy, running nfs-kernel-server.
- /etc/exports is
/z/vmdatastore 192.168.9.0/24(rw,no_root_squash,no_subtree_check)
- /z/vmdatastore is ZFS formatted SSD with 777 permissions.
- /var/log/syslog doesn't show any error messages at all when I attempt to do the esxcfg-nas add.# ls -al /z/vmdatastore/
total 13
drwxrwxrwx 2 root root 2 Jul 28 19:37 .
drwxr-xr-x 7 root root 4096 Jul 28 11:21 ..
- nfs mount on the NFS server localhost, that works.
- If I do an nfs mount on the NFS server localhost but with the wrong path (eg. /vmdatastore instead of /z/vmdatastore) yields an error message in syslog:
rpc.mountd[3340]: refused mount request from 192.168.9.249 for /vmdatastore (/): not exported
- esxcfg-nas add with the same wrong path does not yield any error message in syslog. So something is screwing up even before it gets to this stage. But the ping and nc connectivity tests succeeded
More details if needed:
ESXi server:
- vswitch0: (internet connected), vmnic0
vmkernel: 192.168.2.250/24, gateway 192.168.2.254
- vswitch1: (storage network), not connected to physical nic
vmkernel: 192.168.9.250/24
# esxcfg-route -l
VMkernel Routes:
Network Netmask Gateway Interface
192.168.2.0 255.255.255.0 Local Subnet vmk0
192.168.9.0 255.255.255.0 Local Subnet vmk1
default 0.0.0.0 192.168.2.254 vmk0