Mount All NFS Datastores From One Host to Another
You can use VMware PowerCLI to mount all the same NFS datastores that reside on one host to another.
The example below shows what to run in order to mount all the NFS datastores that are on "host1.test.com" to "host2.test.com".
foreach ($datastore
in (Get-vmhost host1.test.com |
Get-Datastore | where {$_.Type -eq "nfs" -and $_.Accessible -eq
"true"})){ New-Datastore
-vmhost host2.test.com -Nfs -Name $datastore.Name -Path $datastore.RemotePath
-NfsHost $datastore.RemoteHost }

Comments
Post a Comment