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

    rolling snapshot no appears more on Xen Orchestra

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    12 Posts 3 Posters 1.0k Views 1 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.
    • V Offline
      vbits
      last edited by

      Hi guys,
      today I installed a new VM to install a new XOA.
      The old one was: xo-server 5.57.3 and xo-web 5.57.1
      The new one is: xo-server 5.81.0 and xo-web 5.85.0

      In the old one I wanted to configure a daily rolling snapshot with a 5 days retention. (vm.rollingSnapshot)
      But I always got the error : no value for user_ip.

      And today when I finished installing the new VM and new XOA and importing the configuration I realized that the function does not exist anymore.
      Is it deprecated?
      What alternative or how can I now configure a daily snapshot with retention?
      I only see the option to make a snapshot job but I don't want to accumulate too many snapshots and this function doesn't have a retention option.

      Should I do a cron or something via terminal?

      Thanks

      Regards

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

        But why not using Rolling snapshot from backup view? That's the way to use it.

        V 1 Reply Last reply Reply Quote 0
        • DanpD Online
          Danp Pro Support Team
          last edited by

          Looks like the functionality has been removed -- https://github.com/vatesfr/xen-orchestra/issues/5800

          usbalbin created this issue in vatesfr/xen-orchestra

          closed API procedure vm.rollingSnapshot not working #5800

          V 1 Reply Last reply Reply Quote 0
          • V Offline
            vbits @Danp
            last edited by

            @danp Yes, thank you. I also found that post. What a pity, and can anyone think of a script to be able to do it by cron or some other alternative? I'm very bad with that...

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

              But why not using Rolling snapshot from backup view? That's the way to use it.

              V 1 Reply Last reply Reply Quote 0
              • V Offline
                vbits @olivierlambert
                last edited by

                @olivierlambert ah wow!!
                I had not looked at it there! I just looked at jobs and schedules.
                thank you very much!

                Sorry for the oversight

                V 1 Reply Last reply Reply Quote 0
                • V Offline
                  vbits @vbits
                  last edited by

                  @vbits One last question, can you tell me please how much on average or what percentage of the VM is the size of a snapshot? (with and without memory)

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

                    Depends on the SR type (thin or thick).

                    V 1 Reply Last reply Reply Quote 0
                    • V Offline
                      vbits @olivierlambert
                      last edited by

                      @olivierlambert thick

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

                        So let's take an example of a 100GiB virtual disk (full at 10GiB).

                        Before the snapshot, you are using 100GiB on your SR.

                        Just after the snapshot, you'll use 200GiB (and few MiB for the snapshot). After a bit, the base copy will be deflated to 10GiB, so you'll use 110GiB roughly. But at the time of the snap, you need roughly double of disk space available on your storage.

                        V 1 Reply Last reply Reply Quote 0
                        • V Offline
                          vbits @olivierlambert
                          last edited by

                          @olivierlambert Interesting, understood, thank you again.
                          So the snapshot itself doesn't take up hardly any space, just a few megabytes as you said.
                          I guess the rolling feature will do the snapshots one by one.
                          So it would be enough for me to have as free space a little more than the biggest virtual disk of the host.
                          Or am I wrong?
                          Right now I don't know if I have any SR thin on any other host as well, but would the situation apply?

                          V 1 Reply Last reply Reply Quote 0
                          • V Offline
                            vbits @vbits
                            last edited by

                            @vbits PS. Assuming I do a rolling snapshot schedule job of all VMs on the host of course.

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

                              Thin will have an active disk only the size used. So instead of using 100GiB, you are using 10GiB, and with a snap, only 10GiB and few KiB.

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