VMware Cloud Community
Lfrisino
Enthusiast
Enthusiast
Jump to solution

How to go about hard coding a =n NFS share in ESX 3.0.1

I would like to create an NFS share on a ESX 3.0.1 host. I am creating a bash script that will be run from the Windows share (Windows for Unix Service 3.5 installed on the Windows 2003 server). I will use this script which will be run from each ESX 3.0.1 host that will look to see if there are any snapshots on the vms and, if so, delete them. This way, the delete script will be centrallly located on the Windows host, so it will not create an issue if the vm is migrated to another host.

Where can I find the steps to create an NFS share (not from Virtual Center) that will resote the NFS share upon reboot of the host?

Thanks

0 Kudos
1 Solution

Accepted Solutions
Paul_R
Enthusiast
Enthusiast
Jump to solution

The following command will create a NFS share connection for you for your ESX Host that will be availble when you reboot the host.

#esxcfg-nas -a -o 192.168.1.1 -s /NFS_SHARE NFSSHARE

esxcfg-nas Set the name of the NAS share on the remote system.

-d|--delete Unmount and delete a filesystem.

-l|--list List the currently mounted NAS file systems.

-r|--restore Restore all NAS mounts from the configuration file.

(FOR INTERNAL USE ONLY).

-h|--help Show this message.

You will need to restart the VC agent for the NFS connection to be visible within VC.

#service mgmt-vmware restart

View solution in original post

0 Kudos
1 Reply
Paul_R
Enthusiast
Enthusiast
Jump to solution

The following command will create a NFS share connection for you for your ESX Host that will be availble when you reboot the host.

#esxcfg-nas -a -o 192.168.1.1 -s /NFS_SHARE NFSSHARE

esxcfg-nas Set the name of the NAS share on the remote system.

-d|--delete Unmount and delete a filesystem.

-l|--list List the currently mounted NAS file systems.

-r|--restore Restore all NAS mounts from the configuration file.

(FOR INTERNAL USE ONLY).

-h|--help Show this message.

You will need to restart the VC agent for the NFS connection to be visible within VC.

#service mgmt-vmware restart

0 Kudos