VMware Cloud Community
esxi1979
Expert
Expert

Get-datastore NFS type

Get-Datastore | Where {$_.Type -eq "NFS"} gives useful info

but what it does not give is the filer IP ... can we get that somehow

Reply
0 Kudos
5 Replies
mattboren
Expert
Expert

Hello, esxi1979-

I believe that you are talking about getting the NFS server address -- the address of the RemoteHost for the NFS server.  If so, you can get that via the RemoteHost property of the returned datastore objects.  Like:

Get-Datastore | Where {$_.Type -eq "NFS"} | Select Name, FreeSpaceGB, CapacityGB, RemoteHost, RemotePath

How does that do for you?

Reply
0 Kudos
esxi1979
Expert
Expert

Any idea why it gives me

 

RemoteHost

System.String[]

Reply
0 Kudos
esxi1979
Expert
Expert

i got Lucd Stuff

Get-Datastore | where {$_.type -eq "NFS"} | Get-View | select @{N="Host"; E={$_.Info.Nas.RemoteHost}},

                @{N="Path"; E={$_.Info.Nas.RemotePath}},

            @{N="Capacity"; E={$_.Info.Nas.Capacity}},

            @{N="Free"; E={$_.Info.FreeSpace}} | ft -Wrap

Reply
0 Kudos
mattboren
Expert
Expert

Hello-

It appears that the given datastore has multiple values for that RemoteHost property.  This can be the case when using NFS v4.1 -- multiple remote host name values in the property.

Reply
0 Kudos
esxi1979
Expert
Expert

dumb Q.. afaik we use nfs 3. So does that mean its esxported as nfs 4 from filer & also mounted at esxi node level  ?  vcenter does not allow to specify the mount options ... does the negotiation happens automattically ?

mine is esxi 5.5 here

Reply
0 Kudos