pve-zsync pull fails with: Vm include no disk on zfs. Bug? [SOLVED]

mailinglists

Renowned Member
Mar 14, 2012
643
70
93
pve-zsync pull fails with: Vm include no disk on zfs.
Is this a bug, or I am using pve-sync wrongly?

I have read:
https://forum.proxmox.com/threads/pve-zsync-broken.33729/
Playing with cache options, did not change a thing.

Problem:
Code:
root@p27:~# pve-zsync sync --source 10.31.1.26:100 --dest rpool/backup --verbose --maxsnap 5 --name test --limit 30000
Vm include no disk on zfs.

Info:
Code:
root@p27:~# cat /etc/pve/nodes/p26/qemu-server/100.conf
agent: 1
boot: cdn
bootdisk: scsi0
cores: 4
memory: 4024
name: CentOS7.3
net0: virtio=D2:42:B5:57:35:3F,bridge=vmbr1,firewall=1,rate=8,tag=110
numa: 0
onboot: 1
ostype: l26
scsi0: local-zfs:vm-100-disk-1,backup=0,discard=on,format=raw,size=15G
scsihw: virtio-scsi-pci
smbios1: uuid=6ef0eb13-aa65-4615-a625-f0ea2abdaf5a
sockets: 1
Code:
root@p26:/etc/pve/qemu-server# zfs list -t all | grep -i 100
rpool/data/vm-100-disk-1  2.41G  1.74T  2.41G  -
root@p26:/etc/pve/qemu-server# qm list | grep 100
       100 CentOS7.3            stopped    4024              15.00 0         
root@p26:/etc/pve/qemu-server# qm list | grep 100
       100 CentOS7.3            running    4024              15.00 9010

I'm on:
pve-manager/5.2-1/0fcd7879 (running kernel: 4.15.17-1-pve).
pve-zsync: 1.6-15
 
Hi,

this is not a bug you are using raw files on zfs what is not supported.
Use the zfs pool storage plugin and move the disk them it works.
 
Hi Wolfgang,

thank you for your answer.

I thought i was using ZVOLs directly, but I guess I am not.
I did a default ZFS install with default VM creation to get here.
Will go and read some more manuals.
 
I really do not see how I got that format=raw in the config.
Even my template does not contain it:

Code:
root@p27:/etc/pve/qemu-server# cat 102.conf
agent: 1
boot: cdn
bootdisk: scsi0
cores: 4
memory: 1024
name: CentOS7.3
net0: virtio=12:30:45:1F:69:68,bridge=vmbr1,firewall=1,rate=8,tag=110
numa: 0
onboot: 1
ostype: l26
scsi0: local-zfs:base-102-disk-1,backup=0,discard=on,replicate=0,size=15G
scsihw: virtio-scsi-pci
smbios1: uuid=bb719489-929a-4258-bacd-6235d9036893
sockets: 1
template: 1

So I shut down VM, removed that format=raw and it started it up. VM seems to work.
Will do some more tests then try pve-zsync.
 
OK, it finds the disk now.
I have had to also enable backups for the VM so pve-zsync can find the disk.

That format=raw was probably added some time when I was testing the move of disk from local-zfs ZVOL to local file. Might be a bug there, for it not to removed, once I migrated back using GUI.

Anyway, thank you Wolfgang. This is solved.