{"id":289,"date":"2016-09-23T12:44:40","date_gmt":"2016-09-23T02:44:40","guid":{"rendered":"https:\/\/icicimov.com\/blog\/?p=289"},"modified":"2017-01-03T00:17:47","modified_gmt":"2017-01-02T13:17:47","slug":"ha-features-in-proxmox-pve-cluster-and-final-words","status":"publish","type":"post","link":"https:\/\/icicimov.com\/blog\/?p=289","title":{"rendered":"HA Features in Proxmox PVE cluster and final words"},"content":{"rendered":"<p>At the end, some testing of the High Availability fatures in PVE 4.2 on node and VM\/LXC level.<\/p>\n<h2>Instance Migration<\/h2>\n<p>Migrating (moving) LXC and VM instances from one node to the other when the instance is stopped works without any issues given the instance does not have a locally attached CD-ROM drive. We can use the GUI for this pusrpose but it is possible via the CLI too, it is simple as:<\/p>\n<pre><code>root@proxmox01:~# ha-manager migrate vm:102 proxmox02\n<\/code><\/pre>\n<p>For live migration, ie the VM instance is running, the VM&#8217;s root disk needs to be created on a shared storage (and any other secondary attached disks too for that matter). Then the VM can be migrated with no downtime using the GUI or the CLI command from above. Log of a successful live VM migration of <code>vm104<\/code> with root disk on GlusterFS cluster storage:<\/p>\n<pre><code>May 02 10:57:01 starting migration of VM 104 to node 'proxmox02' (192.168.0.186)\nMay 02 10:57:01 copying disk images\nMay 02 10:57:01 starting VM 104 on remote node 'proxmox02'\nMay 02 10:57:04 starting ssh migration tunnel\nMay 02 10:57:05 starting online\/live migration on localhost:60000\nMay 02 10:57:05 migrate_set_speed: 8589934592\nMay 02 10:57:05 migrate_set_downtime: 0.1\nMay 02 10:57:07 migration speed: 256.00 MB\/s - downtime 15 ms\nMay 02 10:57:07 migration status: completed\nMay 02 10:57:11 migration finished successfully (duration 00:00:10)\nTASK OK\n<\/code><\/pre>\n<p>The same was successfully tested for VM with root disk on DRBD storage. Here we can see the moving of <code>vm105<\/code> from one node to the other while the instance was running:<\/p>\n<pre><code>May 06 17:40:25 starting migration of VM 105 to node 'proxmox01' (192.168.0.185)\nMay 06 17:40:25 copying disk images\nMay 06 17:40:25 starting VM 105 on remote node 'proxmox01'\nMay 06 17:40:29 starting ssh migration tunnel\nbind: Cannot assign requested address\nMay 06 17:40:30 starting online\/live migration on localhost:60000\nMay 06 17:40:30 migrate_set_speed: 8589934592\nMay 06 17:40:30 migrate_set_downtime: 0.1\nMay 06 17:40:32 migration status: active (transferred 197603120, remaining 32460800), total 1082990592)\nMay 06 17:40:32 migration xbzrle cachesize: 67108864 transferred 0 pages 0 cachemiss 0 overflow 0\nMay 06 17:40:34 migration speed: 256.00 MB\/s - downtime 7 ms\nMay 06 17:40:34 migration status: completed\nMay 06 17:40:39 migration finished successfully (duration 00:00:14)\nTASK OK\n<\/code><\/pre>\n<p>Finally example of moving an instance with root device on the iSCSI shared storage:<\/p>\n<pre><code>May 10 14:25:24 starting migration of VM 108 to node 'proxmox02' (192.168.0.186)\nMay 10 14:25:24 copying disk images\nMay 10 14:25:24 starting VM 108 on remote node 'proxmox02'\nMay 10 14:25:30 starting ssh migration tunnel\nbind: Cannot assign requested address\nMay 10 14:25:31 starting online\/live migration on localhost:60000\nMay 10 14:25:31 migrate_set_speed: 8589934592\nMay 10 14:25:31 migrate_set_downtime: 0.1\nMay 10 14:25:33 migration status: active (transferred 172760414, remaining 292511744), total 546119680)\nMay 10 14:25:33 migration xbzrle cachesize: 33554432 transferred 0 pages 0 cachemiss 0 overflow 0\nMay 10 14:25:35 migration status: active (transferred 347832453, remaining 116248576), total 546119680)\nMay 10 14:25:35 migration xbzrle cachesize: 33554432 transferred 0 pages 0 cachemiss 0 overflow 0\nMay 10 14:25:37 migration status: active (transferred 484694399, remaining 50982912), total 546119680)\nMay 10 14:25:37 migration xbzrle cachesize: 33554432 transferred 0 pages 0 cachemiss 7395 overflow 0\nMay 10 14:25:38 migration status: active (transferred 504344383, remaining 31371264), total 546119680)\nMay 10 14:25:38 migration xbzrle cachesize: 33554432 transferred 0 pages 0 cachemiss 12183 overflow 0\nMay 10 14:25:38 migration status: active (transferred 533482842, remaining 12886016), total 546119680)\nMay 10 14:25:38 migration xbzrle cachesize: 33554432 transferred 0 pages 0 cachemiss 19283 overflow 0\nMay 10 14:25:38 migration speed: 73.14 MB\/s - downtime 102 ms\nMay 10 14:25:38 migration status: completed\nMay 10 14:25:44 migration finished successfully (duration 00:00:20)\nTASK OK\n<\/code><\/pre>\n<h2>Node failure<\/h2>\n<p>I have also tested the scenario of node failure by shutting down the <code>proxmox02<\/code> cluster node. The VM&#8217;s running on this node automatically migrated to <code>proxmox01<\/code> instance and started up successfully (this can be seen on one of the screen shots attached for PVE-4.2 at the bottom of this page). The VM&#8217;s need to be added to the HA group and marked for autostart for this to happen.<\/p>\n<h1>Conclusion<\/h1>\n<p>Proxmox PVE has proved as very robust and feature reach open source virtualization environment for KVM and LXC. Proxmox VE 4 supports clusters of up to 32 physical nodes. The centralized Proxmox management makes it easy to configure all available nodes from one place. No SPOF (Single Point of Failure) when using a cluster, we can connect to any node to manage the entire cluster. The management is done through a Web console, based on a javascript frameworks, and gives the administrator a full control over every aspect of the infrastructure.<\/p>\n<p>It supports Local Storage, FC, iSCSI, NFS, ZFS and CEPH as storage technologies which is really impressive. If VM\/LXC is created as HA instance with disk(s) on shared storage it can easily be live migrated between the nodes. The integrated backup tool creates snapshots of virtual guests both for LXC and KVM all managed through the web UI console and CLI if needed. In practice it creates a tarball of the VM or CT data that includes the virtual disks and all the configuration data.<\/p>\n<p>The networking supports Linux Bridges and OpenVSwitch which can easily be extended to SDN overlay as described above. For added flexibility, it supports VLAN&#8217;s (IEEE 802.1 Q), bonding and network aggregations allowing us to build complex flexible virtual networks for the hosts.<\/p>\n<h2>Screen shots<\/h2>\n\n\t\t\t<div id='gallery-289-1' class='gallery gallery-289'>\n\t\t\t\t<div class='gallery-row gallery-col-3 gallery-clear'>\n\t\t\t\t\t<figure class='gallery-item col-3'>\n\t\t\t\t\t\t<div class='gallery-icon '><a href='https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_01.png'><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"204\" src=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_01-420x204.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_01-420x204.png 420w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_01-744x361.png 744w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_01-768x372.png 768w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_01-1200x582.png 1200w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_01-636x310.png 636w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_01.png 1720w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/div>\n\t\t\t\t\t<\/figure>\n\t\t\t\t\t<figure class='gallery-item col-3'>\n\t\t\t\t\t\t<div class='gallery-icon '><a href='https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_02.png'><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"204\" src=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_02-420x204.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_02-420x204.png 420w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_02-744x362.png 744w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_02-768x374.png 768w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_02-1200x584.png 1200w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_02-636x310.png 636w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_02.png 1719w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/div>\n\t\t\t\t\t<\/figure>\n\t\t\t\t\t<figure class='gallery-item col-3'>\n\t\t\t\t\t\t<div class='gallery-icon '><a href='https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_03.png'><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"204\" src=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_03-420x204.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_03-420x204.png 420w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_03-744x362.png 744w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_03-768x374.png 768w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_03-1200x584.png 1200w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_03-636x310.png 636w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_03.png 1715w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/div>\n\t\t\t\t\t<\/figure>\n\t\t\t\t<\/div>\n\t\t\t\t<div class='gallery-row gallery-col-3 gallery-clear'>\n\t\t\t\t\t<figure class='gallery-item col-3'>\n\t\t\t\t\t\t<div class='gallery-icon '><a href='https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_04.png'><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"204\" src=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_04-420x204.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_04-420x204.png 420w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_04-744x361.png 744w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_04-768x373.png 768w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_04-1200x582.png 1200w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_04-636x310.png 636w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_04.png 1719w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/div>\n\t\t\t\t\t<\/figure>\n\t\t\t\t\t<figure class='gallery-item col-3'>\n\t\t\t\t\t\t<div class='gallery-icon '><a href='https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_05.png'><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"204\" src=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_05-420x204.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_05-420x204.png 420w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_05-744x362.png 744w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_05-768x374.png 768w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_05-1200x584.png 1200w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_05-636x310.png 636w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_05.png 1718w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/div>\n\t\t\t\t\t\t<figcaption class='gallery-caption'>Proxmox PVE-4.2<\/figcaption>\n\t\t\t\t\t<\/figure>\n\t\t\t\t\t<figure class='gallery-item col-3'>\n\t\t\t\t\t\t<div class='gallery-icon '><a href='https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_06.png'><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"204\" src=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_06-420x204.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_06-420x204.png 420w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_06-744x361.png 744w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_06-768x373.png 768w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_06-1200x582.png 1200w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_06-636x310.png 636w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_06.png 1719w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/div>\n\t\t\t\t\t<\/figure>\n\t\t\t\t<\/div>\n\t\t\t\t<div class='gallery-row gallery-col-3 gallery-clear'>\n\t\t\t\t\t<figure class='gallery-item col-3'>\n\t\t\t\t\t\t<div class='gallery-icon '><a href='https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_07.png'><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"204\" src=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_07-420x204.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_07-420x204.png 420w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_07-744x361.png 744w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_07-768x372.png 768w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_07-1200x582.png 1200w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_07-636x310.png 636w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_07.png 1720w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/div>\n\t\t\t\t\t<\/figure>\n\t\t\t\t\t<figure class='gallery-item col-3'>\n\t\t\t\t\t\t<div class='gallery-icon '><a href='https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_08.png'><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"204\" src=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_08-420x204.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_08-420x204.png 420w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_08-744x361.png 744w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_08-768x373.png 768w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_08-1200x583.png 1200w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_08-636x310.png 636w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2017\/01\/pve-4.2_08.png 1720w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/div>\n\t\t\t\t\t<\/figure>\n\t\t\t\t\t<figure class='gallery-item col-3'>\n\t\t\t\t\t\t<div class='gallery-icon '><a href='https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2016\/09\/pve-4.2_09.png'><img loading=\"lazy\" decoding=\"async\" width=\"420\" height=\"223\" src=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2016\/09\/pve-4.2_09-420x223.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" srcset=\"https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2016\/09\/pve-4.2_09-420x223.png 420w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2016\/09\/pve-4.2_09-744x395.png 744w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2016\/09\/pve-4.2_09-768x408.png 768w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2016\/09\/pve-4.2_09-1200x638.png 1200w, https:\/\/icicimov.com\/blog\/wp-content\/uploads\/2016\/09\/pve-4.2_09.png 1671w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/div>\n\t\t\t\t\t<\/figure>\n\t\t\t\t<\/div>\n\t\t\t<\/div><!-- .gallery -->\n\n<h2>Resources<\/h2>\n<ul>\n<li><a href=\"https:\/\/pve.proxmox.com\/wiki\/High_Availability_Cluster_4.x\">Proxmox PVE<\/a><\/li>\n<li><a href=\"http:\/\/openvswitch.org\/support\/config-cookbooks\/port-tunneling\/\">OpenVSwitch<\/a><\/li>\n<\/ul>\n<p>[serialposts]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At the end, some testing of the High Availability fatures in PVE 4.2 on node and VM\/LXC level. Instance Migration Migrating (moving) LXC and VM instances from one node to the other when the instance is stopped works without any&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,9,22,13],"tags":[26,25,24,23],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-cluster","category-high-availability","category-kvm","category-virtualization","tag-cluster","tag-high-availability","tag-kvm","tag-proxmox"],"_links":{"self":[{"href":"https:\/\/icicimov.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icicimov.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/icicimov.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/icicimov.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icicimov.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=289"}],"version-history":[{"count":3,"href":"https:\/\/icicimov.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":324,"href":"https:\/\/icicimov.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/289\/revisions\/324"}],"wp:attachment":[{"href":"https:\/\/icicimov.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/icicimov.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/icicimov.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}