Did you ever figure this out? I am looking for more information on this same thing when utilizing tripplite UPSs. Thanks.
Sorry for the very late reply, been busy. This is what I came up with:
Using the vCenter server I created a batch file to:
-Put the cluster in maintenance mode via WSCLI using "enterStorageClusterMaintenanceMode".
-Then issued a command using plink to the master host to shutdown the vm's in the order i specify using the world id.
-Then issued a command to put the hosts into maintenance mode.
-Then issued a command to power off the hosts.
-Then power off the vcenter server.
-I used the Dell MultiUPS console and specified my power source and told it to issue that batch file when the battery gets critical.
Its a little ghetto, but I am no Power Shell programmer and everywhere I went I found little to no help, but it does work. I even called DellUPS support and Dell VMware support and I was told that this had never been done with VSA before. VMware wanted to charge an arm and a leg to help me even though I have SnS support. I dont have the exact batch file that I used but I remember it being something close to the above. Maybe we can get some PowerCli experts or similar to help us out a little.
Thanks for the overview. I find it interesting that VMWare would not help you unless you paid more.
No problem. Yeah, I believe VMware told me that scripting solutions were outside of the SnS Production Support I paid for, but were available at an additional cost. I was a little PO'ed at first but it just made me want to find my own solution that much more. Oh well, is what it is.
So do you need to enter appliance maintenance mode for each of the VSAs first, then put the cluster into maintenance mode?
If you can wait until later today I will login to the cluster and have a look and get back to you.
Sure thing. Thanks for your time. I would imagine the order would be
1. Power Off VM guests
2. Put virtual storage appliances in maintenance mode
3. Put the VSA cluster in maintenance mode
4. Put the hosts in maintenance mode
5. Power off the hosts
Ok, so that seems to be the order. Except rather than using the script to shutdown the VM's, I installed the Dell UPS Local Node Manager to each VM and told it to power off the VM at 20% remaining and set the power source to the ip of the UPS, Domain Controller last. Then at 15% power remaining the UPS attached to the vCenter server fires off to the vCenter dell local node manager telling it to run the script. Using plink.exe in a batch file we send our commands to:
"C:\Program Files\VMware\Infrastructure\jre\bin\java.exe" -jar WSCLI.jar IPOFCLUSTER enterStorageClusterMaintenanceMode,
then using the vmworld id of the VSA appliance VM's themselves we issue:
vim-cmd vmsvc/power.shutdown 1
Then set the hosts to maintenance mode, then power the hosts off, slave first then master, then send a command to the vCenter server to shutdown from the command line. We have to power everything on manually, but I prefer it that way.
Thanks for posting. I will start trying to construct the plan for this and see what I can come up with. I appreciate your efforts.
No problem, that's what these forums are for. Good luck.