David_Ank
Enthusiast
Enthusiast

NFS mount on multiple hosts

Jump to solution

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

Regards, David
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

Something like this

$ESXSrv = Get-VIServer -Server

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


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
4 Replies
halr9000
Commander
Commander

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)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
0 Kudos
LucD
Leadership
Leadership

Something like this

$ESXSrv = Get-VIServer -Server

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


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
David_Ank
Enthusiast
Enthusiast

Works like magic , thanks!

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

Regards,

David

Regards, David
0 Kudos
LucD
Leadership
Leadership

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.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos