Hi There, I followed this material “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…?
You add the ocf IPaddr2 to the linstor_db.toml
start
section. like this:
"ocf:heartbeat:IPaddr2 service_ip cidr_netmask=24 ip=10.0.0.99",
Then you can use this service ip in CloudStack
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
This knowledge base article, “Troubleshooting DRBD Reactor Promoter Plugin Services”, can perhaps help you troubleshoot DRBD Reactor promoter managed services that are not starting.
shouldn’t the netmask be 24?
And your output says, it is running on host2?
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
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
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
░░
░░ 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
░░
░░ An ExecStopPost= process belonging to unit ocf.rs@service_ip_linstor_db.service has exited.
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…
HI , Issue sorted out myself…
Thanks anyway…