Automation

 View Only
  • 1.  NFS mount on multiple hosts

    Posted Mar 26, 2008 08:28 PM

    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



  • 2.  RE: NFS mount on multiple hosts

    Posted Mar 27, 2008 12:50 AM

    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)



  • 3.  RE: NFS mount on multiple hosts
    Best Answer

    Posted Mar 27, 2008 01:13 PM

    Something like this

    $ESXSrv = Get-VIServer -Server

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



  • 4.  RE: NFS mount on multiple hosts

    Posted Mar 27, 2008 10:31 PM

    Works like magic , thanks!

    I can't understand why the -path is required? I have the - remotepath...

    Regards,

    David



  • 5.  RE: NFS mount on multiple hosts

    Posted Mar 27, 2008 11:13 PM

    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.