Linstor_db backup

Hello all,

am using linstor proxmox with 2 productive nodes and 1 QDevice node. i maked sure to use linstor-controller HA with DRBD-Reactor using this guide:

making the LINSTOR controller service highly available

now i would like to secure the controller and its DB. is there any advices to do it?

Best Regards
Youzersef

These are my recommendations for controlling access to the LINSTOR controller:

To backup the LINSTOR controller’s DB, currently, you’d have to do something like this:

  • drbdreactor-ctl disable --now <controller service> on all nodes
  • mount /dev/drbdX /somewhere
  • copy the database out of the mount point to somewhere as your backup
  • umount /dev/drbdX
  • drbdreactor-ctl enable --now <controller service> on all nodes
1 Like

thanks Kermat. :). My backup is running

1 Like

It would be great if this important piece of information could be added to the user guide section on backing up and restoring a linstor database.

The /usr/share/linstor-server/bin/linstor-database export-db ~/db_export and /usr/share/linstor-server/bin/linstor-database import-db ~/db_export process that exists in the LINSTOR users guide currently is the same as thing, but with the added benefit of allowing you to also convert the LINSTOR database between database types.

In the near future there will be updates to LINSTOR in this area allowing for “live” backups (where the LINSTOR controller remains running). We will update the steps in the LINSTOR users guide once that feature is GA.

1 Like

Live back-up of the database would be indeed a nice to have feature.
If I understand correctly at this moment the controller needs to be stopped to copy the database files?

If db files are just “copied” i guess recovery of a controller is just as easy as copying them back in place?

Yes, to ensure the database is stable at the time of backup.

Yes, that is correct.