Advertisement
amartin

vcs corosync.conf

Dec 28th, 2012
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. totem {
  2. version: 2
  3.  
  4. # crypto_cipher and crypto_hash: Used for mutual node authentication.
  5. # If you choose to enable this, then do remember to create a shared
  6. # secret with "corosync-keygen".
  7. crypto_cipher: none
  8. crypto_hash: none
  9.  
  10. # This specifies the mode of redundant ring, which may be none, active, or passive.
  11. # active: use both rings at once (shorter failover time)
  12. # passive: use just one ring until it fails
  13. rrp_mode: passive
  14.  
  15. # interface: define at least one interface to communicate
  16. # over. If you define more than one interface stanza, you must
  17. # also set rrp_mode.
  18.  
  19. interface {
  20. # the LAN
  21. ringnumber: 0
  22. bindnetaddr: 10.0.0.170
  23. mcastaddr: 226.94.1.1
  24. mcastport: 5425
  25. ttl: 1
  26. }
  27.  
  28. interface {
  29. # the STONITH network
  30. ringnumber: 1
  31. bindnetaddr: 192.168.7.170
  32. mcastaddr: 226.94.1.1
  33. mcastport: 5429
  34. ttl: 1
  35. }
  36.  
  37. }
  38.  
  39. nodelist {
  40. node {
  41. ring0_addr: 10.0.0.170
  42. ring1_addr: 192.168.7.170
  43. }
  44.  
  45. node {
  46. ring0_addr: 10.0.0.171
  47. ring1_addr: 192.168.7.171
  48. }
  49.  
  50. node {
  51. ring0_addr: 10.0.0.45
  52. ring1_addr: 192.168.7.45
  53. }
  54. }
  55.  
  56. logging {
  57. # Log the source file and line where messages are being
  58. # generated. When in doubt, leave off. Potentially useful for
  59. # debugging.
  60. fileline: off
  61. # Log to standard error. When in doubt, set to no. Useful when
  62. # running in the foreground (when invoking "corosync -f")
  63. to_stderr: no
  64. # Log to a log file. When set to "no", the "logfile" option
  65. # must not be set.
  66. to_logfile: yes
  67. logfile: /var/log/corosync.log
  68. # Log to the system log daemon. When in doubt, set to yes.
  69. to_syslog: no
  70. syslog_priority: warning
  71. # Log debug messages (very verbose). When in doubt, leave off.
  72. debug: off
  73. # Log messages with time stamps. When in doubt, set to on
  74. # (unless you are only logging to syslog, where double
  75. # timestamps can be annoying).
  76. timestamp: on
  77. logger_subsys {
  78. subsys: QUORUM
  79. debug: off
  80. }
  81. }
  82.  
  83. quorum {
  84. # Enable and configure quorum subsystem (default: off)
  85. # see also corosync.conf.5 and votequorum.5
  86. provider: corosync_votequorum
  87. expected_votes: 3
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement