How do I edit /etc/pve/corosync.conf?

300cpilot

Well-Known Member
Mar 24, 2019
115
6
58
Screwed up a cluster setup and want to change the ip used for the connection. Can I just edit this file to the correct ip?
Not looking forward to reloading it. This is a new cluster so nothing lost yet.
 
Thank you, just what I was looking for.
one more thing - change the IPs (i did it myself) and reboot the whole cluster. i spend hours searching for the mistake where nowhere was found. i was feed up and ready to rebuild the whole cluster, the monitors never back back alive (coulnt be recreated nor deleted). after a reboot, actually 2, the whole cluster was up and running again.
 
cannot update corosync.conf file and also cannot create any file in pve directory. So, cannot follow instruction to copy corosync.conf in corosync.conf.new
 
cannot update corosync.conf file and also cannot create any file in pve directory. So, cannot follow instruction to copy corosync.conf in corosync.conf.new
That's because you have lost quorum so the pmxcfs filesystem mounted at /etc/pve went into read-only mode.

There are ways to override this, and one is actually referred to in the linked docs, but one can also break more things if unusre, so it would be good if you start writing more about your setup (e.g., how many nodes?) and how this happened, i.e., what was your last change done that resulted in cluster breakage?
 
  • Like
Reactions: J-dub
I've found I break my cluster when switching network cards, from 10.0.0.11 to 10.0.0.12 on my workstation; it is doing qdevice for quorum with a 2 node cluster.

Is this edit OK if I just add more devices for my other network cards? Before:

Code:
quorum {
  device {
    model: net
    net {
      algorithm: ffsplit
      host: 10.0.0.12
      tls: on
    }
    votes: 1
  }
  provider: corosync_votequorum
}

And after.... my workstation is only active on one of these at a time: 10.0.0.11 (int eth), 10.0.0.12 (usb eth), 10.0.0.14 (wifi)

Code:
quorum {
  device {
    model: net
    net {
      algorithm: ffsplit
      host: 10.0.0.11
      tls: on
    }
    votes: 1
  }
  device {
    model: net
    net {
      algorithm: ffsplit
      host: 10.0.0.12
      tls: on
    }
    votes: 1
  }
  device {
    model: net
    net {
      algorithm: ffsplit
      host: 10.0.0.14
      tls: on
    }
    votes: 1
  }
  provider: corosync_votequorum
}
 
Last edited: