With all of my recent ftPerl love, I’ve found that the quickest way to at least start troubleshooting it is to reconfigure the offending host for HA. This is fine if working in a small environment, or on a small number of hosts, but there are a metric ton of these hosts gone sideways all at once, you need a larger hammer. In the words of Duke Nukem “It’s time to PoSH and chew gum, and I’m all outta gum.”
First we had to find out where in the MOB to make the call, and then what the call was. So, poking through the MOB for this, the reconfigure task, is a method made available from the VMHost object. Making this work in PowerShell looks like:
[VI Toolkit] C:\> $vmhostView = get-vmhost | select -first 1 | get-view
[VI Toolkit] C:\> $vmhostView.ReconfigureHostForDAS_Task()
So the logical next step was to make this a bit easier to remember, so I wrapped some pipeline magic around it:
While it doesn’t really justify it’s own script, this makes it much easier to remember & work with.
Questions? Drop a line in the comments.