====== Cluster ====== ===== DRBD ===== * [[https://linbit.com/drbd-user-guide/users-guide-drbd-8-4/|DRBD 8.4 Official Manual]] * [[https://neutrollized.blogspot.com/2018/11/force-full-drbd-re-sync.html|Full sync DRBD]] * [[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html/online_storage_reconfiguration_guide/persistent_naming#doc-wrapper|Persistent Naming]] ===== Blog post ===== * [[https://www.digitalocean.com/community/tutorials/how-to-create-a-high-availability-setup-with-corosync-pacemaker-and-reserved-ips-on-ubuntu-14-04|DigitalOcean tutorial - How To Create a High Availability Setup with Corosync, Pacemaker, and Reserved IPs on Ubuntu 14.04]] * [[https://www.howtoforge.com/tutorial/how-to-set-up-nginx-high-availability-with-pacemaker-corosync-and-crmsh-on-ubuntu-1604/|HowToForge - How to Set up Nginx High Availability with Pacemaker, Corosync, and Crmsh on Ubuntu 16.04]] * [[https://geekpeek.net/linux-cluster-nodes/|Linux Cluster Part 3]] - Centos 6 **OLD** * [[https://www.golinuxcloud.com/setup-high-availability-cluster-centos-8/|Setup high availability cluster CentOS 8]] * [[https://www.admin-magazine.com/Archive/2023/75/Detect-failures-and-ensure-high-availability/(offset)/6|Detect failures and ensure high availability - Installing and Configuring Corosync/Pacemaker]] * [[https://houseofbrick.com/blog/active-passive-cluster-for-near-ha-using-pacemaker-drbd-corosync-and-mysql/|Active-Passive Cluster for Near HA Using Pacemaker, DRBD, Corosync and MySQL]] - **No sirve**: ''pcs resource master'' -> ''pcs resource promotable'' * [[https://kevwells.com/it-knowledge-base/pacemaker-corosync-cluster-commands-cheat-sheet/|Pacemaker & Corosync Cluster Commands Cheat Sheet]] ==== Stack Overflow ==== * [[https://serverfault.com/questions/908434/corosync-ha-preventing-split-brain-scenario|Corosync HA preventing split-brain scenario]] * [[https://stackoverflow.com/questions/61838575/how-to-know-the-replication-states-in-drbd|DRBD replication states]] ==== Task ==== * [[https://redhatlinux.guru/2018/09/07/pacemaker-remove-constraints/|Pacemaker Remove Constraints]] ===== Man Pages ===== * [[https://manpages.debian.org/stretch/drbd-utils/drbdadm.8.en.html|drbdadm (Debian)]] * [[https://manpages.debian.org/testing/drbd-utils/drbdsetup-9.0.8.en.html|drbdsetup (Debian)]] * [[https://manpages.debian.org/unstable/drbd-utils/drbd.conf-9.0.5.en.html|drbd.conf (Debian)]] * [[https://manpages.debian.org/unstable/corosync/corosync.conf.5.en.html|corosync.conf (Debian)]] * [[https://crmsh.github.io/man-2.0/|crm - Man Page]] * [[https://www.mankier.com/8/pcs|pcs - Man Page]] * [[https://manpages.debian.org/testing/pcs/pcsd.8.en.html|pcsd (Debian)]] * [[https://manpages.debian.org/testing/pcs/pcs.8.en.html|pcs (Debian)]] ==== Resource Agents ==== * [[https://manpages.debian.org/testing/drbd-utils/ocf_linbit_drbd.7.en.html|ocf_linbit_drbd]] * [[https://manpages.debian.org/testing/resource-agents/ocf_heartbeat_lxc.7.en.html|ocf_heartbeat_lxc]] * [[https://manpages.debian.org/testing/pacemaker-resource-agents/ocf_pacemaker_ping.7.en.html|ocf_pacemaker_ping]] * [[https://manpages.debian.org/testing/resource-agents/ocf_heartbeat_MailTo.7.en.html|ocf_heartbeat_MailTo]] * [[https://www.lisenet.com/2019/high-availability-pacemaker-cluster-monitoring/|High Availability Pacemaker Cluster Monitoring]] ===== Official documentation ===== * [[https://documentation.suse.com/sle-ha/12-SP4/html/SLE-HA-all/book-sleha.html|SUSE Linux Enterprise High Availability 12 SP4 Administration Guide]] * [[https://clusterlabs.org/pacemaker/doc/2.1/Pacemaker_Explained/singlehtml/|Pacemaker Explained]] * [[https://clusterlabs.org/pacemaker/doc/deprecated/en-US/Pacemaker/2.0/html/Clusters_from_Scratch/index.html|Clusters from Scratch - Pacemaker 2.0]] * [[https://clusterlabs.org/pacemaker/doc/|Clusterlabs - Pacemarker documentation]] * [[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/high_availability_add-on_reference/s1-moving_resources_due_to_connectivity_changes-haar|Redhat - Moving Resources Due to Connectivity Changes]] * [[https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/high_availability_add-on_reference/index|Redhat - High Availability Add-On Reference]] ===== Tools ===== * [[https://github.com/jnpkrn/clufter|clufter - Tool/library for transforming/analyzing cluster configuration formats]] Finished drbd.service - DRBD -- please disable. Unless you are NOT using a cluster manager.. [[docs:servicios:cluster:cheatsheet|docs:servicios:cluster:cheatsheet]] ====== primitive ====== El comando ''primitive'' describe un recurso. Se puede hacer referencia a él solo una vez en objetos de group, clone o master-slave. Si no se hace referencia a él, se coloca como un recurso único en el CIB. Las operaciones podrán especificarse de forma anónima, grupal o por referencia: "Anónimo", como una lista de especificaciones de ''op''. Utilice este método si no necesita hacer referencia al conjunto de operaciones en otro lugar. Esta es la forma más común de definir operaciones. Si desea reutilizar conjuntos de ''operations'', utilice la palabra clave de ''operations'' junto con una identificación para darle un nombre al conjunto de operaciones. Utilice la palabra clave ''operations'' y un valor id-ref establecido en la identificación de otro conjunto de operaciones para aplicar el mismo conjunto de operaciones a esta primitiva. Los atributos de operación que no se reconocen se guardan como atributos de instancia de esa operación. Un ejemplo típico es ''OCF_CHECK_LEVEL''. Para recursos multiestado, los roles se especifican como ''role=''. Se puede definir una plantilla para recursos que sean del mismo tipo y que compartan la mayor parte de la configuración. Consulte ''rsc_template'' para obtener más información. Los atributos que contienen valores de tiempo, como el atributo de ''interval'' en las operaciones, se configuran como un número simple, que se interpreta como un tiempo en segundos, o utilizando uno de los siguientes sufijos: s, sec - time in seconds (same as no suffix) ms, msec - time in milliseconds us, usec - time in microseconds m, min - time in minutes h, hr - time in hours Usage: primitive {[:[:]]|@