XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Does XOA pause scheduled backups during XOA upgrades?

    Scheduled Pinned Locked Moved Xen Orchestra
    7 Posts 3 Posters 415 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ForzaF Offline
      Forza
      last edited by

      I was about to start a XOA upgrade, but realised that a backup job was running, so I didn't.

      What would happen if a XOA upgrade is started while a scheduled job or other task involving XO is running?

      • Is there some form of internal checks that would block the Upgrade until those tasks are finished?
      • If the upgrade is started before a scheduled task, will the scheduled task still be attempted or will it be skipped?

      aea6dd32-9dc6-45ef-8797-6533a6437975-image.png

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Online
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi,

        If xo-server is upgraded, that will interrupt all your backups. There's a warning message if you click on Upgrade while a backup is running by the way.

        ForzaF 1 Reply Last reply Reply Quote 1
        • ForzaF Offline
          Forza @olivierlambert
          last edited by

          Thanks. I did not dare to try to test it yet!

          Could there not be a race condition, that a task is started just after the upgrade button is checked? Could we have a new feature to temporarily pause all jobs that involve XOA during the upgrade?

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Online
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            Pausing jobs might have bigger consequences (missing an important backup job) than just telling the users. So I'm not sure there's a trivial solution in here. Adding @julien-f in case he has a suggestion.

            ForzaF 1 Reply Last reply Reply Quote 0
            • ForzaF Offline
              Forza @olivierlambert
              last edited by Forza

              Absolutely, there might be consequences. However no job would be able to run (or might fail) while XOA is undergoing upgrades anyway? One risk is that resuming paused jobs might be missed after an upgrade.

              julien-fJ 1 Reply Last reply Reply Quote 0
              • olivierlambertO Online
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                Only if xo-server is restarted (which is the case, IIRC, only when xo-server itself is updated). If it's the updater or XO web, you shouldn't have any consequence.

                1 Reply Last reply Reply Quote 1
                • julien-fJ Offline
                  julien-f Vates 🪐 Co-Founder XO Team @Forza
                  last edited by

                  XO does not pause backups during upgrades/restart, all currently running backups will be interrupted as @olivierlambert said.

                  An interrupted backup is not a big problem by itself, nothing will be broken, and the next run will run properly.

                  Backups are only run at the time they are scheduled, if XO is offline at this time, it will not automatically run them when restarted, it will wait for the next scheduled run.

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post