<div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>I wanted to share my current solution with you. I've created an inotify cron (<a href="https://man7.org/linux/man-pages/man7/inotify.7.html">https://man7.org/linux/man-pages/man7/inotify.7.html</a>) that rsyncs the database everytime there's a change on the /var/lib/linstor directory, which isn't that common, since our shop is rather small. </div><div><br></div><div>I'll open a new post asking some HA questions about the linstor-controller.</div><div><br></div><div>Thank you all for your help.</div><div><br></div><div>Ferran</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Missatge de Robert Altnoeder <<a href="mailto:robert.altnoeder@linbit.com">robert.altnoeder@linbit.com</a>> del dia dj., 4 de febr. 2021 a les 18:44:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Your guess is correct, the controller is transaction-safe, so if it confirms the creation of a resource, it will also have updated the database. If the controller or the database cannot make the change, the entire transaction rolls back.<br>
The situation may be more complicated if etcd is used instead of a database, because as far as I recall, etcd is only “eventually consistent”, so some nodes may still be behind - but I don’t know the details of that, so don’t take my word on it. With the SQL databases, everything works as you would expect it to work for a committed SQL transaction.<br>
<br>
Best regards,<br>
Robert<br>
<br>
> On 04 Feb 2021, at 17:53, Yanni M. <<a href="mailto:gianni.milo22@gmail.com" target="_blank">gianni.milo22@gmail.com</a>> wrote:<br>
> <br>
> I don't know the internals of the Linstor database system but I'd guess that it updates itself each time you do a modification onto it like for example adding or removing resources, resource groups etc.<br>
[…]<br>
<br>
> On Thu, 4 Feb 2021 at 05:47, Ferran Alchimia <<a href="mailto:ferran.alchimia@gmail.com" target="_blank">ferran.alchimia@gmail.com</a>> wrote:<br>
<br>
[…]<br>
<br>
> The user guide talks about "regular backups" but it does not specify when does the controller database updates itself.<br>
<br>
[…]<br>
_______________________________________________<br>
Star us on GITHUB: <a href="https://github.com/LINBIT" rel="noreferrer" target="_blank">https://github.com/LINBIT</a><br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com" target="_blank">drbd-user@lists.linbit.com</a><br>
<a href="https://lists.linbit.com/mailman/listinfo/drbd-user" rel="noreferrer" target="_blank">https://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
</blockquote></div>