fix quorum

From marc, 4 Years ago, written in Plain Text, viewed 3'430 times.
URL http://bin.flmt.es/view/03199ac3 Embed
Download Paste or View Raw
  1. Peetaur's Proxmox Quorum Magic 'Fix All'.
  2. ========================================
  3.  
  4. restarting these on the failed node, and the whole cluster might bring back quorum, fix corosync, and fix the red lights problem in the GUI. It's like rebooting without interrupting the VMs (reboot proxmox parts only).
  5.     To create this sequence, I used the order in /etc/rc2.d/, and then I tinkered until it worked:
  6.  
  7.     Consider disabling HA first.
  8.    
  9.     The procedure:
  10.         on all nodes, restart:
  11.             pve-cluster, cman, pvedaemon, pvestatd, pve-manager
  12.        
  13.         on all nodes, restart (again):
  14.             pve-cluster
  15.  
  16.     The procedure again as commands:
  17.         all nodes (fix quorum+lights on other nodes; requires quorum on one node):
  18.             /etc/init.d/pve-cluster restart
  19.             /etc/init.d/cman restart
  20.             /etc/init.d/pvedaemon restart
  21.             /etc/init.d/pvestatd restart
  22.             /etc/init.d/pve-manager restart
  23.        
  24.         all nodes again (makes /etc/pve rw; wait for step 1 to finish first):
  25.             /etc/init.d/pve-cluster restart
  26.        
  27.     NOTE: if you run
  28.         /etc/init.d/pve-manager stop
  29.         then it says it is stopping all the vms. So only use "restart", not "stop" "start"
  30.    
  31.    
  32.     short script and description
  33.         My procedure for getting the green lights back, plus quorum and everything (possibly you need quorum on at least one node before you start) is:
  34.         1. on all nodes (fix quorum+lights on other nodes; requires quorum on one node):
  35.             for n in pve-cluster cman pvedaemon pvestatd pve-manager; do /etc/init.d/$n restart; done
  36.         2. on all nodes (makes /etc/pve rw; wait for step 1 to finish first):
  37.             /etc/init.d/pve-cluster restart

Reply to "fix quorum"

Here you can reply to the paste above