How to do maintenance on one node of a two node proxmox cluster?

Nov 23, 2019
5
0
1
36
We have a two-node proxmox cluster and we need to shutdown one of the nodes for maintenance. This node happens to also be the node configured in the totem section of the corosync.conf file. How would we go about doing this safely so that we do not disrupt vm's on the other node?

Code:
logging {
  debug: off
  to_syslog: yes
}

nodelist {
  node {
    name: bso01
    nodeid: 2
    quorum_votes: 1
    ring0_addr: x.x.x.181
  }
  node {
    name: bso02
    nodeid: 1
    quorum_votes: 1
    ring0_addr: x.x.x.183
  }
}

quorum {
  provider: corosync_votequorum
}

totem {
  cluster_name: docdcpve
  config_version: 2
  interface {
    bindnetaddr: x.x.x.183
    ringnumber: 0
  }
  ip_version: ipv4
  secauth: on
  version: 2
}
 
You can shut it down without a problem. The VMs on the other node will keep running. Since you will not have quorum though, you will not be able to do any actions on the remaining node like starting or creating a VM.

For this we recommend to set up the so called QDevice mechanism which needs a small service running on a third computer outside the cluster and provides a third vote. This way, even with one node down, you can still maintain quorum. See the documentation on how to set it up. https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_corosync_external_vote_support