Automated Storage vMotions and Datastore Upgrades with PowerCLI…Wait What?!

DOWNLOAD THE SCRIPT click HERE

Oh yeah…this one is going to be the mother. As it is currently just over 400 lines of code…Yeah I am exhausted. Anyway Here is the dealio

The end goal of this script is to automatically upgrade VMFS datastores to v5. However first it has to move all the VMs off of the datastore. SOOO…. you could say that the first part of this script is kind of a “poor man’s” SDRS Maintenance Mode. However it doesn’t take into account nearly the amount of things taken into account for the SDRS Storage vMotions, it just intelligently(or semi-intelligently) Storage vMotions VMs away from the datastore.

(more…)