Drbd-reactor and virtual ip

Hello everybody,

am trying to setup a proxmox cluster with drbd. I am using drbd-reactor on the productive nodes to have the controller as HA. In my /etc/pve/storage.cfg file

drbd: drbd_storage
        content rootdir,images
        controller 172.16.222.1,172.16.222.2
        resourcegroup pve-rg

Which is working. But i am not happy with physical IP-Addresses. I would like to setup it with Virtual IP that the VIP is up and down depending on drbd-reactor. Can anybody help me to set this up :frowning: .

this is my /etc/drbd-reactor.d/linstor_db.toml

[[promoter]]
id = "linstor_db"
[promoter.resources.linstor_db]
start = ["var-lib-linstor.mount", "linstor-controller.service"]

stop-services-on-exit = true

I have used this guides to configure my cluster:

configure-linstor-proxmox
linstor-Controller-HA

Best Regards
Youzersef

ok it is working now :smiley:

on both nodes
/etc/drbd-reactor.d/linstor_db.toml

[[promoter]]
id = "linstor_db"
[promoter.resources.linstor_db]
dependencies-as = "Requires"
start = [
"ocf:heartbeat:IPaddr2 service_ip cidr_netmask=24 ip=172.16.222.254",
"var-lib-linstor.mount",
"linstor-controller.service"
]
on-drbd-demote-failure = "reboot"
secondary-force = true
preferred-nodes = ["pve01", "pve02"]

1 Like

Thanks for posting your resolution for future visitors :sports_medal:

Hello, why do you setup virtual IP? I’ve created 2 PVE with linstor and DRBD reactor and it works perfectly.
Have you followed this guide?

There is a guide for HA linstor DB, and it works.
What’s the advantage of virtual IP?

Thanks

Hello Kentril,

i followed the guide. with 2 physical ip-addresses will work. But am not happy with this :slight_smile:

The Virtual IP allows the proxmoxe-nodes to connect to a single IP address, regardless of which drbd is active. Otherwise the proxmox will be confused for a while till er find the correct drbd-node.

Thanks for the answer, I will try in my setup. Is there anything else I should set? Only in /etc/drbd-reactor.d/linstor_db.toml?

K.

yes should install on each controller
- pacemaker
- pcs
- crmsh

these 2 options in linstor_db.toml are optional if you preferr which node will be the controller by default

secondary-force = true
preferred-nodes = ["pve01", "pve02"]

These I dont know. Is there a guide somewhere?

BTW how long does the HA take to take over the node? Because my solution takes about 2-3 mins.

there is no official guide in Linstor Homepage. there is only note during the installation of controller HA that you can use Virtual IP

you missed understand me. The proxmox will sitll takes 3 Minutes. It is more logical for Machines. The Proxmox will find the correct drbd immediately, because there is only one opition.