VMware

Jonathan Marrott's VM Scripting Blog

A swell blog containing some of the scripts I have written for VM management.

Previous Next
3

Create NFS Mount on ESX (Updated)

Posted by froboy Jan 18, 2008

I like to have a mount on each of my ESX servers to allow for quick installations and centralized scripting for cron jobs.

NFS Mount visible from host and service console:
<Required to have a Service Console and VMKernel port>
This can be accessed from /vmfs/volumes/<datastore>
esxcfg-firewall -e nfsClient
esxcfg-nas -a -o nfsserver.yourdomain.com -s /vol/vm nfs01

Manual mount visible from the service console only:
1. Edit /etc/rc.d/rc.local
2. Add: mount nfsserver.yourdomain.com:/vol/vm /mnt/vm
This will allow it to mount on boot.
3. Execute: mkdir /mnt/vm
4. Execute: chkconfig portmap on
5. Execute: service portmap start
6. Execute: esxcfg-firewall -e nfsClient
7. Execute: mount nfsserver.yourdomain.com:/vol/vm /mnt/vm
This will immediately mount.



Nov 20, 2007 2:45 AM osde.info

you might also need

$ chkconfig nfs on
$ service nfs start

and you might like to create a dedicated 172.x.x.x network between ESX servers and ay NFS backup storage

regards
clive (aka osde.info)
http://www.vizzr.info

Apr 2, 2008 6:22 PM setha

You may also need to enable outgoing NFS traffic for the ESX host. A way to do that is through the VIC. There's a procedure for this at page 184 of http://www.vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_3_server_config.pdf
.

Apr 3, 2008 7:18 AM froboy in response to: setha

'esxcfg-firewall -e nfsClient' is all you need for nfs firewall settings unless you are setting up the ESX Host as a nfs server.

Click to view froboy's profile Member since: Jun 26, 2006

A swell blog containing some of the scripts I have written for VM management.

View froboy's profile

Communities