[SOLVED] pve-sync snapshot size is 0

AxelTwin

Well-Known Member
Oct 10, 2017
132
5
58
39
Hi everybody,

I am using pve-zsync to send snapshots from a proxmox zfs pool on server1 to another proxmox zfs pool on server2.
The tool works like a charm, but every single container's snaphot shows size as 0 in the proxmox webui. I can browse the snapshot and files are present.
any idea why it behave like this ?

Code:
root@proxmox-3:~# zfs list -t snapshot
NAME                                                                            USED  AVAIL  REFER  MOUNTPOINT
rpool/pve-zsync/subvol-102-disk-0@rep_Backup_snapshot_102_2019-12-05_13:16:24   224K      -  1.98G  -
rpool/pve-zsync/subvol-103-disk-0@rep_Backup_snapshot_103_2019-12-05_13:55:02   356K      -  95.8G  -
rpool/pve-zsync/subvol-104-disk-0@rep_Backup_snapshot_104_2019-12-05_13:19:00   200K      -  1.66G  -
rpool/pve-zsync/subvol-105-disk-0@rep_Backup_snapshot_105_2019-12-05_14:36:48     0B      -  7.24G  -
rpool/pve-zsync/subvol-106-disk-0@rep_Backup_snapshot_106_2019-12-05_14:51:43  2.09M      -  8.16G  -
rpool/pve-zsync/subvol-311-disk-0@rep_Backup_snapshot_311_2019-12-05_15:06:52   280K      -  25.5G  -
rpool/pve-zsync/vm-201-disk-0@rep_Backup_snapshot_201_2019-12-05_15:14:47         0B      -  61.3G  -
rpool/pve-zsync/vm-206-disk-1@rep_Backup_snapshot_206_2019-12-05_12:40:15         0B      -  3.69G  -
 

Attachments

  • Capture.JPG
    Capture.JPG
    44.2 KB · Views: 12
Hi,
could you post the output of pveversion -v?
What does
Code:
zfs list -o name,volsize,origin,type,refquota rpool/pve-zsync -r -t all
show?
 
hi, thanks for replying
Here is the output on the source server:

Code:
root@proxmox-5:~# pveversion -v
proxmox-ve: 6.1-2 (running kernel: 5.3.10-1-pve)
pve-manager: 6.1-3 (running version: 6.1-3/37248ce6)
pve-kernel-5.3: 6.0-12
pve-kernel-helper: 6.0-12
pve-kernel-4.15: 5.4-12
pve-kernel-5.3.10-1-pve: 5.3.10-1
pve-kernel-4.15.18-24-pve: 4.15.18-52
pve-kernel-4.13.13-3-pve: 4.13.13-34
pve-kernel-4.13.3-1-pve: 4.13.3-2
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.0.2-pve4
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.13-pve1
libpve-access-control: 6.0-5
libpve-apiclient-perl: 3.0-2
libpve-common-perl: 6.0-9
libpve-guest-common-perl: 3.0-3
libpve-http-server-perl: 3.0-3
libpve-storage-perl: 6.1-2
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve3
lxc-pve: 3.2.1-1
lxcfs: 3.0.3-pve60
novnc-pve: 1.1.0-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.1-1
pve-cluster: 6.1-2
pve-container: 3.0-14
pve-docs: 6.1-3
pve-edk2-firmware: 2.20191002-1
pve-firewall: 4.0-9
pve-firmware: 3.0-4
pve-ha-manager: 3.0-8
pve-i18n: 2.0-3
pve-qemu-kvm: 4.1.1-2
pve-xtermjs: 3.13.2-1
pve-zsync: 2.0-1
qemu-server: 6.1-2
smartmontools: 7.0-pve2
spiceterm: 3.1-1
vncterm: 1.6-1
zfsutils-linux: 0.8.2-pve2

Code:
root@proxmox-5:~# zfs list -o name,volsize,origin,type,refquota rpool -r -t all
NAME                                                               VOLSIZE  ORIGIN  TYPE        REFQUOTA
rpool                                                                    -  -       filesystem      none
rpool/data                                                               -  -       filesystem      none
rpool/data/subvol-101-disk-0                                             -  -       filesystem      250G
rpool/data/subvol-102-disk-0                                             -  -       filesystem       20G
rpool/data/subvol-103-disk-0                                             -  -       filesystem      200G
rpool/data/subvol-103-disk-0@rep_PveZsyncSnap_2019-12-25_17:29:21        -  -       snapshot           -
rpool/data/subvol-103-disk-0@rep_PveZsyncSnap_2019-12-26_19:00:08        -  -       snapshot           -
rpool/data/subvol-103-disk-0@rep_PveZsyncSnap_2019-12-27_19:04:06        -  -       snapshot           -
rpool/data/subvol-103-disk-0@rep_PveZsyncSnap_2019-12-30_19:00:28        -  -       snapshot           -
rpool/data/subvol-103-disk-0@rep_PveZsyncSnap_2019-12-31_19:04:31        -  -       snapshot           -
rpool/data/subvol-103-disk-0@rep_PveZsyncSnap_2020-01-07_19:20:39        -  -       snapshot           -
rpool/data/subvol-104-disk-0                                             -  -       filesystem       30G
rpool/data/subvol-105-disk-0                                             -  -       filesystem       40G
rpool/data/subvol-105-disk-0@rep_PveZsyncSnap_2019-12-25_17:41:01        -  -       snapshot           -
rpool/data/subvol-105-disk-0@rep_PveZsyncSnap_2019-12-26_19:00:01        -  -       snapshot           -
rpool/data/subvol-105-disk-0@rep_PveZsyncSnap_2019-12-27_19:04:38        -  -       snapshot           -
rpool/data/subvol-105-disk-0@rep_PveZsyncSnap_2019-12-30_19:01:47        -  -       snapshot           -
rpool/data/subvol-105-disk-0@rep_PveZsyncSnap_2019-12-31_19:00:02        -  -       snapshot           -
rpool/data/subvol-105-disk-0@rep_PveZsyncSnap_2020-01-07_19:01:59        -  -       snapshot           -
rpool/data/subvol-106-disk-0                                             -  -       filesystem       51G
rpool/data/subvol-106-disk-0@rep_PveZsyncSnap_2019-12-25_17:27:53        -  -       snapshot           -
rpool/data/subvol-106-disk-0@rep_PveZsyncSnap_2019-12-26_19:05:12        -  -       snapshot           -
rpool/data/subvol-106-disk-0@rep_PveZsyncSnap_2019-12-27_19:00:03        -  -       snapshot           -
rpool/data/subvol-106-disk-0@rep_PveZsyncSnap_2019-12-30_19:01:35        -  -       snapshot           -
rpool/data/subvol-106-disk-0@rep_PveZsyncSnap_2019-12-31_19:00:35        -  -       snapshot           -
rpool/data/subvol-106-disk-0@rep_PveZsyncSnap_2020-01-07_19:21:13        -  -       snapshot           -
rpool/data/subvol-109-disk-0                                             -  -       filesystem      300G
rpool/data/subvol-119-disk-0                                             -  -       filesystem      150G
rpool/data/subvol-121-disk-0                                             -  -       filesystem      550G
rpool/data/subvol-125-disk-0                                             -  -       filesystem      none
rpool/data/subvol-125-disk-0@rep_PveZsyncSnap_2019-12-25_14:16:23        -  -       snapshot           -
rpool/data/subvol-125-disk-0@rep_PveZsyncSnap_2019-12-26_19:00:31        -  -       snapshot           -
rpool/data/subvol-125-disk-0@rep_PveZsyncSnap_2019-12-27_19:00:09        -  -       snapshot           -
rpool/data/subvol-125-disk-0@rep_PveZsyncSnap_2019-12-30_19:01:53        -  -       snapshot           -
rpool/data/subvol-125-disk-0@rep_PveZsyncSnap_2019-12-31_19:00:42        -  -       snapshot           -
rpool/data/subvol-125-disk-0@rep_PveZsyncSnap_2020-01-07_19:02:06        -  -       snapshot           -
rpool/data/subvol-311-disk-0                                             -  -       filesystem      200G
rpool/data/subvol-311-disk-0@rep_PveZsyncSnap_2019-12-25_14:13:15        -  -       snapshot           -
rpool/data/subvol-311-disk-0@rep_PveZsyncSnap_2019-12-26_19:05:05        -  -       snapshot           -
rpool/data/subvol-311-disk-0@rep_PveZsyncSnap_2019-12-27_19:04:21        -  -       snapshot           -
rpool/data/subvol-311-disk-0@rep_PveZsyncSnap_2019-12-30_19:00:16        -  -       snapshot           -
rpool/data/subvol-311-disk-0@rep_PveZsyncSnap_2019-12-31_19:04:25        -  -       snapshot           -
rpool/data/subvol-311-disk-0@rep_PveZsyncSnap_2020-01-07_19:21:33        -  -       snapshot           -
rpool/data/vm-107-disk-0                                              100G  -       volume             -
rpool/data/vm-200-disk-0                                              100G  -       volume             -
rpool/data/vm-201-disk-0                                              100G  -       volume             -
rpool/data/vm-201-disk-0@rep_PveZsyncSnap_2019-12-25_14:00:01         100G  -       snapshot           -
rpool/data/vm-201-disk-0@rep_PveZsyncSnap_2019-12-26_19:05:00         100G  -       snapshot           -
rpool/data/vm-201-disk-0@rep_PveZsyncSnap_2019-12-27_19:04:33         100G  -       snapshot           -
rpool/data/vm-201-disk-0@rep_PveZsyncSnap_2019-12-30_19:00:01         100G  -       snapshot           -
rpool/data/vm-201-disk-0@rep_PveZsyncSnap_2019-12-31_19:00:06         100G  -       snapshot           -
rpool/data/vm-201-disk-0@rep_PveZsyncSnap_2020-01-07_19:01:31         100G  -       snapshot           -
rpool/data/vm-202-disk-0                                               30G  -       volume             -
rpool/data/vm-203-disk-0                                               30G  -       volume             -
rpool/data/vm-205-disk-0                                              100G  -       volume             -
rpool/data/vm-207-disk-0                                              100G  -       volume             -
rpool/data/vm-207-disk-0@rep_PveZsyncSnap_2019-12-25_17:20:53         100G  -       snapshot           -
rpool/data/vm-207-disk-0@rep_PveZsyncSnap_2019-12-26_19:05:21         100G  -       snapshot           -
rpool/data/vm-207-disk-0@rep_PveZsyncSnap_2019-12-27_19:03:41         100G  -       snapshot           -
rpool/data/vm-207-disk-0@rep_PveZsyncSnap_2019-12-30_19:00:50         100G  -       snapshot           -
rpool/data/vm-207-disk-0@rep_PveZsyncSnap_2019-12-31_19:00:12         100G  -       snapshot           -
rpool/data/vm-207-disk-0@rep_PveZsyncSnap_2020-01-07_19:00:01         100G  -       snapshot           -
rpool/data/vm-208-disk-0                                              100G  -       volume             -
rpool/data/vm-208-disk-0@rep_PveZsyncSnap_2019-12-25_14:06:44         100G  -       snapshot           -
rpool/data/vm-208-disk-0@rep_PveZsyncSnap_2019-12-26_19:04:58         100G  -       snapshot           -
rpool/data/vm-208-disk-0@rep_PveZsyncSnap_2019-12-27_19:00:01         100G  -       snapshot           -
rpool/data/vm-208-disk-0@rep_PveZsyncSnap_2019-12-30_19:01:33         100G  -       snapshot           -
rpool/data/vm-208-disk-0@rep_PveZsyncSnap_2019-12-31_19:04:43         100G  -       snapshot           -
rpool/data/vm-208-disk-0@rep_PveZsyncSnap_2020-01-07_19:22:31         100G  -       snapshot           -
 
And here is the output on the storage server:

Code:
root@proxmox-3:~# zfs list -o name,volsize,origin,type,refquota rpool/pve-zsync -r -t all
NAME                                                                    VOLSIZE  ORIGIN  TYPE        REFQUOTA
rpool/pve-zsync                                                               -  -       filesystem      none
rpool/pve-zsync/subvol-103-disk-0                                             -  -       filesystem      none
rpool/pve-zsync/subvol-103-disk-0@rep_PveZsyncSnap_2019-12-25_17:29:21        -  -       snapshot           -
rpool/pve-zsync/subvol-103-disk-0@rep_PveZsyncSnap_2019-12-26_19:00:08        -  -       snapshot           -
rpool/pve-zsync/subvol-103-disk-0@rep_PveZsyncSnap_2019-12-27_19:04:06        -  -       snapshot           -
rpool/pve-zsync/subvol-103-disk-0@rep_PveZsyncSnap_2019-12-30_19:00:28        -  -       snapshot           -
rpool/pve-zsync/subvol-103-disk-0@rep_PveZsyncSnap_2019-12-31_19:04:31        -  -       snapshot           -
rpool/pve-zsync/subvol-103-disk-0@rep_PveZsyncSnap_2020-01-07_19:20:39        -  -       snapshot           -
rpool/pve-zsync/subvol-105-disk-0                                             -  -       filesystem      none
rpool/pve-zsync/subvol-105-disk-0@rep_PveZsyncSnap_2019-12-25_17:41:01        -  -       snapshot           -
rpool/pve-zsync/subvol-105-disk-0@rep_PveZsyncSnap_2019-12-26_19:00:01        -  -       snapshot           -
rpool/pve-zsync/subvol-105-disk-0@rep_PveZsyncSnap_2019-12-27_19:04:38        -  -       snapshot           -
rpool/pve-zsync/subvol-105-disk-0@rep_PveZsyncSnap_2019-12-30_19:01:47        -  -       snapshot           -
rpool/pve-zsync/subvol-105-disk-0@rep_PveZsyncSnap_2019-12-31_19:00:02        -  -       snapshot           -
rpool/pve-zsync/subvol-105-disk-0@rep_PveZsyncSnap_2020-01-07_19:01:59        -  -       snapshot           -
rpool/pve-zsync/subvol-106-disk-0                                             -  -       filesystem      none
rpool/pve-zsync/subvol-106-disk-0@rep_PveZsyncSnap_2019-12-25_17:27:53        -  -       snapshot           -
rpool/pve-zsync/subvol-106-disk-0@rep_PveZsyncSnap_2019-12-26_19:05:12        -  -       snapshot           -
rpool/pve-zsync/subvol-106-disk-0@rep_PveZsyncSnap_2019-12-27_19:00:03        -  -       snapshot           -
rpool/pve-zsync/subvol-106-disk-0@rep_PveZsyncSnap_2019-12-30_19:01:35        -  -       snapshot           -
rpool/pve-zsync/subvol-106-disk-0@rep_PveZsyncSnap_2019-12-31_19:00:35        -  -       snapshot           -
rpool/pve-zsync/subvol-106-disk-0@rep_PveZsyncSnap_2020-01-07_19:21:13        -  -       snapshot           -
rpool/pve-zsync/subvol-125-disk-0                                             -  -       filesystem      none
rpool/pve-zsync/subvol-125-disk-0@rep_PveZsyncSnap_2019-12-25_14:16:23        -  -       snapshot           -
rpool/pve-zsync/subvol-125-disk-0@rep_PveZsyncSnap_2019-12-26_19:00:31        -  -       snapshot           -
rpool/pve-zsync/subvol-125-disk-0@rep_PveZsyncSnap_2019-12-27_19:00:09        -  -       snapshot           -
rpool/pve-zsync/subvol-125-disk-0@rep_PveZsyncSnap_2019-12-30_19:01:53        -  -       snapshot           -
rpool/pve-zsync/subvol-125-disk-0@rep_PveZsyncSnap_2019-12-31_19:00:42        -  -       snapshot           -
rpool/pve-zsync/subvol-125-disk-0@rep_PveZsyncSnap_2020-01-07_19:02:06        -  -       snapshot           -
rpool/pve-zsync/subvol-311-disk-0                                             -  -       filesystem      none
rpool/pve-zsync/subvol-311-disk-0@rep_PveZsyncSnap_2019-12-25_14:13:15        -  -       snapshot           -
rpool/pve-zsync/subvol-311-disk-0@rep_PveZsyncSnap_2019-12-26_19:05:05        -  -       snapshot           -
rpool/pve-zsync/subvol-311-disk-0@rep_PveZsyncSnap_2019-12-27_19:04:21        -  -       snapshot           -
rpool/pve-zsync/subvol-311-disk-0@rep_PveZsyncSnap_2019-12-30_19:00:16        -  -       snapshot           -
rpool/pve-zsync/subvol-311-disk-0@rep_PveZsyncSnap_2019-12-31_19:04:25        -  -       snapshot           -
rpool/pve-zsync/subvol-311-disk-0@rep_PveZsyncSnap_2020-01-07_19:21:33        -  -       snapshot           -
rpool/pve-zsync/vm-201-disk-0                                              100G  -       volume             -
rpool/pve-zsync/vm-201-disk-0@rep_PveZsyncSnap_2019-12-25_14:00:01         100G  -       snapshot           -
rpool/pve-zsync/vm-201-disk-0@rep_PveZsyncSnap_2019-12-26_19:05:00         100G  -       snapshot           -
rpool/pve-zsync/vm-201-disk-0@rep_PveZsyncSnap_2019-12-27_19:04:33         100G  -       snapshot           -
rpool/pve-zsync/vm-201-disk-0@rep_PveZsyncSnap_2019-12-30_19:00:01         100G  -       snapshot           -
rpool/pve-zsync/vm-201-disk-0@rep_PveZsyncSnap_2019-12-31_19:00:06         100G  -       snapshot           -
rpool/pve-zsync/vm-201-disk-0@rep_PveZsyncSnap_2020-01-07_19:01:31         100G  -       snapshot           -
rpool/pve-zsync/vm-206-disk-1                                               12G  -       volume             -
rpool/pve-zsync/vm-206-disk-1@rep_PveZsyncSnap_2019-12-25_17:42:40          12G  -       snapshot           -
rpool/pve-zsync/vm-206-disk-1@rep_PveZsyncSnap_2019-12-26_19:05:19          12G  -       snapshot           -
rpool/pve-zsync/vm-206-disk-1@rep_PveZsyncSnap_2019-12-27_19:03:39          12G  -       snapshot           -
rpool/pve-zsync/vm-206-disk-1@rep_PveZsyncSnap_2019-12-30_19:00:26          12G  -       snapshot           -
rpool/pve-zsync/vm-206-disk-1@rep_PveZsyncSnap_2019-12-31_19:00:01          12G  -       snapshot           -
rpool/pve-zsync/vm-206-disk-1@rep_PveZsyncSnap_2020-01-07_19:21:11          12G  -       snapshot           -
rpool/pve-zsync/vm-207-disk-0                                              100G  -       volume             -
rpool/pve-zsync/vm-207-disk-0@rep_PveZsyncSnap_2019-12-25_17:20:53         100G  -       snapshot           -
rpool/pve-zsync/vm-207-disk-0@rep_PveZsyncSnap_2019-12-26_19:05:21         100G  -       snapshot           -
rpool/pve-zsync/vm-207-disk-0@rep_PveZsyncSnap_2019-12-27_19:03:41         100G  -       snapshot           -
rpool/pve-zsync/vm-207-disk-0@rep_PveZsyncSnap_2019-12-30_19:00:50         100G  -       snapshot           -
rpool/pve-zsync/vm-207-disk-0@rep_PveZsyncSnap_2019-12-31_19:00:12         100G  -       snapshot           -
rpool/pve-zsync/vm-207-disk-0@rep_PveZsyncSnap_2020-01-07_19:00:01         100G  -       snapshot           -
rpool/pve-zsync/vm-208-disk-0                                              100G  -       volume             -
rpool/pve-zsync/vm-208-disk-0@rep_PveZsyncSnap_2019-12-25_14:06:44         100G  -       snapshot           -
rpool/pve-zsync/vm-208-disk-0@rep_PveZsyncSnap_2019-12-26_19:04:58         100G  -       snapshot           -
rpool/pve-zsync/vm-208-disk-0@rep_PveZsyncSnap_2019-12-27_19:00:01         100G  -       snapshot           -
rpool/pve-zsync/vm-208-disk-0@rep_PveZsyncSnap_2019-12-30_19:01:33         100G  -       snapshot           -
rpool/pve-zsync/vm-208-disk-0@rep_PveZsyncSnap_2019-12-31_19:04:43         100G  -       snapshot           -
rpool/pve-zsync/vm-208-disk-0@rep_PveZsyncSnap_2020-01-07_19:22:31         100G  -       snapshot           -
rpool/pve-zsync/vm-214-disk-0                                               12G  -       volume             -
rpool/pve-zsync/vm-214-disk-0@rep_PveZsyncSnap_2019-12-25_17:42:12          12G  -       snapshot           -
rpool/pve-zsync/vm-214-disk-0@rep_PveZsyncSnap_2019-12-26_19:05:36          12G  -       snapshot           -
rpool/pve-zsync/vm-214-disk-0@rep_PveZsyncSnap_2019-12-27_19:03:36          12G  -       snapshot           -
rpool/pve-zsync/vm-214-disk-0@rep_PveZsyncSnap_2019-12-30_19:00:48          12G  -       snapshot           -
rpool/pve-zsync/vm-214-disk-0@rep_PveZsyncSnap_2019-12-31_19:04:23          12G  -       snapshot           -
rpool/pve-zsync/vm-214-disk-0@rep_PveZsyncSnap_2020-01-07_19:01:56          12G  -       snapshot           -
 
As you can see in the output, the datasets are filesystems with refquota set to none. We use either volsize or refquota for ZFS datasets and not the space used in total. The size here should describe how much space the volume can use and if there is no refquota that space is unlimited (except by the pool size of course).

In your pve-zsync cron jobs (or simply in the command line), you can use the --properties option. Then all properties including refquota will be set on the target dataset the next time you sync and the volumes should have the right 'size' again.
 
  • Like
Reactions: AxelTwin

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!