# Controller HA and cloudstack

**URL:** <https://forums.linbit.com/t/controller-ha-and-cloudstack/558>\
**Category:** LINSTOR\
**Tags:** drbd, linstor, drbd-reactor\
**Created:** [January 19, 2025, 4:38am UTC](https://forums.linbit.com/t/controller-ha-and-cloudstack/558 "2025-01-19T04:38:20Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpb](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mpb](https://forums.linbit.com/u/mpb)\
**Post date:** [January 19, 2025, 4:38am UTC](https://forums.linbit.com/t/controller-ha-and-cloudstack/558/1 "2025-01-19T04:38:20Z")

</div>

Hi There, I followed this material “[https://linbit.com/drbd-user-guide/linstor-guide-1\_0-en/#s-linstor\_ha](https://linbit.com/drbd-user-guide/linstor-guide-1_0-en/#s-linstor_ha)” on a test environment for a multicontroller HA which is working fine. To my understand there should have been a virtual IP to integrate with cloudstack for storage, but I didnt come across any virtual IP during the HA controller config. my question is how to confgure cloudstack in a Linstor multicontroller environment…?

---

<div class="post-metadata">

**Author:** ![rp9](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/rp9/32/38_2.png) [@rp9](https://forums.linbit.com/u/rp9)\
**Post date:** [January 21, 2025, 11:39am UTC](https://forums.linbit.com/t/controller-ha-and-cloudstack/558/2 "2025-01-21T11:39:30Z")

</div>

You add the ocf IPaddr2 to the `linstor_db.toml` `start` section. like this:

```auto
"ocf:heartbeat:IPaddr2 service_ip cidr_netmask=24 ip=10.0.0.99",

```

Then you can use this service ip in CloudStack

---

<div class="post-metadata">

**Author:** ![mpb](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mpb](https://forums.linbit.com/u/mpb)\
**Post date:** [January 21, 2025, 2:05pm UTC](https://forums.linbit.com/t/controller-ha-and-cloudstack/558/3 "2025-01-21T14:05:20Z")

</div>

Hi, I have this in the config “/etc/drbd-reactor.d/linstor\_db.toml” hope its correct, but its not pinging to that IP, how to test before installing cloudstack

[[promoter]]  
id = “linstor\_db”  
[promoter.resources.linstor\_db]  
start = [“var-lib-linstor.mount”, “linstor-controller.service”, “ocf:heartbeat:IPaddr2 service\_ip cidr\_netmask=32 ip=192.168.126.180”,]

on all the host:

root@host1:~# drbd-reactorctl status linstor\_db  
/etc/drbd-reactor.d/linstor\_db.toml:  
Promoter: Currently active on node ‘host2’  
○ drbd-services@linstor\_db.target  
× ├─ drbd-promote@linstor\_db.service  
○ ├─ var-lib-linstor.mount  
○ ├─ linstor-controller.service  
○ └─ ocf.rs@service\_ip\_linstor\_db.service

any idea

Thanks

---

<div class="post-metadata">

**Author:** ![michael](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/michael/32/16_2.png) [@michael](https://forums.linbit.com/u/michael)\
**Post date:** [January 21, 2025, 5:10pm UTC](https://forums.linbit.com/t/controller-ha-and-cloudstack/558/4 "2025-01-21T17:10:09Z")

</div>

This knowledge base article, [“Troubleshooting DRBD Reactor Promoter Plugin Services”](https://kb.linbit.com/drbd-reactor-promoter-plugin-troubleshooting-services), can perhaps help you troubleshoot DRBD Reactor promoter managed services that are not starting.

---

<div class="post-metadata">

**Author:** ![rp9](https://yyz1.discourse-cdn.com/flex003/user_avatar/forums.linbit.com/rp9/32/38_2.png) [@rp9](https://forums.linbit.com/u/rp9)\
**Post date:** [January 22, 2025, 9:31am UTC](https://forums.linbit.com/t/controller-ha-and-cloudstack/558/5 "2025-01-22T09:31:50Z")

</div>

shouldn’t the netmask be 24?

And your output says, it is running on host2?

---

<div class="post-metadata">

**Author:** ![mpb](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mpb](https://forums.linbit.com/u/mpb)\
**Post date:** [January 23, 2025, 11:44am UTC](https://forums.linbit.com/t/controller-ha-and-cloudstack/558/6 "2025-01-23T11:44:33Z")

</div>

Changed to /24, but the service IP not working yet…

root@host3:/etc/drbd-reactor.d# drbd-reactorctl status  
/etc/drbd-reactor.d/linstor\_db.toml:  
Promoter: Currently active on this node  
● drbd-services@linstor\_db.target  
● ├─ drbd-promote@linstor\_db.service  
● ├─ var-lib-linstor.mount  
● ├─ linstor-controller.service  
○ └─ ocf.rs@service\_ip\_linstor\_db.service

---

<div class="post-metadata">

**Author:** ![mpb](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mpb](https://forums.linbit.com/u/mpb)\
**Post date:** [January 24, 2025, 4:59pm UTC](https://forums.linbit.com/t/controller-ha-and-cloudstack/558/7 "2025-01-24T16:59:11Z")

</div>

Hi, I found on the github website for drbd-reactor…can anyone please help…

" OCF agents are expected in `/usr/lib/ocf/resource.d/` . Please make sure to check for `resource-agents` packages provided by your distribution or use the packages provided by LINBIT (customers only)."

I installed from the Ubuntu 22.04 PPA distribution, but so you have to be customer for the virtual IP to work ?

virtualip service is not coming up at all

root@host1:/# drbd-reactorctl status  
/etc/drbd-reactor.d/linstor\_db.toml:  
Promoter: Currently active on this node  
● drbd-services@linstor\_db.target  
● ├─ drbd-promote@linstor\_db.service  
○ ├─ ocf.rs@db\_virtip\_linstor\_db.service  
● ├─ var-lib-linstor.mount  
● └─ linstor-controller.service

My config  
vi /etc/drbd-reactor.d/linstor\_db.toml  
[[promoter]]  
id = “linstor\_db”  
[promoter.resources.linstor\_db]  
start = [“ocf:heartbeat:IPaddr2 db\_virtip ip=192.168.126.180 cidr\_netmask=24 iflabel=virtualip”,“var-lib-linstor.mount”,“linstor-controller.service”]

This is all I have in the folder

root@host1:/# ls -l /usr/lib/ocf/resource.d/linbit/  
total 80  
-rwxr-xr-x 1 root root 56820 Oct 29 08:24 drbd  
-rwxr-xr-x 1 root root 10336 Oct 29 08:24 drbd-attr  
-rw-r–r-- 1 root root 10743 Oct 29 08:24 drbd.shellfuncs.sh

---

<div class="post-metadata">

**Author:** ![mpb](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mpb](https://forums.linbit.com/u/mpb)\
**Post date:** [January 26, 2025, 1:58pm UTC](https://forums.linbit.com/t/controller-ha-and-cloudstack/558/8 "2025-01-26T13:58:24Z")

</div>

Hi…I am seeing “no such file or directory” issue, if anyone has any idea…Seems I am missing something, I am not able to get…

░░ A start job for unit ocf.rs@service\_ip\_linstor\_db.service has begun execution.  
░░  
░░ The job identifier is 956.  
Jan 26 13:53:16 host1 ocf-rs-wrapper[1166]: No such file or directory (os error 2)  
Jan 26 13:53:16 host1 systemd[1]: ocf.rs@service\_ip\_linstor\_db.service: Main process exited, code=exited, status=1/FAILURE  
░░ Subject: Unit process exited  
░░ Defined-By: systemd  
░░ Support: [Enterprise open source support | Ubuntu](http://www.ubuntu.com/support)  
░░  
░░ An ExecStart= process belonging to unit ocf.rs@service\_ip\_linstor\_db.service has exited.  
░░  
░░ The process’ exit code is ‘exited’ and its exit status is 1.  
Jan 26 13:53:16 host1 ocf-rs-wrapper[1171]: INFO [ocf\_rs\_wrapper] IPaddr2:service\_ip\_linstor\_db: about to exec stop  
Jan 26 13:53:16 host1 ocf-rs-wrapper[1171]: No such file or directory (os error 2)  
Jan 26 13:53:16 host1 systemd[1]: ocf.rs@service\_ip\_linstor\_db.service: Control process exited, code=exited, status=1/FAILURE  
░░ Subject: Unit process exited  
░░ Defined-By: systemd  
░░ Support: [Enterprise open source support | Ubuntu](http://www.ubuntu.com/support)  
░░  
░░ An ExecStopPost= process belonging to unit ocf.rs@service\_ip\_linstor\_db.service has exited.

---

<div class="post-metadata">

**Author:** ![mpb](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mpb](https://forums.linbit.com/u/mpb)\
**Post date:** [January 27, 2025, 4:05am UTC](https://forums.linbit.com/t/controller-ha-and-cloudstack/558/9 "2025-01-27T04:05:40Z")

</div>

HI… Found and installed resource-agents now…but still the Virtual IP is not up…really getting frustrated…no errors in the log, anyone can please help…

root@host1:~# drbd-reactorctl status  
/etc/drbd-reactor.d/linstor\_db.toml:  
Promoter: Currently active on this node  
● drbd-services@linstor\_db.target  
● ├─ drbd-promote@linstor\_db.service  
○ ├─ ocf.rs@db\_virtip\_linstor\_db.service  
● ├─ var-lib-linstor.mount  
● └─ linstor-controller.service  
root@host1:~#

root@host2:~# drbd-reactorctl status  
/etc/drbd-reactor.d/linstor\_db.toml:  
Promoter: Currently active on node ‘host1’  
○ drbd-services@linstor\_db.target  
○ ├─ drbd-promote@linstor\_db.service  
○ ├─ ocf.rs@db\_virtip\_linstor\_db.service  
○ ├─ var-lib-linstor.mount  
○ └─ linstor-controller.service  
root@host2:~#

Logs

WARN [drbd\_reactor::plugin] ‘id’ is deprecated and ignored!  
INFO [drbd\_reactor::plugin::promoter] adjust\_resources: waiting for backing device ‘/dev/linstor\_drbdpool/linstor\_db\_00000’ to become ready  
INFO [drbd\_reactor::plugin::promoter] adjust\_resources: backing device ‘/dev/linstor\_drbdpool/linstor\_db\_00000’ now ready  
INFO [drbd\_reactor::plugin::promoter] Checking DRBD options for resource ‘linstor\_db’  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/drbd-promote@linstor\_db.service.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/ocf.rs@service\_ip\_linstor\_db.service.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/var-lib-linstor.mount.d/reactor-50-mount.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/var-lib-linstor.mount.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/linstor-controller.service.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/drbd-services@linstor\_db.target.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/drbd-services@linstor\_db.target.d/reactor-50-before.conf”  
INFO [drbd\_reactor::plugin] systemd\_daemon\_reload: reloading daemon  
WARN [drbd\_reactor::plugin] ‘id’ is deprecated and ignored!  
INFO [drbd\_reactor::plugin::promoter] adjust\_resources: waiting for backing device ‘/dev/linstor\_drbdpool/linstor\_db\_00000’ to become ready  
INFO [drbd\_reactor::plugin::promoter] adjust\_resources: backing device ‘/dev/linstor\_drbdpool/linstor\_db\_00000’ now ready  
INFO [drbd\_reactor::plugin::promoter] Checking DRBD options for resource ‘linstor\_db’  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/drbd-promote@linstor\_db.service.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/ocf.rs@db\_virtip\_linstor\_db.service.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/var-lib-linstor.mount.d/reactor-50-mount.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/var-lib-linstor.mount.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/linstor-controller.service.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/drbd-services@linstor\_db.target.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/drbd-services@linstor\_db.target.d/reactor-50-before.conf”  
INFO [drbd\_reactor::plugin] systemd\_daemon\_reload: reloading daemon

INFO [drbd\_reactor::plugin] systemd\_daemon\_reload: reloading daemon  
WARN [drbd\_reactor::plugin] ‘id’ is deprecated and ignored!  
INFO [drbd\_reactor::plugin::promoter] adjust\_resources: waiting for backing device ‘none’ to become ready  
INFO [drbd\_reactor::plugin::promoter] adjust\_resources: backing device ‘none’ now ready  
INFO [drbd\_reactor::plugin::promoter] Checking DRBD options for resource ‘linstor\_db’  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/drbd-promote@linstor\_db.service.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/ocf.rs@service\_ip\_linstor\_db.service.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/var-lib-linstor.mount.d/reactor-50-mount.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/var-lib-linstor.mount.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/linstor-controller.service.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/drbd-services@linstor\_db.target.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/drbd-services@linstor\_db.target.d/reactor-50-before.conf”  
INFO [drbd\_reactor::plugin] systemd\_daemon\_reload: reloading daemon  
WARN [drbd\_reactor::plugin] ‘id’ is deprecated and ignored!  
INFO [drbd\_reactor::plugin::promoter] adjust\_resources: waiting for backing device ‘none’ to become ready  
INFO [drbd\_reactor::plugin::promoter] adjust\_resources: backing device ‘none’ now ready  
INFO [drbd\_reactor::plugin::promoter] Checking DRBD options for resource ‘linstor\_db’  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/drbd-promote@linstor\_db.service.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/ocf.rs@db\_virtip\_linstor\_db.service.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/var-lib-linstor.mount.d/reactor-50-mount.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/var-lib-linstor.mount.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/linstor-controller.service.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/drbd-services@linstor\_db.target.d/reactor.conf”  
INFO [drbd\_reactor::plugin::promoter] systemd\_write\_unit: creating “/run/systemd/system/drbd-services@linstor\_db.target.d/reactor-50-before.conf”  
INFO [drbd\_reactor::plugin] systemd\_daemon\_reload: reloading daemon  
root@host2:~#

Thanks…

---

<div class="post-metadata">

**Author:** ![mpb](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mpb](https://forums.linbit.com/u/mpb)\
**Post date:** [January 27, 2025, 4:43am UTC](https://forums.linbit.com/t/controller-ha-and-cloudstack/558/10 "2025-01-27T04:43:08Z")

</div>

HI , Issue sorted out myself…

Thanks anyway…
