#Take down a storage node before vMotion

1 messages · Page 1 of 1 (latest)

fair horizon
#

With the latest critical security vulnerabilities being patched in the vSphere environment we started thinking about how we can automate bringing down a SG storage node so that the ESXi host can be rebooted.
Is there something in the Grid management API (or similar) to use for this?
Only thing I found was the /grid/node-storage-state/{nodeId} call to set the state offline but it didn't seem to do anything when I looked at the Console of the VM.

Manually we follow the procedure described here:
https://docs.netapp.com/us-en/storagegrid/maintain/shutting-down-grid-node.html

lavish sentinel
#

There is no api in storagegrid to shutdown a node, but you should be able to use VMWare automation tools to shutdown the VM's gracefully.

fair horizon
#

Do you perhaps know of an example for doing that?
I don't see how to set it up so that the services are stopped before graceful shutdown of the VM.

abstract edge
#

you can always just log into the node and run 'shutdown now'

fair horizon
abstract edge
#

i don't know what VMware actually tells the host to do, but if it simply a "shutdown" command, then there's not much else to do. It would make sense that it does that, but I don't actually know that it does via vmware tools, otherwise a lot of things would get corrupted on VM's