Thursday, March 12, 2015

vmware nfs mounts go a-asking

vmware esx servers don't pick up nfs mounts if they go away. here's how to get them going again:

overview:
/vmfs/volumes # esxcfg-nas -l
/vmfs/volumes # esxcfg-nas -d mount
/vmfs/volumes # esxcfg-nas -a -o nfsserver -s nfsexport localmount
in practice:
~ # esxcfg-nas -l
vm-crap is /opt/vm-crap from 192.168.6.66 mounted
~ # esxcfg-nas -d vm-crap
NAS volume vm-crap deleted.
~ # esxcfg-nas -a -o 192.168.6.66 -s /opt/vm-crap vm-crap
Connecting to NAS volume: vm-crap
vm-crap created and connected.
~ # exit

No comments: