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

    Location for "snapshots with memory"

    Scheduled Pinned Locked Moved Management
    5 Posts 2 Posters 73 Views 2 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 Forza

      Where is the memory part stored when doing "snapshot with memory"?

      It seems to take a very long time. The VM is stored in a local SR so it ought to go a lot faster than what it currently looks like:

      aafa4219-4335-4444-9689-7f4ffaee78a2-image.png

      EDIT: It looks like it might use the "Suspend SR" from the pool settings. This is unexpected if this is the case.

      EDIT 2: the time said 8 hours so I restarted the toolstack, since the operation was not interruptable. The VM immediatedly crashed into offline state.

      I found the suspend image on a remote SR:
      2e64a35d-464b-4c2f-8577-579b86295b2a-image.png

      Is there some automation to clear out old suspend images like this? I tried a SR rescan and rebooted the host (which is also master), but it remains.

      a61e3bc3-cb8b-473c-b8ff-4f398a7e116a-image.png

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

        Hi,

        1. The suspend SR is the place to store the virtual drive containing the memory.
        2. The VM is paused and all the RAM is copied to the storage. Depending on how much RAM you have it can take some time.

        How much RAM your VM had?

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

          @olivierlambert said in Location for "snapshots with memory":

          Hi,

          1. The suspend SR is the place to store the virtual drive containing the memory.
          2. The VM is paused and all the RAM is copied to the storage. Depending on how much RAM you have it can take some time.

          How much RAM your VM had?

          It has 32GB RAM, 96GB disk. But as you usee the suspend image was 40GB when I aborted it. At that time it had been going for 20 minutes (with 8h estimated to go) trying to save it to our NFS SR (which is 25Gbit/s LACP).

          We're using XCP-ng 8.3 and XOA on stable channel, both fully up to date.

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

            It's indeed pretty long. I would maybe use a local SR as suspend SR to check if it's very different, that could help to pinpoint the issue.

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

              @olivierlambert

              Thanks for the suggestion. I removeds the "Suspend SR" setting from the pool settings. However even on a host-local SSD SR it takes time.

              Here an Alpine system with 1GB ram used but 32GB allocated. It seems tapdisk is doing lots when creating a snapshot with ram. This time it took maybe less than 5 minutes to finish.

              9404b882-dd74-4223-921c-54da1b41e9c4-image.png

              I found the suspend image, however it is not stored on the same SR as the VM itself. (I have multiple SRs on this host). The XOA says it is 40.42GB while the image on-disk is 33GB.

              54dbaca1-8747-474a-81d0-dc68c2885e9f-image.png

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