Hello i’m trying to set a cluster with pacemaker corosync and drbd, my problem is while i’m trying to freeze the first node (in primary status) the balance is good and averything goes on the second node but when i unfreeze the fisrt node back they are both in primary so i would like to make the first node become secondary and the second one keep primary without losing data and ressources . the only thing i get is that but losing connection “standalone”
I am not an expert, but if “freezing” refers to e.g., suspending a VM, I think you are out of luck.
The issue is, that the frozen node cannot learn, what happened due to it being frozen.
Hence the split brain afterwards.
You want to look into fencing (sorry, got no resources at my fingertips). You need to STONITH the frozen node, which means killing it for good to remove it from the cluster.
Yes, but with fencing I have to find a solution for each case (VirtualBox, iDRAC, IPMI, SSH…), whereas I want my setup to work across a wide range of environments. I’m sure there’s a way to tell Pacemaker or DRBD: “Make this node secondary, sync it, and let the other node stay primary” without data loss and without the frozen node coming back as primary and overwriting the second one.