mssql-server-ha.cu4.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --- ag.orig 2018-03-14 10:58:42.360695200 -0700
  2. +++ ag 2018-03-14 10:59:43.194225400 -0700
  3. @@ -117,12 +117,12 @@ mssql_start() {
  4. $OCF_SUCCESS)
  5. # Allow this replica to become a master
  6. #
  7. - crm_master -v 10 -N "$OCF_RESKEY_CRM_meta_on_node"
  8. + crm_master -v 10 -l reboot
  9. ;;
  10. $OCF_RUNNING_MASTER)
  11. # This is already a primary. Set its master score higher than other replicas.
  12. #
  13. - crm_master -v 20 -N "$OCF_RESKEY_CRM_meta_on_node"
  14. + crm_master -v 20 -l reboot
  15. ;;
  16. esac
  17. @@ -224,16 +224,16 @@ mssql_monitor() {
  18. $OCF_SUCCESS)
  19. # Allow this replica to become a master.
  20. #
  21. - crm_master -v 10 -N "$OCF_RESKEY_CRM_meta_on_node"
  22. + crm_master -v 10 -l reboot
  23. ;;
  24. $OCF_RUNNING_MASTER)
  25. # This is a primary. Set its master score higher than other replicas.
  26. #
  27. - crm_master -v 20 -N "$OCF_RESKEY_CRM_meta_on_node"
  28. + crm_master -v 20 -l reboot
  29. ;;
  30. *)
  31. # This replica is not healthy enough to be promoted to a master.
  32. - crm_master -v 0 -N "$OCF_RESKEY_CRM_meta_on_node"
  33. + crm_master -v 0 -l reboot
  34. ;;
  35. esac