S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
homelab 2026-10-24

Proxmox Disk Move Bug Deletes VM Disks (2026 Fix Guide)

Watch the video

Watch Proxmox Disk Move Bug Deletes VM Disks (2026 Fix Guide)

This guide is a companion to the video. Sections marked In the video describe what the video claims. Sections marked Added from the sources add what the linked primary sources confirm. The on-screen walkthrough in the video is a dramatized illustration because the bench box is not a Proxmox cluster, and every command shown there is genuine and documented.

In the video: the failed move

In the video, the presenter describes a report from Proxmox forum thread 187166, posted October 20 2026 by user kcastner_de. The numbers below are labeled as the reporter's numbers: Proxmox VE 9.2.21, kernel 7.0.14-19-pve, and qemu-server 9.1.15. The VM was stopped, and the move was an offline move of an unused disk on local ZFS, a thin zvol with a 10 TiB volume size and about 1.1 TiB actually used, moving to NFS storage on a Synology DS212+ running DSM 6.2.4.

In the video, the first attempt died on a storage lock timeout while creating the target image, and the reporter then set preallocation off on the NFS storage and retried. The second attempt copied for about 9 hours to 100 percent, then logged failed to stat on the fresh target file, and on the very next line logged removing the source volume after successful copy, with task status TASK OK.

In the video, the damage is described as total for that disk: the source zvol was destroyed, the target qcow2 file did not exist, and the VM config pointed an unused entry at a volume that was not there, so attaching it failed with volume does not exist. The reporter's NAS usage graphs rose steadily during the copy and dropped about 1.25 TB the moment the copy ended. Two independent vzdump backups saved the reporter, so there was no permanent loss in that case.

In the video: why the code deletes the source

In the video, the presenter gives a plain-terms root cause: the move path clones the disk inside an eval guarded block, and the size query on the freshly copied target also lives inside an eval in QemuServer.pm. When the target cannot be statted, the file storage plugin only warns failed to stat and returns undef instead of failing, so the clone appears to have succeeded and the delete branch in Qemu.pm fires. Nobody re-checks that the target actually exists with a real size.

In the video, two further traps are described: qemu-img convert can exit zero while holding the output file open, so deleting the name from under it lets writes keep flowing into an unlinked handle, and NFS silly rename behavior can hide an unlinked-while-open file under a .nfs name so the stat on the original name fails exactly the way the log shows.

In the video, the presenter also reports a postmortem reproduction from October 21 on a throwaway 2 GiB test disk with the same result of return code zero and TASK OK, plus a config entry pointing at nothing, while rerunning the same move with delete set to zero kept the source as unused0. This reproduction is presented as reported and is not independently verified here.

Reproduction title card: same result on a throwaway 2 GiB test disk with return code zero and TASK OK
Reproduction title card: same result on a throwaway 2 GiB test disk with return code zero and TASK OK (Still from the walkthrough video.)

Added from the sources: patch status and source notes

Added from the sources: the Proxmox forum thread 187166 title, Environment section, and task log lines were read directly and match the video's account, including the failed to stat line followed by source removal and TASK OK. A staff reply from fiona asks for journals, storage.cfg, findmnt output, and pveversion, and says the issue will be reproduced with checks hardened.

Added from the sources: the pve-devel archive index lists the [PATCH-SERIES qemu-server 0/4] fix #8209: clone disk: do not ignore failure to query size of target series by Fiona Ebner dated October 22 2026, with patches covering the target size query failure, an early abort on source size query failure, block job documentation, and a longer target size query timeout. The series is in review and no packaged fixed qemu-server has shipped, so current installs still carry the bug.

Added from the sources: the Bugzilla entry 8209 is cited by URL only because the page is blocked by a bot check and was never read. The Proxmox wiki Storage Migration page was read directly and states that by default the source disk is kept as an unused disk for safety, with deletion only if you choose Delete source.

Fix-status title card: Bugzilla 8209 with a four-patch series posted October 22 and no packaged fix yet
Fix-status title card: Bugzilla 8209 with a four-patch series posted October 22 and no packaged fix yet (Still from the walkthrough video.)

In the video: the safe move sequence

In the video, the presenter gives a safe sequence for use until a patched package lands, stated as untested on this bench because the bench box is not a Proxmox cluster. The rule in one sentence is to move without Delete source, verify the copy byte for byte, and only then unlink the original by hand.

In the video, the decision points are made explicit: the kept unused disk entry is your rollback, and a nonzero compare, a missing target, or a nonsensical size means the copy failed no matter what the task log says. The reporter's own log is cited as proof that task status cannot be trusted on a move while this bug is open.

Verify-or-revert title card: an unused disk is your rollback and TASK OK is the last thing to trust
Verify-or-revert title card: an unused disk is your rollback and TASK OK is the last thing to trust (Still from the walkthrough video.)

Added from the sources: who is exposed

Added from the sources: the forum report points at offline moves with the delete source option on PVE 9.2 with qemu-server 9.1.15, most of all to NFS targets where a mid-copy unlink can hide behind silly rename behavior. Online moves go through a different block job path, but the video treats every move with delete enabled as suspect until patched, and that caution is reasonable given the fix has not shipped.

Added from the sources: the thread notes a secondary wrinkle where a first attempt aborted by a lock timeout can leave cleanup racing a retry that reuses the same volume name. After any aborted move, list the target directory before retrying, clear leftovers deliberately, and never retry blindly over the same name.

Verdict

In the video, the verdict is that this is a real data-loss bug with a reproducer, a root cause, and a patch series in review, but no packaged fix. Until nodes install a fixed qemu-server, the policy is to never pass delete on a disk move, always compare before unlinking, and keep vzdump backups current, because backups are what saved the reporter. The upstream default already keeps the source as unused, and leaving that default alone is what protects you.

Watch the walkthrough

Watch on YouTube