HA restricted group doesn't restrict?

edtrumbull

New Member
Jun 24, 2022
29
5
3
I have a 5 node cluster running 7.2-4.
Three nodes are set up to be dedicated CEPH storage, and are not supposed to be HA failover targets.
The other two nodes are clustered in a restricted HA group.

As I understand things, if I shut down one node in the HA group, the VMs which it holds should be migrated to the other node, assuming there's enough capacity to house them. (There is)

But every time I test it, using a single small VM, the VM gets migrated to one of the CEPH nodes.

The HA group has the following config (based on the gui)
Nodes ceph-00, ceph-01, ceph-02 are not members of the group.
Nodes kvm-01 and kvm-03 are members of the group.
The group is set to restricted
The two kvm nodes have priority 1, the three ceph nodes have no priority set.
This is a new setup. I'm sure I'm missing something pretty straightforward.

/etc/pve/ha/groups.cfg has

group: kvm-only
comment Only use KVM servers for HA
nodes kvm-03:1,kvm-01:1
nofailback 0
restricted 1
 
Last edited:
You need to tell the system that vm 104 shall be in group kvm-only. An example from my resources.cfg:
Code:
vm: 1120
        comment Dcon
        group MAIN
        state started
 

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!