Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Ambdós costats versió prèvia Revisió prèvia Següent revisió | Revisió prèvia | ||
|
cluster_hardware_amb_pacemaker_i_corosync [2023/07/03 06:18] isaac_gonzalo_rivero [Software] |
cluster_hardware_amb_pacemaker_i_corosync [2023/07/06 06:52] (actual) isaac_gonzalo_rivero |
||
|---|---|---|---|
| Línia 513: | Línia 513: | ||
| <code bash> | <code bash> | ||
| - | crm(live/ | + | crm(live/ |
| crm(live/ | crm(live/ | ||
| crm(live/ | crm(live/ | ||
| Línia 556: | Línia 556: | ||
| crm(fencing/ | crm(fencing/ | ||
| crm(fencing/ | crm(fencing/ | ||
| - | crm(fencing/ | + | crm(fencing/ |
| - | crm(fencing/ | + | crm(fencing/ |
| - | params ipaddr=172.16.84.20 port=node3 action=off login=root passwd=Hola123 op monitor interval=60s | + | crm(fencing/ |
| crm(fencing/ | crm(fencing/ | ||
| crm(fencing/ | crm(fencing/ | ||
| Línia 565: | Línia 565: | ||
| </ | </ | ||
| - | ===== Operació ====== | + | Amb això ja tindriem generats els agents de tanca. Podem simular el funcionament amb la nova cib: |
| + | |||
| + | <code bash> | ||
| + | crm(fencing/ | ||
| + | Current cluster status: | ||
| + | * Node List: | ||
| + | * Online: [ node1 node2 node3 ] | ||
| + | |||
| + | * Full List of Resources: | ||
| + | * IP-nginx (ocf: | ||
| + | * Nginx-rsc (ocf: | ||
| + | * fence_node01 (stonith: | ||
| + | * fence_node02 (stonith: | ||
| + | * fence_node03 (stonith: | ||
| + | |||
| + | Transition Summary: | ||
| + | * Start fence_node01 | ||
| + | * Start fence_node02 | ||
| + | * Start fence_node03 | ||
| + | |||
| + | Executing Cluster Transition: | ||
| + | * Resource action: fence_node01 | ||
| + | * Resource action: fence_node01 | ||
| + | * Resource action: fence_node01 | ||
| + | * Resource action: fence_node02 | ||
| + | * Resource action: fence_node02 | ||
| + | * Resource action: fence_node02 | ||
| + | * Resource action: fence_node03 | ||
| + | * Resource action: fence_node03 | ||
| + | * Resource action: fence_node03 | ||
| + | * Resource action: fence_node01 | ||
| + | * Resource action: fence_node02 | ||
| + | * Resource action: fence_node03 | ||
| + | * Resource action: fence_node01 | ||
| + | * Resource action: fence_node02 | ||
| + | * Resource action: fence_node03 | ||
| + | |||
| + | Revised Cluster Status: | ||
| + | * Node List: | ||
| + | * Online: [ node1 node2 node3 ] | ||
| + | |||
| + | * Full List of Resources: | ||
| + | * IP-nginx (ocf: | ||
| + | * Nginx-rsc (ocf: | ||
| + | * fence_node01 (stonith: | ||
| + | * fence_node02 (stonith: | ||
| + | * fence_node03 (stonith: | ||
| + | |||
| + | </ | ||
| + | |||
| + | I, si tot sembla correcte, podem pasar els canvis a producció: | ||
| + | |||
| + | <code bash> | ||
| + | crm(fencing/ | ||
| + | INFO: configure.cib.commit: | ||
| + | crm(fencing/ | ||
| + | crm(live/ | ||
| + | </ | ||
| + | |||
| + | Per fer un check de l' | ||
| + | |||
| + | que ens haurà de donar un resultat semblant al següent: | ||
| + | |||
| + | <code bash> | ||
| + | crm_mon | ||
| + | |||
| + | Cluster Summary: | ||
| + | * Stack: corosync | ||
| + | * Current DC: node2 (version 2.1.5-a3f44794f94) - partition with quorum | ||
| + | * Last updated: Mon Jul 3 08:41:48 2023 | ||
| + | * Last change: | ||
| + | * 3 nodes configured | ||
| + | * 5 resource instances configured | ||
| + | |||
| + | Node List: | ||
| + | * Online: [ node1 node2 node3 ] | ||
| + | |||
| + | Active Resources: | ||
| + | * IP-nginx | ||
| + | * Nginx-rsc | ||
| + | * fence_node01 | ||
| + | * fence_node02 | ||
| + | * fence_node03 | ||
| + | |||
| + | </ | ||
| + | |||
| + | Amb això ja tindrem el nostre Nginx en cluster corrent en 3 nodes, i podem jugar tancant i encenent nodes i comprovar com l' | ||
| ===== Referències ===== | ===== Referències ===== | ||