Tuesday, June 11, 2013

Mass Create NFS Datastores in vCenter

If you have a lot of hosts, and want to speed up deployment of a new NFS volume, this will add the volume to all the hosts in your vCenter.

In VMware PowerCLI:


connect-viserver <vcenterserver>

get-vmhost | new-datastore -nfs -name <datastorename> -path "/vol/volume" -nfshost <ip-hostname>

No comments:

Post a Comment

Featured Post

Remove 3D Objects and other annoying folders on Windows 10

 Microsoft just keeps adding more crap to clutter up the navigation in Windows 10.  Seriously, who needs a 3D Objects folder?  The tiny perc...