VMware Cloud Community
David_Ank
Enthusiast
Enthusiast
Jump to solution

NFS mount on multiple hosts

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
Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
4 Replies
halr9000
Commander
Commander
Jump to solution

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
Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
David_Ank
Enthusiast
Enthusiast
Jump to solution

Works like magic , thanks!

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

Regards,

David

Regards, David
Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos