Proxmox High Availability Cluster

cognitec

New Member
May 6, 2013
4
0
1
Hi,

I'm trying to set up a HA Cluster with Proxmox. Before we want to use it in our infrastructure I want to test and try out as much as possible.
So what I did so far is:
- set up 1 testmachine as NFS server
- set up 3 nodes with proxmox
- configured fencing and cluster like discribed in the Wiki
- then I configured a virtual testmachine
- I configured managing by HA and in the virtual machine summary I see "Managed by HA Yes"

Anyway the virtual machine is still just on one host and if this host fails it won't run anymore.
Maybe I missed something or didn't get the idea behind HA.
So what we want is: The virtual machine should be restarted automatically on another Proxmox Server if one host of the cluster fails.
Maybe you can help me with this?
Here is a scerenshot of the webinterface:
proxmox.JPG

Thanks a lot for your help
Best regards
Steve
 
post your /etc/pve/cluster.conf

did you test fencing with success?
 
Hi Tom,
thanks for the answer.
Do you mean the "fence_tool ls" command with testing?

root@sabik:~# fence_tool ls
fence domain
member count 3
victim count 0
victim now 0
master nodeid 1
wait state none
members 1 2 3

My cluster.conf:

<?xml version="1.0"?>
<cluster config_version="4" name="COGNITEC">
<cman keyfile="/var/lib/pve-cluster/corosync.authkey"/>
<clusternodes>
<clusternode name="sargas" nodeid="1" votes="1"/>
<clusternode name="sabik" nodeid="2" votes="1"/>
<clusternode name="skat" nodeid="3" votes="1"/>
</clusternodes>
<rm>
<pvevm autostart="1" vmid="100"/>
</rm>
</cluster>

I really think that the error is sitting in front of the monitor here. ;-)
Thanks for helping out here
Best regards
Steve
 
Ok...than it is my fault... I just don't understand how to configure it, since I have no "fence devices" and just wanted to have a simple test envoirenment :-(
And the wiki article is not helpful to me since I just don't understand it, maybe because English is not my native language...but that is my problem
Anyway thanks for trying to help me
 
You can't really test HA without fence devices.

agreed but for a quick and dirty test, i think you can setup a pseudo fencing device in the cluster config that doesnt do anything but allows the rest of the cluster actions to work, then you can just pull the power from the node running the VM and watch proxmox cluster on one of the other hosts
 
agreed but for a quick and dirty test, i think you can setup a pseudo fencing device in the cluster config that doesnt do anything but allows the rest of the cluster actions to work, then you can just pull the power from the node running the VM and watch proxmox cluster on one of the other hosts

No, this will not work because this will block all cluster operation on all nodes (until fence agent returns success). You can manually acknowledge the fencing operation, but this is difficult because you need to run fence_ack_manual on the correct node (fence-master).
 
I know :( But in a test lab you don't always have ipmi or other fence devices.
Just don't use it in production.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!