vSAN1

 View Only
  • 1.  VSAN Automated Shutdown Script with PowerCLI (Or Any Alternatives)

    Posted Jun 02, 2015 04:14 PM

    Good morning VSAN fans!

    I am trying to create an automated shutdown script using PowerCLI. I have a good thing going thus far, except for the Maintenance Mode piece. I cannot find anywhere where PowerCLI addresses the additional options for entering in to Maintenance Mode. I need to have the selection be No Data Migration. Is this anywhere that I am not seeing by chance?

    Does anyone already have a good VSAN shutdown script they are willing to share?

    Thanks,

    Chris



  • 2.  RE: VSAN Automated Shutdown Script with PowerCLI (Or Any Alternatives)

    Posted Jun 02, 2015 07:54 PM

    Hello Chris,

    Not sure of the PowerCLI cmdlet, but to take the ESXi host to maintenance mode while specifying an action the VSAN service must take before the host can enter maintenance mode (default noAction) you may try the below command:


    esxcli system maintenanceMode set -e true -m ["ensureObjectAccessibility" or "evacuateAllData" or "noAction"]

    NOTE: These options exist for ESXi 6.0.



  • 3.  RE: VSAN Automated Shutdown Script with PowerCLI (Or Any Alternatives)

    Posted Jun 10, 2015 03:25 PM

    Vuzzini,

    Thanks for this. I do know about the ESXCLI command, but the script I have been working on is for emergency shutdown of the data center here. We have limited backup batteries and zero backup generators for now (school district, lol) Basically, this is to kill everything before power dies.

    Chris