{"id":692,"date":"2013-04-16T14:41:50","date_gmt":"2013-04-16T12:41:50","guid":{"rendered":"http:\/\/elkano.org\/blog\/?p=692"},"modified":"2013-04-16T15:07:26","modified_gmt":"2013-04-16T13:07:26","slug":"proxmox-two-node-cluster","status":"publish","type":"post","link":"https:\/\/elkano.org\/blog\/proxmox-two-node-cluster\/","title":{"rendered":"Proxmox two node cluster"},"content":{"rendered":"<p>Although a two node cluster is not recomended for HA due to split brain problem (see <a href=\"http:\/\/pve.proxmox.com\/wiki\/Two-Node_High_Availability_Cluster\" title=\"Two-Node_High_Availability_Cluster\" target=\"_blank\">Two-Node_High_Availability_Cluster in Proxmox<\/a> wiki for more info with this config), you can set it up in Proxmox for a basic cluster usage. A two node cluster has an special cman configuration in order to maintain the quorum when one node is not available.<\/p>\n<p>To configure a two node cluster in proxmox, copy \/etc\/pve\/cluster.conf to \/etc\/pve\/cluster.conf.new and edit the new file changing the following line:<\/p>\n<pre class=\"dontquote prettyprint\">\r\n&lt;cman keyfile=&quot;\/var\/lib\/pve-cluster\/corosync.authkey&quot;\/&gt;\r\n<\/pre>\n<p>to:<\/p>\n<pre class=\"dontquote prettyprint\">\r\n&lt;cman keyfile=&quot;\/var\/lib\/pve-cluster\/corosync.authkey&quot; two_node=&quot;1&quot; expected_votes=&quot;1&quot;\/&gt;\r\n<\/pre>\n<p>Now, you can activate it through the proxmox web interface in datacenter -> HA, review the changes and activate them for the two nodes. Now you can restart one node without losing cluster quorum.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although a two node cluster is not recomended for HA due to split brain problem (see Two-Node_High_Availability_Cluster in Proxmox wiki for more info with this config), you can set it up in Proxmox for a basic cluster usage. A two node cluster has an special cman configuration in order to maintain the quorum when one [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[92,35,91],"_links":{"self":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/692"}],"collection":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/comments?post=692"}],"version-history":[{"count":8,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/692\/revisions"}],"predecessor-version":[{"id":746,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/692\/revisions\/746"}],"wp:attachment":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/media?parent=692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/categories?post=692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/tags?post=692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}