Advertisement
peetaur

proxmox 4.x untested magic fix all

Sep 16th, 2016
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # on all nodes
  4. magicfix() {
  5. service pve-cluster stop
  6. service pvedaemon stop
  7. service cman stop
  8.  
  9. service pve-cluster start
  10. service cman start
  11. service pvedaemon start
  12.  
  13. # this one could possibly restart VMs in 4.x (but doesn't in 3.x), so disable unless you think you need it
  14. #service pve-manager restart
  15.  
  16. service pvestatd restart
  17. service pveproxy restart
  18. service pve-firewall restart
  19. service pvefw-logger restart
  20. }
  21. magicfix
  22.  
  23. # again after above was done on all nodes (makes /etc/pve rw)
  24. service pve-cluster restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement