Thursday, May 19, 2011

Everything about esx/esxi and nfs

Test connectivity between the esx server and nfs server:

# vmkping nfs-server
PING nfs-server (172.16.100.1): 56 data bytes
64 bytes from 172.16.100.1: icmp_seq=0 ttl=253 time=0.171 ms
64 bytes from 172.16.100.1: icmp_seq=1 ttl=253 time=0.171 ms
64 bytes from 172.16.100.1: icmp_seq=2 ttl=253 time=0.168 ms

View if any nfs mounts exist on the esx or esxi server:

# esxcfg-nas -l
ABC is /isos from nfs-server mounted

Unmount an nfs mount:

# esxcfg-nas -d ABC
NAS volume ABC deleted.

Mount the same file system again:

# esxcfg-nas -a ABC -o nfs-server -s /isos -y
Connecting to NAS volume: ABC
ABC created and connected.

Make sure the nfsclient module is loaded:

# vmkload_mod -l | grep nfs
nfsclient           0x418004874000    0x14000     0x417fc55e17c0    0x2000        47 Yes

Unload a load the module if necessary (can't be in use):

# vmkload_mod -u nfsclient
vmkload_mod: Can not remove module nfsclient: module symbols in use

Reload the module:

# vmkload_mod nfsclient
vmkload_mod: Can not load module nfsclient: module is already loaded

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.