{"id":28764,"date":"2023-06-30T17:20:39","date_gmt":"2023-06-30T15:20:39","guid":{"rendered":"https:\/\/blog.miniserver.it\/?p=28764"},"modified":"2023-06-30T17:26:24","modified_gmt":"2023-06-30T15:26:24","slug":"2-node-proxmox-ve-cluster-5-things-to-know","status":"publish","type":"post","link":"https:\/\/blog.miniserver.it\/en\/proxmox-ve\/2-node-proxmox-ve-cluster-5-things-to-know\/","title":{"rendered":"2 Node Proxmox VE Cluster: 5 Things to Know"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container has-pattern-background has-mask-background nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"max-width:1123.2px;margin-left: calc(-4% \/ 2 );margin-right: calc(-4% \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:20px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-1\" style=\"--awb-margin-top:30px;\"><p>In this article we clarify 5 things to know about the functioning of the 2 Node Proxmox VE Cluster.<\/p>\n<\/div><\/div><\/div><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-1 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-padding-right:20px;--awb-padding-left:20px;--awb-bg-color:#f1f4f6;--awb-bg-color-hover:#f1f4f6;--awb-bg-blend:overlay;--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:0px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-title title fusion-title-1 fusion-sep-none fusion-title-text fusion-title-size-three\" style=\"--awb-margin-top:20px;--awb-margin-bottom:20px;--awb-margin-top-small:10px;--awb-margin-right-small:0px;--awb-margin-bottom-small:10px;--awb-margin-left-small:0px;\"><h3 class=\"fusion-title-heading title-heading-left\" style=\"margin:0;\">5 Things to know about 2 Node Proxmox VE Cluster<\/h3><\/div><div class=\"awb-toc-el awb-toc-el--1\" data-awb-toc-id=\"1\" data-awb-toc-options=\"{&quot;allowed_heading_tags&quot;:{&quot;h3&quot;:0},&quot;ignore_headings&quot;:&quot;&quot;,&quot;ignore_headings_words&quot;:&quot;5 Cose da sapere sul cluster Proxmox VE a Due Nodi&quot;,&quot;enable_cache&quot;:&quot;yes&quot;,&quot;highlight_current_heading&quot;:&quot;no&quot;,&quot;hide_hidden_titles&quot;:&quot;yes&quot;,&quot;limit_container&quot;:&quot;post_content&quot;,&quot;select_custom_headings&quot;:&quot;&quot;,&quot;icon&quot;:&quot;fa-flag fas&quot;,&quot;counter_type&quot;:&quot;none&quot;}\" style=\"--awb-margin-bottom:20px;--awb-margin-left:30px;\"><div class=\"awb-toc-el__content\"><\/div><\/div><\/div><\/div><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-2 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:20px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-2\" style=\"--awb-margin-top:30px;\"><h3 id=\"toc_1_Cosa_succede_se_cade_un_nodo\">1. What happens if a node fails<\/h3>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-28787\" src=\"https:\/\/blog.miniserver.it\/wp-content\/uploads\/Cluster-operation-even-if-Proxmox-Backup-Server-suddenly-crashes.png\" alt=\"Cluster operation even if Proxmox Backup Server suddenly crashes\" width=\"1280\" height=\"720\" srcset=\"https:\/\/blog.miniserver.it\/wp-content\/uploads\/Cluster-operation-even-if-Proxmox-Backup-Server-suddenly-crashes-200x113.png 200w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Cluster-operation-even-if-Proxmox-Backup-Server-suddenly-crashes-400x225.png 400w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Cluster-operation-even-if-Proxmox-Backup-Server-suddenly-crashes-600x338.png 600w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Cluster-operation-even-if-Proxmox-Backup-Server-suddenly-crashes-601x338.png 601w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Cluster-operation-even-if-Proxmox-Backup-Server-suddenly-crashes-768x432.png 768w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Cluster-operation-even-if-Proxmox-Backup-Server-suddenly-crashes-800x450.png 800w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Cluster-operation-even-if-Proxmox-Backup-Server-suddenly-crashes-1024x576.png 1024w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Cluster-operation-even-if-Proxmox-Backup-Server-suddenly-crashes-1200x675.png 1200w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Cluster-operation-even-if-Proxmox-Backup-Server-suddenly-crashes.png 1280w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/p>\n<p>Starting from the scheme with the PBS (Proxmox Backup Server) node, Node A and Node B.<\/p>\n<p>Assuming that one of the three nodes fails.<\/p>\n<p><span style=\"color: var(--awb-text-color); font-family: var(--awb-text-font-family); font-size: var(--awb-font-size); font-style: var(--awb-text-font-style); font-weight: var(--awb-text-font-weight); letter-spacing: var(--awb-letter-spacing); text-align: var(--awb-content-alignment); text-transform: var(--awb-text-transform); background-color: var(--awb-bg-color-hover);\">Absolutely nothing happens at a cluster level, because you have to think of the 2 node cluster as if it were a 3 node cluster from a quorum perspective.<\/span><\/p>\n<p>For example, if Proxmox Backup Server suddenly fails, absolutely nothing happens. The important thing is to keep at least two nodes runnign out of 3, as per Proxmox specifications.<\/p>\n<p>Furthermore, you can easily migrate a virtual machine from Node A to Node B and from Node B to Node A in live mode, i.e. without shutting down the resources.<\/p>\n<p>For example, a running VM can be migrated live from Node A to Node B, regardless of whether the replicas are scheduled or not.<\/p>\n<p>If the replicas are scheduled, when migrating a virtual machine from Node A to Node B, replication tasks will automatically be reversed, so it will be from Node B to Node A.<\/p>\n<\/div><div class=\"fusion-text fusion-text-3\" style=\"--awb-margin-top:30px;\"><h3 id=\"toc_2_Come_determinare_a_quantita_di_storage\">2. How to determine the amount of storage<\/h3>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-28789\" src=\"https:\/\/blog.miniserver.it\/wp-content\/uploads\/Virtual-Machines-replicas.png\" alt=\"Virtual Machines replicas\" width=\"1280\" height=\"720\" srcset=\"https:\/\/blog.miniserver.it\/wp-content\/uploads\/Virtual-Machines-replicas-200x113.png 200w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Virtual-Machines-replicas-400x225.png 400w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Virtual-Machines-replicas-600x338.png 600w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Virtual-Machines-replicas-601x338.png 601w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Virtual-Machines-replicas-768x432.png 768w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Virtual-Machines-replicas-800x450.png 800w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Virtual-Machines-replicas-1024x576.png 1024w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Virtual-Machines-replicas-1200x675.png 1200w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Virtual-Machines-replicas.png 1280w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/p>\n<p>Let&#8217;s take a practical example to understand how much storage to allocate.<\/p>\n<p>Suppose we have 6 virtual machines on the Cluster: 3 VMs on Node A and 3 VMs on Node B, and each virtual machine (for simplicity) is 100GB.<\/p>\n<p><span style=\"color: var(--awb-text-color); font-family: var(--awb-text-font-family); font-size: var(--awb-font-size); font-style: var(--awb-text-font-style); font-weight: var(--awb-text-font-weight); letter-spacing: var(--awb-letter-spacing); text-align: var(--awb-content-alignment); text-transform: var(--awb-text-transform); background-color: var(--awb-bg-color-hover);\">Overall, about 300 GB will be allocated to Node A&#8217;s storage. Same thing for node B.<\/span><\/p>\n<p>Assuming to schedule the replicas of all VMs, from Node A to Node B, and vice versa. 300GB for VMs and 300GB for replicas must be considered on each node.<\/p>\n<p>The total of each node will therefore be 600 GB.<\/p>\n<p>The file system will try to optimize the space, so it won&#8217;t be 600 GB but it will be a little less. We&#8217;re going a little bit larger to be safe, so we&#8217;re looking at 600GB.<\/p>\n<p>It is not requited to have replicas of all resources (VM or CT) from Node A to Node B.<\/p>\n<p>For example, if one of the virtual machines on Node A is a machine with unimportant services and therefore you don&#8217;t want to replicate to Node B, (Node B could perhaps be considered as purely a backup node).<\/p>\n<p>In this case, resource replication tasks are not created, and consequently 100GB must be removed from the replicas. So overall on Node B (destination host) there will no longer be 600GB but 500GB occupied.<\/p>\n<p>It therefore depends on how the Cluster is set up and in particular the replicas: if you want everything to be redundant from Node A to Node B and vice versa.<\/p>\n<p>A span-metric calculation could always consider double the allocated storage.<\/p>\n<\/div><div class=\"fusion-text fusion-text-4\" style=\"--awb-margin-top:30px;\"><h3 id=\"toc_3_In_quanto_tempo_ripristino_un_servizio\">3. Resource recovery: how long it takes to get back up and running<\/h3>\n<p>The time it takes to restore a backup from Proxmox Backup Server to the nodes depends on the hardware used and in particular on the switches, network cards and above all on the types of disks implemented for PBS storage.<\/p>\n<p>However, a very spannometric order of magnitude, it can range from one minute to 20 minutes.<\/p>\n<\/div><\/div><\/div><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-3 fusion_builder_column_1_1 1_1 fusion-flex-column\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:1.92%;--awb-margin-bottom-large:20px;--awb-spacing-left-large:1.92%;--awb-width-medium:100%;--awb-order-medium:0;--awb-spacing-right-medium:1.92%;--awb-spacing-left-medium:1.92%;--awb-width-small:100%;--awb-order-small:0;--awb-spacing-right-small:1.92%;--awb-spacing-left-small:1.92%;\"><div class=\"fusion-column-wrapper fusion-column-has-shadow fusion-flex-justify-content-flex-start fusion-content-layout-column\"><div class=\"fusion-text fusion-text-5\" style=\"--awb-margin-top:30px;\"><h3 id=\"toc_4_Ripristinare_una_VM_da_un_attacco_ransomware\">4. Recover a VM from a ransomware attack<\/h3>\n<p>&nbsp;<\/p>\n<p>To restore a machine from a rans<img decoding=\"async\" class=\"alignnone size-full wp-image-28791\" src=\"https:\/\/blog.miniserver.it\/wp-content\/uploads\/Service-and-single-file-restore.png\" alt=\"\" width=\"1280\" height=\"720\" srcset=\"https:\/\/blog.miniserver.it\/wp-content\/uploads\/Service-and-single-file-restore-200x113.png 200w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Service-and-single-file-restore-400x225.png 400w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Service-and-single-file-restore-600x338.png 600w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Service-and-single-file-restore-601x338.png 601w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Service-and-single-file-restore-768x432.png 768w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Service-and-single-file-restore-800x450.png 800w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Service-and-single-file-restore-1024x576.png 1024w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Service-and-single-file-restore-1200x675.png 1200w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/Service-and-single-file-restore.png 1280w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/>omware attack, it will be sufficient to restore one of the versions available on the PBS obtained thanks to the schedules set on the system.<\/p>\n<p><span style=\"color: var(--awb-text-color); font-family: var(--awb-text-font-family); font-size: var(--awb-font-size); font-style: var(--awb-text-font-style); font-weight: var(--awb-text-font-weight); letter-spacing: var(--awb-letter-spacing); text-align: var(--awb-content-alignment); text-transform: var(--awb-text-transform); background-color: var(--awb-bg-color-hover);\">For example, if a CryptoLocker encrypts a virtual machine I can go back in time T-1 by selecting a version of previous versions.<\/span><\/p>\n<p>While restoring the virtual machine with Proxmox Backup Server, you can start it up and thus already check whether that version is compromised or not, without waiting for the entire virtual machine to be restored.<\/p>\n<\/div><div class=\"fusion-text fusion-text-6\" style=\"--awb-margin-top:30px;\"><h3 id=\"toc_5_No_Single_Point_Of_Failure\">5. No Single Point Of Failure<\/h3>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-28793\" src=\"https:\/\/blog.miniserver.it\/wp-content\/uploads\/No-Single-Point-Of-Failure.png\" alt=\"No Single Point Of Failure\" width=\"1280\" height=\"720\" srcset=\"https:\/\/blog.miniserver.it\/wp-content\/uploads\/No-Single-Point-Of-Failure-200x113.png 200w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/No-Single-Point-Of-Failure-400x225.png 400w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/No-Single-Point-Of-Failure-600x338.png 600w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/No-Single-Point-Of-Failure-601x338.png 601w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/No-Single-Point-Of-Failure-768x432.png 768w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/No-Single-Point-Of-Failure-800x450.png 800w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/No-Single-Point-Of-Failure-1024x576.png 1024w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/No-Single-Point-Of-Failure-1200x675.png 1200w, https:\/\/blog.miniserver.it\/wp-content\/uploads\/No-Single-Point-Of-Failure.png 1280w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/p>\n<p>The 2 Node Proxmox VE Cluster has no Single Point of Failure because it is completely redundant.<\/p>\n<p>By default we configure network cards, disks and networking in redundant mode, i.e. with double switch and multiple network cards for each service.<\/p>\n<p>Also Proxmox Backup Server will have all redundant links.<\/p>\n<p class=\"western\"><span style=\"color: var(--awb-text-color); font-family: var(--awb-text-font-family); font-size: var(--awb-font-size); font-style: var(--awb-text-font-style); font-weight: var(--awb-text-font-weight); letter-spacing: var(--awb-letter-spacing); text-align: var(--awb-content-alignment); text-transform: var(--awb-text-transform); background-color: var(--awb-bg-color-hover);\">Having a system without Single Point of Failure represents a great advantage for the operational continuity of a company.<\/span><\/p>\n<\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":11,"featured_media":28784,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[129],"tags":[],"class_list":["post-28764","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-proxmox-ve"],"_links":{"self":[{"href":"https:\/\/blog.miniserver.it\/en\/wp-json\/wp\/v2\/posts\/28764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.miniserver.it\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.miniserver.it\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.miniserver.it\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.miniserver.it\/en\/wp-json\/wp\/v2\/comments?post=28764"}],"version-history":[{"count":18,"href":"https:\/\/blog.miniserver.it\/en\/wp-json\/wp\/v2\/posts\/28764\/revisions"}],"predecessor-version":[{"id":28795,"href":"https:\/\/blog.miniserver.it\/en\/wp-json\/wp\/v2\/posts\/28764\/revisions\/28795"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.miniserver.it\/en\/wp-json\/wp\/v2\/media\/28784"}],"wp:attachment":[{"href":"https:\/\/blog.miniserver.it\/en\/wp-json\/wp\/v2\/media?parent=28764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.miniserver.it\/en\/wp-json\/wp\/v2\/categories?post=28764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.miniserver.it\/en\/wp-json\/wp\/v2\/tags?post=28764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}