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

    Execute pre-freeze and post-thaw

    Scheduled Pinned Locked Moved Backup
    5 Posts 2 Posters 46 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.
    • J Online
      jsajous26
      last edited by

      Hello,

      I'm working on testing the XCP-NG solution (PoC).

      Using the latest Veeam backup plugin, I want to run a script on the VM to freeze the Oracle database with ArchiveLog (BEGIN BACKUP and END BACKUP).
      I can't find a way to run /usr/sbin/pre-freeze-script and /usr/sbin/post-thaw-script via Guest Tools.

      Do you have a solution, or a feature that would allow me to run these two scripts?

      Thanks.

      florentF 1 Reply Last reply Reply Quote 0
      • florentF Offline
        florent Vates 🪐 XO Team @jsajous26
        last edited by

        @jsajous26 we have something for this, web hooks : https://xen-orchestra.com/blog/xen-orchestra-5-75/
        doc : https://github.com/vatesfr/xen-orchestra/blob/master/%40xen-orchestra/xapi/docs/vm-sync-hook.md?ref=xen-orchestra.com

        1 Reply Last reply Reply Quote 0
        • J Online
          jsajous26
          last edited by jsajous26

          I don't quite understand the use of webhooks.
          Do you have a more specific example?

          Veeam not use XOA for backup, use directly XCP-ng.

          florentF 1 Reply Last reply Reply Quote 0
          • florentF Offline
            florent Vates 🪐 XO Team @jsajous26
            last edited by

            @jsajous26 sorry I misread. I don't know how ti setup this while using veeam

            J 1 Reply Last reply Reply Quote 0
            • J Online
              jsajous26 @florent
              last edited by jsajous26

              @florent

              Using webhooks, if I understand correctly, requires installing a Node.js server. This server would then call the commands to put Oracle into backup mode.

              This solution is cumbersome because it would require maintaining Node.js.

              Is there no way to directly use Guest Tools to call a script before and after snapshot, like with VMware or QEMU? If not, is this planned?

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