VM clone - vm disk damaged

czechsys

Renowned Member
Nov 18, 2015
455
50
93
Hi,

Kernel Version Linux 4.13.16-1-pve #1 SMP PVE 4.13.16-43 (Fri, 16 Mar 2018 19:41:43 +0100)

PVE Manager Version pve-manager/5.1-46/ae8241d4

All vm disks are on NFSv4 (format raw) server. If i copy specified vm disks to another vm on nfs server directly, they are undamaged. But if i use proxmox clone feature, disks are damaged.

Tests:
pve-02 -> pve-04 = disks damaged
pve-02 -> pve-02 = disks damaged

I doesn't had this problem before upgrade to this pve version (did ~ 2-3 weeks ago). Any check?

BTW: 6 tests today, one clone was ok, rest failed, in other words, cloning was without error, but after vm boot disks are damaged...
 
I did more tests today. One of the first tests shows md5sum mismatch, but rest was ok. I tried cloning directly after proxmox showed vm offline, tried with some delay, to different pve, to different storage mounts, but now can't reproduct issue.

IP:/export2/proxmox_vmstore2 on /mnt/pve/nfs_proxmox_vmstore2 type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,port=0,timeo=60,retrans=2,sec=sys,clientaddr=IP1,local_lock=none,addr=IP

I thought maybe caching on nfs client/server was problem, but without reproducing its hard to catch issue.
 
Now got the same problem.

Source: nfs server
Target: local lvm
Result: damaged VM

If i use cat nfs/vm-xx.raw > lvm, everything is ok...