{"id":353,"date":"2012-08-13T10:43:59","date_gmt":"2012-08-13T08:43:59","guid":{"rendered":"http:\/\/elkano.org\/blog\/?p=353"},"modified":"2013-01-16T12:11:36","modified_gmt":"2013-01-16T11:11:36","slug":"how-to-reset-cluster-configuration-in-proxmox-2","status":"publish","type":"post","link":"https:\/\/elkano.org\/blog\/how-to-reset-cluster-configuration-in-proxmox-2\/","title":{"rendered":"How to reset cluster configuration in Proxmox 2"},"content":{"rendered":"<p>If you have already made the proxmox cluster, but you want to make changes to the cluster config, for example for changing the hostname of the node, or the network with which the nodes are communicating on in the cluster, you can remove the cluster and create it again:<\/p>\n<p>First, make a backup of the cluster:<\/p>\n<pre class=\"prettyprint lang-xml\">cp -a \/etc\/pve \/root\/pve_backup<\/pre>\n<p>Stop cluster service:<\/p>\n<pre class=\"prettyprint lang-xml\">\/etc\/init.d\/pve-cluster stop<\/pre>\n<p>Umount \/etc\/pve if it is mounted:<\/p>\n<pre class=\"prettyprint lang-xml\">umount \/etc\/pve<\/pre>\n<p>Stop corosync service:<\/p>\n<pre class=\"prettyprint lang-xml\">\/etc\/init.d\/cman stop<\/pre>\n<p>Remove cluster configuration:<\/p>\n<pre class=\"prettyprint lang-xml\">\r\n# rm \/etc\/cluster\/cluster.conf\r\n# rm -rf \/var\/lib\/pve-cluster\/*<\/pre>\n<p>Start again cluster service:<\/p>\n<pre class=\"prettyprint lang-xml\">\/etc\/init.d\/pve-cluster start<\/pre>\n<p>Now, you can create new cluster:<\/p>\n<pre class=\"prettyprint lang-xml\"># pvecm create newcluster <\/pre>\n<p>Restore cluster and virtual machines configuration from the backup:<\/p>\n<pre class=\"prettyprint lang-xml\">\r\n# cp \/root\/pve_backup\/*.cfg \/etc\/pve\/\r\n# cp \/root\/pve_backup\/qemu-server\/*.conf \/etc\/pve\/qemu-server\/\r\n# cp \/root\/pve_backup\/openvz\/* \/etc\/pve\/openvz\/\r\n<\/pre>\n<p><strong>UPDATE<\/strong>: This post is also valid to change the hostname of a node in a cluster or to move a node between two clusters. When you have removed a node from the cluster, it still appears in the proxmox nodes tree, to remove it from the tree you have to delete the node directory from another node in the cluster:<\/p>\n<pre class=\"prettyprint lang-xml\">\r\n# rm -rf \/etc\/pve\/nodes\/HOSTNAME\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you have already made the proxmox cluster, but you want to make changes to the cluster config, for example for changing the hostname of the node, or the network with which the nodes are communicating on in the cluster, you can remove the cluster and create it again: First, make a backup of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[43,44,35],"_links":{"self":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/353"}],"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=353"}],"version-history":[{"count":19,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/353\/revisions"}],"predecessor-version":[{"id":606,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/353\/revisions\/606"}],"wp:attachment":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/media?parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/categories?post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/tags?post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}