Clone failed

bravo0916

Member
Jan 29, 2024
60
5
8
Hello team,

I am tying to do the clone job to the other disk, but the job was failed. The below is the error messages.
The node is supposed to be cloned to local-lvm. The pro mix version is the latest.


TASK ERROR: clone failed: block job (mirror) error: drive-efidisk0: Source and target image have different sizes (io-status: ok)

Appreciate your help.

Regards,
 
FWIW: I had that same error, and the solution for me was to shut the VM down - then it let the clone complete without error. If you have not tried that, might be a solution.
 
  • Like
Reactions: abobakr
FWIW: I had that same error, and the solution for me was to shut the VM down - then it let the clone complete without error. If you have not tried that, might be a solution.
This possibly suggests that the rate of change is high and/or the storage is pretty slow, hence the last sync is not able to synchronize the data as needed.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
I also can't clone a running or paused VM

Code:
TASK ERROR: clone failed: block job (mirror) error: drive-efidisk0: Source and target image have different sizes (io-status: ok)

Had to shut it down to clone.
This should be possible, from the webui, to clone

Note this was a win10 vm.

I will explore eliminating efidisk entirely as that appears to be the cause. The EFI system partition can just as well live on the main disk if it causes issues like this
 
Another workaround: I'm backing up (snapshot/live) to a PBS server and then restore. Is pretty fast as the backup is incremental, and the source VM does not need to be stopped.
I also noticed, that the restore process modified the size of the EFI disk:
progress 100% (read 34359738368 bytes, zeroes = 71% (24712839168 bytes), duration 13 sec)
restore image complete (bytes=34359738368, duration=13.44s, speed=2437.51MB/s)
rescan volumes...
VM 522 (efidisk0): size of disk 'vmstorage:vm-522-disk-0' updated from 528K to 1M
TASK OK

I have so far not tested further live cloning of this cloned-by-backup-restore VM, but may the size adaptation makes s difference...

PVE version is 8.4.12 ...

Uli