Tuesday, February 21, 2012

Mount NFS datastore using reference host - DNS or IP

Most people use host profile to configure new host servers to look like your existing host servers.  However, this method may not apply to all due to license limitation, HW configuration differences, or any other reasons.

ICT-FREAK.NL blog had great post on using script to reference a existing host to mount NFS datastores on new ESX host server.  I needed to do exactly that so I used the script from the blog to mount NFS datastore.  It worked great but the problem was that the script does not distinguish between IP mounted datstore and DNS mounted datastore.  My reference host server was using DNS to mount NFS datastore and the script was mounting the datastore using IP on my new host server.

Unfortunately, hosts in the cluster will treat DNS mounted datastore and IP mounted datastore as different datastore even if you are pointing to the same volume on NFS datatstore system. I decided to make some modification to the script to make it bit simpler and mount NFS datastore using exact configuration from the reference host.

You can validate the NFS IP or DNS mount from the SSH session or powercli command.
esxcfg-nas -l

Download script from HERE

No comments:

Post a Comment