You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines

  1. `comment`: `<string>` ::
  2. Description.
  3. `group`: `<string>` ::
  4. The HA group identifier.
  5. `max_relocate`: `<integer> (0 - N)` ('default =' `1`)::
  6. Maximal number of service relocate tries when a service failes to start.
  7. `max_restart`: `<integer> (0 - N)` ('default =' `1`)::
  8. Maximal number of tries to restart the service on a node after its start failed.
  9. `state`: `<disabled | enabled | ignored | started | stopped>` ('default =' `started`)::
  10. Requested resource state. The CRM reads this state and acts accordingly.
  11. Please note that `enabled` is just an alias for `started`.
  12. +
  13. `started`;;
  14. +
  15. The CRM tries to start the resource. Service state is
  16. set to `started` after successful start. On node failures, or when start
  17. fails, it tries to recover the resource. If everything fails, service
  18. state it set to `error`.
  19. +
  20. `stopped`;;
  21. +
  22. The CRM tries to keep the resource in `stopped` state, but it
  23. still tries to relocate the resources on node failures.
  24. +
  25. `disabled`;;
  26. +
  27. The CRM tries to put the resource in `stopped` state, but does not try
  28. to relocate the resources on node failures. The main purpose of this
  29. state is error recovery, because it is the only way to move a resource out
  30. of the `error` state.
  31. +
  32. `ignored`;;
  33. +
  34. The resource gets removed from the manager status and so the CRM and the LRM do
  35. not touch the resource anymore. All {pve} API calls affecting this resource
  36. will be executed, directly bypassing the HA stack. CRM commands will be thrown
  37. away while there source is in this state. The resource will not get relocated
  38. on node failures.