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.