NoPaste

pacemakerconfig

von Colttt

Dein Code:
  1. ##befehle auf dem zfs-serv1 ausgeführt
  2.  
  3. crm(live)# status
  4. Stack: corosync
  5. Current DC: zfs-serv2 (version 1.1.16-94ff4df) - partition with quorum
  6. Last updated: Fri Oct  6 08:33:17 2017
  7. Last change: Fri Oct  6 08:29:56 2017 by root via crm_resource on zfs-serv1
  8.  
  9. 2 nodes configured
  10. 2 resources configured
  11.  
  12. Online: [ zfs-serv1 zfs-serv2 ]
  13.  
  14. Full list of resources:
  15.  
  16.  Resource Group: complete_start
  17.      nc_storage (ocf::heartbeat:ZFS):   Started zfs-serv1
  18.      failover_ip        (ocf::heartbeat:IPaddr2):       Started zfs-serv1
  19.  
  20.  
  21. crm(live)# resource move complete_start zfs-serv2
  22. INFO: Move constraint created for complete_start to zfs-serv2
  23.  
  24.  
  25. crm(live)# status
  26. Stack: corosync
  27. Current DC: zfs-serv2 (version 1.1.16-94ff4df) - partition with quorum
  28. Last updated: Fri Oct  6 08:34:24 2017
  29. Last change: Fri Oct  6 08:33:28 2017 by root via crm_resource on zfs-serv1
  30.  
  31. 2 nodes configured
  32. 2 resources configured
  33.  
  34. Online: [ zfs-serv1 zfs-serv2 ]
  35.  
  36. Full list of resources:
  37.  
  38.  Resource Group: complete_start
  39.      nc_storage (ocf::heartbeat:ZFS):   Started zfs-serv1
  40.      failover_ip        (ocf::heartbeat:IPaddr2):       Started zfs-serv1
  41.  
  42.  
  43. crm(live)# config show
  44. node 739272007: zfs-serv1
  45. node 739272008: zfs-serv2
  46. primitive failover_ip IPaddr2 \
  47.         params ip=172.16.101.70 cidr_netmask=16 \
  48.         op monitor interval=10s nic=bond0
  49. primitive nc_storage ZFS \
  50.         params pool=nc_storage
  51. group complete_start nc_storage failover_ip
  52. location cli-prefer-complete_start complete_start role=Started inf: zfs-serv2
  53. location cli-prefer-failover_ip failover_ip role=Started inf: zfs-serv1
  54. location cli-prefer-nc_storage nc_storage role=Started inf: zfs-serv1
  55. property cib-bootstrap-options: \
  56.         have-watchdog=false \
  57.         dc-version=1.1.16-94ff4df \
  58.         cluster-infrastructure=corosync \
  59.         cluster-name=debian \
  60.         no-quorum-policy=ignore \
  61.         default-resource-stickiness=100 \
  62.         stonith-enabled=false \
  63.         last-lrm-refresh=1507209777
  64.  
  65.  
  66. ###############################
  67. ###############################
  68. /var/log/pacemaker.log von zfs-serv2
  69.  
  70. Oct 06 08:33:28 [2055] zfs-serv2        cib:     info: cib_process_request:     Completed cib_delete operation for section constraints: OK (rc=0, origin=zfs-serv1/crm_resource/3, version=0.29.5)
  71. Oct 06 08:33:28 [2055] zfs-serv2        cib:     info: cib_perform_op:  Diff: --- 0.29.5 2
  72. Oct 06 08:33:28 [2055] zfs-serv2        cib:     info: cib_perform_op:  Diff: +++ 0.30.0 (null)
  73. Oct 06 08:33:28 [2055] zfs-serv2        cib:     info: cib_perform_op:  +  /cib:  @epoch=30, @num_updates=0
  74. Oct 06 08:33:28 [2055] zfs-serv2        cib:     info: cib_perform_op:  +  /cib/configuration/constraints/rsc_location[@id='cli-prefer-complete_start']:  @node=zfs-serv2
  75. Oct 06 08:33:28 [2055] zfs-serv2        cib:     info: cib_process_request:     Completed cib_modify operation for section constraints: OK (rc=0, origin=zfs-serv1/crm_resource/4, version=0.30.0)
  76. Oct 06 08:33:28 [2060] zfs-serv2       crmd:     info: abort_transition_graph:  Transition aborted by rsc_location.cli-prefer-complete_start 'modify': Configuration change | cib=0.30.0 source=te_update_diff:444 path=/cib/configuration/constraints/rsc_location[@id='cli-prefer-complete_start'] complete=true
  77. Oct 06 08:33:28 [2060] zfs-serv2       crmd:   notice: do_state_transition:     State transition S_IDLE -> S_POLICY_ENGINE | input=I_PE_CALC cause=C_FSA_INTERNAL origin=abort_transition_graph
  78. Oct 06 08:33:28 [2059] zfs-serv2    pengine:   notice: unpack_config:   On loss of CCM Quorum: Ignore
  79. Oct 06 08:33:28 [2059] zfs-serv2    pengine:     info: determine_online_status: Node zfs-serv1 is online
  80. Oct 06 08:33:28 [2059] zfs-serv2    pengine:     info: determine_online_status: Node zfs-serv2 is online
  81. Oct 06 08:33:28 [2059] zfs-serv2    pengine:     info: group_print:      Resource Group: complete_start
  82. Oct 06 08:33:28 [2059] zfs-serv2    pengine:     info: native_print:         nc_storage (ocf::heartbeat:ZFS):   Started zfs-serv1
  83. Oct 06 08:33:28 [2059] zfs-serv2    pengine:     info: native_print:         failover_ip        (ocf::heartbeat:IPaddr2):       Started zfs-serv1
  84. Oct 06 08:33:28 [2059] zfs-serv2    pengine:     info: LogActions:      Leave   nc_storage      (Started zfs-serv1)
  85. Oct 06 08:33:28 [2059] zfs-serv2    pengine:     info: LogActions:      Leave   failover_ip     (Started zfs-serv1)
  86. Oct 06 08:33:28 [2059] zfs-serv2    pengine:   notice: process_pe_message:      Calculated transition 4, saving inputs in /var/lib/pacemaker/pengine/pe-input-21.bz2
  87. Oct 06 08:33:28 [2060] zfs-serv2       crmd:     info: do_state_transition:     State transition S_POLICY_ENGINE -> S_TRANSITION_ENGINE | input=I_PE_SUCCESS cause=C_IPC_MESSAGE origin=handle_response
  88. Oct 06 08:33:28 [2060] zfs-serv2       crmd:     info: do_te_invoke:    Processing graph 4 (ref=pe_calc-dc-1507271608-37) derived from /var/lib/pacemaker/pengine/pe-input-21.bz2
  89. Oct 06 08:33:28 [2060] zfs-serv2       crmd:   notice: run_graph:       Transition 4 (Complete=0, Pending=0, Fired=0, Skipped=0, Incomplete=0, Source=/var/lib/pacemaker/pengine/pe-input-21.bz2): Complete
  90. Oct 06 08:33:28 [2060] zfs-serv2       crmd:     info: do_log:  Input I_TE_SUCCESS received in state S_TRANSITION_ENGINE from notify_crmd
  91. Oct 06 08:33:28 [2060] zfs-serv2       crmd:   notice: do_state_transition:     State transition S_TRANSITION_ENGINE -> S_IDLE | input=I_TE_SUCCESS cause=C_FSA_INTERNAL origin=notify_crmd
  92. Oct 06 08:33:28 [2055] zfs-serv2        cib:     info: cib_file_backup: Archived previous version as /var/lib/pacemaker/cib/cib-61.raw
  93. Oct 06 08:33:28 [2055] zfs-serv2        cib:     info: cib_file_write_with_digest:      Wrote version 0.30.0 of the CIB to disk (digest: c99dc3cdcc0a492a3679291700b8a485)
  94. Oct 06 08:33:28 [2055] zfs-serv2        cib:     info: cib_file_write_with_digest:      Reading cluster configuration file /var/lib/pacemaker/cib/cib.O0MwMP (digest: /var/lib/pacemaker/cib/cib.s3B9xZ)
  95. Oct 06 08:33:33 [2055] zfs-serv2        cib:     info: cib_process_ping:        Reporting our current digest to zfs-serv2: ebbdc427493aa8bdf5912987d3cdce41 for 0.30.0 (0x563381c31f00 0)

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. Alternativ kannst du den gesamten Eintrag auch als Datei herunterladen.