LINBIT / linstor-server

High Performance Software-Defined Block Storage for container, cloud and virtualisation. Fully integrated with Docker, Kubernetes, Openstack, Proxmox etc.
https://docs.linbit.com/docs/linstor-guide/
GNU General Public License v3.0
954 stars 76 forks source link

Maintenance mode #261

Closed aellert closed 2 years ago

aellert commented 2 years ago

Maybe I'm missing something in the doc, but I can't find how to put a node in maintenance.

Presume, I have a 3 node cluster : node1, node2, and node3 and I want to put node1 into maintenance. I'd like to smoothly switch all Primary resources present on node1 to node 2 and node3 and ideally, node1 should not be a Primary for any resources during the maintenance.

chrboe commented 2 years ago

I assume you are using drbd-reactor, in which case that is drbd-reactors job. Just do

drbd-reactorctl disable --now

on the node in question, and it won't schedule any resources there.