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

    Missing vdi which is a base for a delta

    Scheduled Pinned Locked Moved Unsolved Backup
    24 Posts 3 Posters 1.8k 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.
    • B
      blueh2o @blueh2o
      last edited by

      Well, mirror backup failed last night, missing vdi d08f1acc-a2a9-40c1-a129-e87e151cb268 which is a base for a delta. I checked the VM backups and this is what I see:image.jpeg
      I don't understand why there is no key in Ark.

      B 1 Reply Last reply
      Reply Quote 0
      • B
        blueh2o @blueh2o
        last edited by

        2026-11-19T07_00_00.018Z - backup NG.txt

        B 1 Reply Last reply
        Reply Quote 0
        • B
          blueh2o @blueh2o
          last edited by

          And the health check passes. How can that be possible?

          {
          "id": "0mwnnmk6y-jd7jumsiui",
          "start": 1795099050682,
          "status": "success",
          "updatedAt": 1795103578854,
          "tasks": [
          {
          "id": "0mwnnmmmn-jvm3zflms38",
          "start": 1795099053839,
          "status": "success",
          "end": 1795103578854,
          "result": {
          "size": 302621130752,
          "id": "b656b0d4-b575-c805-5738-6fd50d150951",
          "liveMounts": []
          },
          "message": "transfer"
          }
          ],
          "end": 1795103578854,
          "result": {
          "size": 302621130752,
          "id": "b656b0d4-b575-c805-5738-6fd50d150951",
          "liveMounts": []
          },
          "message": "restore",
          "data": {
          "backupId": "dc0a417c-e1cb-4b4b-8fd9-d59e2564999f//xo-vm-backups/fb7fca7d-7355-4a48-f35c-d32c8dfa71ee/20261119T051216Z.json",
          "jobId": "73d695c7-901b-45bd-94ba-f38682705d35",
          "srId": "caba922c-ac32-67e8-f83b-a5907d880179",
          "time": 1795065136373
          }
          }

          poddingueP 1 Reply Last reply
          Reply Quote 0
          • poddingueP
            poddingue Vates 🪐 @blueh2o
            last edited by

            @blueh2o I think the two things you saw fit together, at least going by what I see in the mirror code. The 1 differencing tag only says that this one backup's disk is a delta, which is normal for an incremental; the key sits further back in the chain, which I think is why the health check could still rebuild the whole ~280 GiB disk.
            And as I wrote a few posts up, the mirror reads the parent of each delta on Ark and then asks each target whether it already has it, so last night's error would mean the Synology is missing d08f1acc for that one VM (fb7fca7d), not that Ark is broken.
            That brings us back to Florent's suggestion from the older thread, deleting that VM's most recent backups on the Synology so they get sent again, though I can't tell you why the Synology lost that base in the first place. At least it's down to one VM out of 56 last night, against 16 in October.

            B 1 Reply Last reply
            Reply Quote 0
            • B
              blueh2o @poddingue
              last edited by

              @poddingue The most recent failure is vm 7da38127-0ff5-1f76-d8b6-a5159a37d658 Missing vdi a45aab28-2ab5-471a-bcbd-ad562828a429 which is a base for a delta

              Looking at Synology the directory under xo-vm-backups for this vm has no actual data:
              /volume1/Backup/Xen/xo-vm-backups$ ls -l 7da38127-0ff5-1f76-d8b6-a5159a37d658
              total 4
              -rwxrwxrwx+ 1 root root 50 Oct 24 07:44 cache.json.gz

              So, there is nothing to delete...?

              poddingueP 1 Reply Last reply
              Reply Quote 0
              • poddingueP
                poddingue Vates 🪐 @blueh2o
                last edited by

                Thanks, an empty folder on the Synology changes things. There's nothing on the target to delete, so at least for this VM the target can't be the side missing a piece. I had it the wrong way round on the 20th. 🤦

                Going back to the code, when the target has nothing, the mirror queues every backup Ark holds for that VM, oldest first and per source job. It only stops with this error when one of them is a delta whose parent isn't on the target.
                With nothing there, that would mean the oldest backup on Ark for 7da38127 is itself a delta with no key behind it, which sounds like the keyless chains you found on the 18th. 🤔

                Could you check in the restore view whether the oldest Ark backup of that VM shows a key tag, job by job, since you have several delta jobs feeding Ark?
                The mirror page in the docs assumes the chain on the source starts with a key (https://docs.xen-orchestra.com/backups-and-dr/backup-types/mirror_backup#synchronizing-algorithm-for-incremental-backups), and I don't know yet how Ark ends up with a chain that doesn't, so my reading of the code could still be off.

                B 1 Reply Last reply
                Reply Quote 0
                • B
                  blueh2o @poddingue
                  last edited by

                  @poddingue Yes there is a key:
                  image.jpeg

                  poddingueP 1 Reply Last reply
                  Reply Quote 0
                  • poddingueP
                    poddingue Vates 🪐 @blueh2o
                    last edited by

                    Your screenshot shows the 11-21 backup of 7da38127 as a key on Ark, so the keyless delta I guessed at the start of the chain isn't there for this VM, at least not in that list. I had it wrong again, sorry. 🤷

                    The Synology now shows that key and the 11-28 delta too, when the folder was empty on the 25th, which makes me wonder whether a later mirror run got this VM through.

                    Did last night's mirror still report Missing vdi for 7da38127, or for any other VM? And is that the whole list for that VM, with a single delta job feeding Ark, or are there older backups or other jobs that didn't fit in the screenshot?

                    B 1 Reply Last reply
                    Reply Quote 0
                    • B
                      blueh2o @poddingue
                      last edited by

                      @poddingue No, last night there were no missing vdis. That is the entire list for that VM at the moment. The only failures last night were 4c422bc5 (Lock file is already being held) - that is in the same mirror job we've been discussing; and 12446df8 in the daily delta job to Ark, also lock file is already being held.

                      poddingueP 1 Reply Last reply
                      Reply Quote 0
                      • poddingueP
                        poddingue Vates 🪐 @blueh2o
                        last edited by

                        Good news for 7da38127 then, and the error going away by itself is worth knowing, even if neither of us can say yet why it came in the first place. 🤷
                        The lock file errors look like a separate thing to me: the docs say it means the VM's folder on the remote was already in use, by another backup job or a merge (https://docs.xen-orchestra.com/backups-and-dr/backup_troubleshooting#error-lock-file-is-already-being-held).
                        Since both failures touch Ark, I wonder whether the mirror and the daily delta job to Ark overlapped last night? That's only a guess from the job names (I can't see your schedules from here), so it would help to know when each one started and finished. 🤔

                        1 Reply Last reply
                        Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post

                        Looks like your connection to XCP-ng was lost, please wait while we try to reconnect.