EXSI6 Adding NFS Datastore

Hi,

Trying to mount an NFS datastore on all hosts in the cluster using the Vcenter Web console (Mount datastore to additional Hosts).

When it tries to list all the hosts without the datastore mounted it sits and waits and then times out. has anyone had this with the console for Esxi6 ?

There are only 20 hosts in the cluster so it shouldn't be an issue with the cluster size.
HowardDix85Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Not seen it, do you get an error message ?
0
HowardDix85Author Commented:
No just a time out after a while, almost as if the console cant ever finish the list of hosts. its painful as it means you have to add the DS to all host individually rather than all at the same time. not to bad on a few but 32 is a tough ask!
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
It would seem like that is a bug, VMware Support is the best place for that, if you can add the NFS exports (datastores) individually.

Have you tried scripting it....

We wrote a script (PowerCLI) to do ours, works very quickly.... you can have it if you like.
0
HowardDix85Author Commented:
Hi, Can you send me the script to save me adding it :). many thanks.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Quick and dirty, you should be able to follow it....

$vcserver = "vcenter"
$clustername = "Production Cluster"
# $nfshost1 = "10.99.1.4"
$nfshost2 = "10.99.2.4"
$nfspath1 = "/vol/nfs_datastore11_dcs_san2a"
# $nfspath2 = "/vol/nfs_datastore8_dcs_san2a"
# $nfspath3 = "/vol/nfs_datastore9_dcs_san2a"
# $nfspath4 = "/vol/nfs_datastore10_dcs_san2a"
# $nfspath5 = "/vol/nfs_datastore1_dcs_san2a"
# $nfspath6 = "/vol/nfs_datastore2_dcs_san2a"
# $nfspath7 = "/vol/nfs_datastore3_dcs_san2a"
# $nfspath8 = "/vol/nfs_datastore4_dcs_san2a"
# $nfspath9 = "/vol/nfs_datastore5_dcs_san2a"
# $nfspath10 = "/vol/nfs_datastore6_dcs_san2a"


# Connect to vCenter server
Connect-VIServer $vcserver

# Do the work
$hostsincluster = Get-Cluster $clustername | Get-VMHost -State "Connected" 
ForEach ($vmhost in $hostsincluster)
{
    ""
    "Adding NFS Datastores to ESX host: $vmhost"
    "-----------------"
    "1st - Datastore $nfspath1"
    New-Datastore -VMHost $vmhost -Name "nfs_datastore11_dcs_san2a" -Nfs -NfsHost $nfshost2 -Path $nfspath1
  #  "2nd - Datastore $nfspath2"
  #  New-Datastore -VMHost $vmhost -Name "nfs_datastore8_dcs_san2a" -Nfs -NfsHost $nfshost1 -Path $nfspath2
  #  "3rd - Datastore $nfspath3"
  #  New-Datastore -VMHost $vmhost -Name "nfs_datastore9_dcs_san2a" -Nfs -NfsHost $nfshost2 -Path $nfspath3
  #	"4th - Datastore $nfspath4"
  #  New-Datastore -VMHost $vmhost -Name "nfs_datastore10_dcs_san2a" -Nfs -NfsHost $nfshost1 -Path $nfspath4
  #	"5th - Datastore $nfspath5"
  #  New-Datastore -VMHost $vmhost -Name "nfs_datastore1_dcs_san2a" -Nfs -NfsHost $nfshost2 -Path $nfspath5
  #	"6th - Datastore $nfspath6"
  #  New-Datastore -VMHost $vmhost -Name "nfs_datastore2_dcs_san2a" -Nfs -NfsHost $nfshost1 -Path $nfspath6
  #	"7th - Datastore $nfspath7"
  # New-Datastore -VMHost $vmhost -Name "nfs_datastore3_dcs_san2a" -Nfs -NfsHost $nfshost2 -Path $nfspath7
  #	"8th - Datastore $nfspath8"
  #  New-Datastore -VMHost $vmhost -Name "nfs_datastore4_dcs_san2a" -Nfs -NfsHost $nfshost1 -Path $nfspath8
  #	"9th - Datastore $nfspath9"
  #  New-Datastore -VMHost $vmhost -Name "nfs_datastore5_dcs_san2a" -Nfs -NfsHost $nfshost2 -Path $nfspath9
  #	"10th - Datastore $nfspath10"
  #   New-Datastore -VMHost $vmhost -Name "nfs_datastore6_dcs_san2a" -Nfs -NfsHost $nfshost1 -Path $nfspath10
	
}
"All Done. Check to ensure no errors were reported above."

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.