XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Shares 0
    • Posts 9
    • Groups 0
    S Offline
    1. Home
    2. SeriouZ
    3. Posts

    Posts

    Recent Best Controversial
    • RE: Backup failures after VHD to QCOW2 conversion

      I’ve now correlated the XO and host logs, which helps narrow down where the time is spent.

      The qemu-img info and qemu-img map calls complete within seconds, but the subsequent host-side QCOW2 diff-export process remains active much longer. For example:

      09:47:13 Executing …/qcow2-to-stdout.py <snapshot> --diff <reference> …
      10:08:57 ConnectionResetError: [Errno 104] Connection reset by peer
      

      At exactly 10:08:57, XO logs:

      xo:fs:abstract INFO will output stream
      

      For another VM, the corresponding interval was approximately 18 minutes, again ending when XO opened the backup output streams.

      This points to the preparation of the QCOW2 diff stream as the main delay. The connection resets may be caused by XO closing the preparatory HTTP stream before continuing through NBD, rather than an actual backup failure.

      posted in Backup
      S
      SeriouZ
    • RE: Backup failures after VHD to QCOW2 conversion

      @zorro Thanks for sharing your findings

      I increased the HTTP inactivity timeout following the XO troubleshooting guide, and the test appears to be working. After roughly 30 minutes, the export started without errors or full-backup fallbacks.

      This supports your hypothesis that the QCOW2 delta calculation may take longer than the default five-minute timeout allows, although I havent yet confirmed where that time is spent

      posted in Backup
      S
      SeriouZ
    • RE: Backup failures after VHD to QCOW2 conversion

      Hi everyone

      Is there any update on this issue?
      Have you had a chance to review the logs from both hosts @Team-Storage?

      posted in Backup
      S
      SeriouZ
    • RE: Backup failures after VHD to QCOW2 conversion

      I noticed that a new SM update candidate sm-3.2.12-25.3 is available with QCOW2 activation and GC cleanup fixes. Both hosts currently run 25.2.

      Could these fixes be relevant to the tap-ctl close timeouts and snapshot cleanup failures in our logs?

      posted in Backup
      S
      SeriouZ
    • RE: Backup failures after VHD to QCOW2 conversion

      here is another link valid for 7 days @Team-Storage

      I also created a new backup job. The initial full backup completed successfully, but the incremental backups after still fail with the same errors as before.

      posted in Backup
      S
      SeriouZ
    • RE: Backup failures after VHD to QCOW2 conversion

      Hi everyone

      Here are the logs (anonymized) for one complete backup run.
      Thanks for taking a look!

      posted in Backup
      S
      SeriouZ
    • RE: Backup failures after VHD to QCOW2 conversion

      Thanks for your help! I have the SMlogs from both hosts ready, but they’re too large to upload here, even compressed

      Whats the best way to share them with you or Team-Storage? 😃

      posted in Backup
      S
      SeriouZ
    • RE: Backup failures after VHD to QCOW2 conversion

      @poddingue said:

      rpm -q sm blktap

      Both hosts have the following versions installed:

      sm-3.2.12-25.2.xcpng8.3.x86_64
      blktap-3.55.5-12.3.xcpng8.3.x86_64
      
      posted in Backup
      S
      SeriouZ
    • Backup failures after VHD to QCOW2 conversion

      Hi everyone,

      After migrating VMs between pools and converting their disks from VHD to QCOW2, some VMs repeatedly fail during backup export and snapshot cleanup. Other QCOW2 VMs and VHD-backed VMs back up successfully.

      Environment

      • Two XCP-ng 8.3 hosts, both updated and rebooted
      • Shared LVM-over-iSCSI storage on Synology (approximately 8.6 TiB free)
      • NBD enabled
      • XO Server 5.213.0, commit a50776cb7, running in the Ronivay Docker image

      Recurring errors

      QCOW2 export times out and falls back to a full:

      BodyTimeoutError: Body Timeout Error
      code: UND_ERR_BODY_TIMEOUT
      can't compute delta …, fall back to a full
      

      Other export attempts receive a host storage-backend error:

      invalid HTTP header in response body
      HTTP/1.1 500 Internal Error
      SR_BACKEND_FAILURE_1200
      

      The response includes a failed disk-close operation:

      tapdisk_control_close_image: device qcow2:… still open
      tap-ctl close … -t 120
      Connection timed out
      status=110
      

      Snapshot cleanup then fails:

      Couldn't disconnect … from dom0
      OPERATION_NOT_ALLOWED: VBD … still attached to …
      VDI_IN_USE(…, destroy)
      

      We confirmed that the affected attachments belong to snapshot VDIs in dom0. Repeated VBD.unplug_force operations appear, and backup retries encounter the same problem.

      The problem persists after updating and rebooting both hosts and updating XO.

      Has anyone experienced similar QCOW2 backup and snapshot cleanup failures after a cross-pool migration? Is there a known fix or recommended recovery procedure?

      posted in Backup
      S
      SeriouZ