XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 71
    • Groups 4
    dthenotD Offline
    1. Home
    2. dthenot
    3. Posts

    Posts

    Recent Best Controversial
    • RE: XCP-ng 8.3 β€” QCOW2 snapshot deletion followed by failed live coalesce and recurring rollback failures on shared iSCSI SR

      @racom.jiristerba
      Sorry, I missed answering your questions the first time

      Is the tapdisk QCOW2 commit failure β€œThe device is not writable: Permission denied” a known issue with these package versions on shared LVM/iSCSI storage?

      Yes, it's a known issue, most of them will be fixed with the latest update, you might need to activate the VDI again but a migration during RPU will be enough

      Why does rollback attempt to deactivate the active guest LV while tapdisk still holds it open?

      It's because in the case of VHD, it's the case but with QCOW2 we don't stop the tapdisk process accessing the VDI, it's a change that was missed

      Is the qcow2OLD_<UUID> naming seen in rollback expected, compared with QCOW2-OLD_<UUID> seen during successful cleanup?

      It's a pre-existing bug that I already have on my TODO list πŸ™‚

      Is there a supported update, hotfix, or workaround for this configuration?

      Installing the latest release sm-3.2.12-25.1 during updates (and maybe launching a xe sr-scan uuid=<SR UUI> after updating it so it auto-resolve the undo) should be enough

      What additional logs are required to identify the original failure of the second QCOW2 VM?

      I don't think we need any more logs since the errors I'm seeing should already be fixed.
      If you have any more issues after installing the newest packages, I will take another look πŸ™‚

      What is the recommended recovery procedure without a guest outage, and how should we validate the disk chains before resuming snapshot backups?

      The sr-scan after updating should do it automatically, it shouldn't need any manipulation. Looking at the storage logs in /var/log/SMlog for any irregularities could help to see problems.

      posted in XCP-ng
      dthenotD
      dthenot
    • RE: XCP-ng 8.3 β€” QCOW2 snapshot deletion followed by failed live coalesce and recurring rollback failures on shared iSCSI SR

      @zorro said:

      *** finished leaf-coalesce successfully

      This is misleading, this is printed by _finishInterruptedCoalesceLeaf that is handling cleanup after the leaf coalesce failed.

      Thank you for the information, we have a fix for the interrupted coalesce leaf in the next release that might help, I'll also try to reproduce to see if it's the same behavior.

      posted in XCP-ng
      dthenotD
      dthenot
    • RE: XCP-ng 8.3 β€” QCOW2 snapshot deletion followed by failed live coalesce and recurring rollback failures on shared iSCSI SR

      @racom.jiristerba Hello, this appear to be bugs we are already fixing in the build currently in the testing repository. Please see this post for instruction to install the updates : https://xcp-ng.org/forum/post/108803

      These two bugs are: the chain being RO sometime which the tapdisk process doing the coalesce can't access and a bug with the LV being in use when it's trying to refresh the VDI it was coalescing and it's parent following the cleanup. Both of those are fixed in sm-3.2.12-25.1.xcpng8.3

      posted in XCP-ng
      dthenotD
      dthenot
    • RE: Large QCOW2 VDI on LVM SR fails to activate with make_chain_rw / Input/output error

      @samuelolavo Hello,

      Could the fact that this is a local LVM SR on a non-master host be relevant to how make_chain_rw is being handled?

      Yes, it's indeed what's happening. The check for the SRMaster (for a shared SR it's the master but for a local it's supposed to be done on the host directly) is failing and always saying False. I'll fix this.

      Thank you for the help πŸ™‚

      posted in XCP-ng
      dthenotD
      dthenot
    • RE: Large QCOW2 VDI on LVM SR fails to activate with make_chain_rw / Input/output error

      @samuelolavo Hello,

      It is indeed linked to QCOW2.

      Is mixing VHD and QCOW2 VDIs on the same VM and on the same SR fully supported?

      Yes, it's supposed to work.

      Are there specific minimum versions of xapi, sm, blktap, or other storage components required for large QCOW2 VDIs?

      Yes, but we would prefer for people to be uptodate, we have been fixing things.
      But I don't think it's a problem for you at the moment.

      make_chain_rw is necessary for the master to make the QCOW2 LV RW at the VDI activation time. So it's likely linked to this particular QCOW2.

      make_chain_rw is executed on the master host and is logging in /var/log/SMlog, could you take a look at what it's erroring on?

      posted in XCP-ng
      dthenotD
      dthenot
    • RE: `/run/sr-mount` parent directory created 0700 on some hosts, 0755 on others

      @Dan Hello,

      So our investigation found that this change was introduced with commit https://github.com/xcp-ng/sm/commit/00637dd52e845d6016add9718fc9cc694aec9f0d
      It was aimed at EXTSR in particular, it appear that the first SR to be plugged is the one choosing the mode of sr-mount since util.makedirs also create the parent directory with the given mode.

      I have created a card for the issue on our side.

      posted in XCP-ng
      dthenotD
      dthenot
    • RE: `/run/sr-mount` parent directory created 0700 on some hosts, 0755 on others

      @Dan Hello,

      I can't answer from memory, we'll take a look at this and come back to you πŸ™‚

      Thanks for the report, I guess it could be considered a bug since even it's one of the other, it's not the expected behaviour to have the mode change between runs.

      posted in XCP-ng
      dthenotD
      dthenot
    • RE: How to reliably determine VDI format (vhd, qcow2, raw) via XAPI across versions

      @bvitnik It's specific to XCP-ng.

      posted in Development
      dthenotD
      dthenot
    • RE: How to reliably determine VDI format (vhd, qcow2, raw) via XAPI across versions

      @bvitnik Hello,

      sm-config:vdi_type is the pre-existing one so we are still writing it for compatibility reasons.
      But you might notice that vdi_type is only written for LVM-based SRs.
      While image-format is always written in XCP-ng with the QCOW2 feature.

      So it might be safe to just look at image-format if it exist and if it's not, it's likely a VHD.
      On LVMSR, you can fallback on vdi_type (and it should work for XS too).

      Indeed, ISO SRs do not advertise a VDI format. Technically, ISOs could be considered to be raw.

      It should also be noted that our implementation of QCOW2 is very different from GFS2 QCOW2 of XenServer.
      Our implementation uses the existing SR types to allow VHD and QCOW2 to co-exist.

      posted in Development
      dthenotD
      dthenot
    • RE: XCP-ng 8.3 updates announcements and testing

      @probain Hello,

      It's likely linked to the List index out of range bug.
      That bug was linked to the SR scan failing to introduce CBT_metatadata VDI in the XAPI database, could you try to launch a xe sr-scan uuid=<SR UUID> and try again to disable CBT?
      If it does not work, could you share the /var/log/SMlog of around the time you are trying to disable CBT?

      posted in News
      dthenotD
      dthenot
    • RE: XCP-ng 8.3 updates announcements and testing

      @Andrew Hello,

      I'm also getting error on some VMs while trying to export a disk and also trying to even start some VMs from NFS (that were fine before).

      Is it still a problem? It might have multiple causes. If it's still an issue, could you share the logs: /var/log/{SMlog,xensource.log,daemon.log}. It contains information that could help us investigate.

      The VDI not detached cleanly means that the VDI still has a reference to the host it was running on before.
      It's might be caused by the xenopsd error earlier or maybe it's the cause.

      If you are sure no tapdisk are using the VDI, you can look at tap-ctl list output on each host.
      You can clean this reference with the script in /opt/xensource/sm/resetvdis.py single <VDI UUID>.

      posted in News
      dthenotD
      dthenot
    • RE: Attach a Physical HD to a VM?

      @nasheayahu Sorry, I made a mistake, it's device-config:location --'
      I'll edit my first post with the correct configuration, you will also likely need to give the host-uuid of the host the disk is on.

      posted in Management
      dthenotD
      dthenot
    • RE: Attach a Physical HD to a VM?

      @nasheayahu Hello,

      I do this in my homelab with a disk since I imported it from a physical machine:

      mkdir /srv/NAS
      xe sr-create type=udev device-config:location=/srv/NAS name-label="NAS Disks" host-uuid=<UUID of the host with the disks>
      

      Then you make a symlink to the device:

      ln -s /dev/sda /srv/NAS/sda #although it might be better to use a stable identifier if you have multiple disks
      xe sr-scan uuid=<UUID of the udev SR>
      

      The disk will appear as a VDI in the SR that you can then plug to a VM.

      I also renamed the VDI [NOSNAP][NOBAK] NAS Drive
      [NOSNAP][NOBAK] instruct XO to not snapshot and export the disk in backups (since it can't).

      It's not passthrough, as in the disk is not directly given to the VM, but tapdisk (the process virtualizing storage) will give access to the whole disk to the guest, so it can mount any FS on it.

      The udevSR is usually used for plugging USB from what I could gather from existing code. But users in homelabs have been using it like this for a while.
      Though you will likely not have native performance level since it's not exactly passthrough.

      posted in Management
      dthenotD
      dthenot
    • RE: XOSTOR appears to be broken on the new XCP-NG May 2026 update

      Hello again,

      The updates have been made available and RPU with xostor should be safe to run πŸ™‚
      https://xcp-ng.org/blog/2026/05/07/may-2026-updates-2-for-xcp-ng-8-3-lts/

      posted in XOSTOR
      dthenotD
      dthenot
    • RE: XOSTOR appears to be broken on the new XCP-NG May 2026 update

      @ccooke Hello,

      We have a fix, we are aiming to validate it rapidly so it shouldn't happen for others.
      Thank you for reporting the issue. I'll update the thread again when the update is available and it should be safe for other people going through here to update using the RPU.

      posted in XOSTOR
      dthenotD
      dthenot
    • RE: XOSTOR appears to be broken on the new XCP-NG May 2026 update

      @ccooke Hello,

      You should be able to make the XOSTOR SR work again if you update sm and sm-fairlock on the other hosts.

      yum update sm sm-fairlock
      

      Then you should be able to re-plug the SR on the master and proceed with the RPU.

      posted in XOSTOR
      dthenotD
      dthenot
    • RE: XCP-ng 8.3 updates announcements and testing

      @IgorGlock Hello,

      Could you share the exception that should be in /var/log/SMlog?

      posted in News
      dthenotD
      dthenot
    • RE: XCP-ng 8.3 updates announcements and testing

      @Andrew Hello,

      I have been able to find the problem and make a fix, it's in the process of being packaged.
      I can confirm it only happen for file based SR when using purge snapshots.
      For some reason, the vdi type of CBT_metadata is cbtlog for FileSR but stays the image format it was for LVMSR
      And it would make a condition fail during the list_changed_blocks call.

      posted in News
      dthenotD
      dthenot
    • RE: XCP-ng 8.3 updates announcements and testing

      @Andrew Hello Andrew,

      Thank you for reporting.
      It appear that the CBT on FileSR-based SR is not working in addition to data-destroy (the option that allow to remove the VDI content and only keep the CBT).
      Can you confirm that you are using a FileSR (ext or nfs)?
      Is it possible to disable purge data on the CR job?

      posted in News
      dthenotD
      dthenot
    • RE: XCP-ng 8.3 updates announcements and testing

      @acebmxer Hello,

      The error VDI_CBT_ENABLED means that the XAPI doesn't want to move the VDI to not break the CBT chain.
      You can disable the CBT on the VDI before migrating the VDI but if you have snapshots with CBT enabled it can be complicated and it might necessitate to remove them before moving the VDI.
      We have changes planned to improve the CBT handling in this kind of case.

      posted in News
      dthenotD
      dthenot