[DRBD-user] linstor controller vm in HA on proxmox: missing links in /dev/drbd/by-res after boot

Roberto Resoli roberto at resolutions.it
Wed Sep 5 09:58:13 CEST 2018


I am currently testing HA linstor controller vm as explained in:


As recommennded, I enabled the drbd service (and set the --keep-res flag 
in linstor-satellite startup) in  in order to have the controller vm 
storage resource brought up at boot.

I noted that after boot more or less half of links in /dev/drbd/by-res 
are missing, and this has the unpleasant effect to block startup of 
related vm.

This issue started appearing after having enabled drbd systemd unit, and 
does not happens if I keep only one of the two services enabled.

I guess that there is some race condition between drbd and 
linstor-satellite startup (with the latter deleting .res files while 
drbd bis basing on them to bring resorces up). So I tried to setup a 
dependency on drbd using "systemctl edit linstore-satellite" (similarly 
to the "Service" stance which I already set)

After=network-online.target drbd.service

--logs=/var/log/linstor-satellite --config-directory=/etc/linstor 

This seems to resolve, may be there are more elegant ways to cope with that.


More information about the drbd-user mailing list