VMware

This Question is Answered

2 "helpful" answers available (6 pts)
4 Replies Last post: Mar 27, 2008 4:13 PM by LucD  

NFS mount on multiple hosts posted: Mar 26, 2008 1:28 PM

Click to view David Ank's profile Enthusiast 19 posts since
Oct 22, 2007

Hi,

I have virtual center with 5 hosts.

I'v tried to mount the same NFS dir to all of the hosts with no success.

can any one help and guide with syntax example?

thanks,

David

Re: NFS mount on multiple hosts

1. Mar 26, 2008 5:50 PM in response to: David Ank
Click to view halr9000's profile Master 814 posts since
Jun 7, 2007
I have no idea but I'd like to know the answer as well. I haven't gotten to datastores yet in my research.

Hal Rottenberg
Co-Host, PowerScripting Podcast (http://powerscripting.net)

Re: NFS mount on multiple hosts

2. Mar 27, 2008 6:13 AM in response to: halr9000
Click to view LucD's profile Champion 2,445 posts since
Oct 31, 2005
Something like this

$ESXSrv = Get-VIServer -Server <vcserver>
Get-VMHost | New-Datastore -Nfs -Name NFSds -Path NFSds -RemoteHost <NFSserver> -RemotePath <NFSexport>

Note that -Name seems to be required allthough the helpfile says it's not.

Re: NFS mount on multiple hosts

4. Mar 27, 2008 4:13 PM in response to: David Ank
Click to view LucD's profile Champion 2,445 posts since
Oct 31, 2005
That had me confused as well in the beginning.
The SDK has a rather good explanantion (see http://www.vmware.com/support/developer/vc-sdk/visdk25pubs/ReferenceGuide/vim.host.MountInfo.html)
"Local file path where file system volume is mounted, if applicable. This path identifies the file system volume from the point of view of the host."

In short, it is the directory, on the ESX server, under /vmfs/volumes where the NFS share is mounted.

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities