Hello!
We have 2 Proxmox host and we use the included vzdump tool to backup the VMs and containers that run on them. Our backup location is a ZFS server shared over NFS to both Proxmox hosts. This ZFS server has a RAID-10 like configuration with 4 disks, 40GB SSD cache partition, 20GB RAM and around 7.5TB of usable disk space. The backups are configured to use lzo compression, and we have compression disabled on the ZFS server.
Now, the issue we are facing and really cant see why is that ZFS deduplication is hardly saving any space. We keep up to 15 copies of the same VM at all times, so my though was that deduplication would save lots of space, but it doesnt.
This is the storage.cfg file on our hosts:
	
	
	
		
And this is the information of the ZFS:
	
	
	
		
As far as I know, ZFS dedup works on block write level, so the fact that the backups are made over LAN instead of locally shouldnt be an issue, neither the fact that LZO is enabled for vzdump. This is why I really cant see the cause of this lack of deduplication. Any idea or comment is welcome!
Thank you very much!
Juan
				
			We have 2 Proxmox host and we use the included vzdump tool to backup the VMs and containers that run on them. Our backup location is a ZFS server shared over NFS to both Proxmox hosts. This ZFS server has a RAID-10 like configuration with 4 disks, 40GB SSD cache partition, 20GB RAM and around 7.5TB of usable disk space. The backups are configured to use lzo compression, and we have compression disabled on the ZFS server.
Now, the issue we are facing and really cant see why is that ZFS deduplication is hardly saving any space. We keep up to 15 copies of the same VM at all times, so my though was that deduplication would save lots of space, but it doesnt.
This is the storage.cfg file on our hosts:
		Code:
	
	root@server:~# cat /etc/pve/storage.cfg
nfs: bkp_una-semana
    export /backup-pool/una-semana
    path /mnt/pve/bkp_una-semana
    server 172.16.16.220
    content backup
    maxfiles 7
nfs: bkp_dos-semanas
    export /backup-pool/dos-semanas
    path /mnt/pve/bkp_dos-semanas
    server 172.16.16.220
    content backup
    maxfiles 14
nfs: bkp_shared
    export /backup-pool/shared
    path /mnt/pve/bkp_shared
    server 172.16.16.220
    content backup
    maxfiles 2
	And this is the information of the ZFS:
		Code:
	
	[root@zfs ~]# zfs list
NAME                      USED  AVAIL  REFER  MOUNTPOINT
backup-pool              15.8T  1.74T   104K  /backup-pool
backup-pool/dos-semanas  5.78T  1.74T  5.78T  /backup-pool/dos-semanas
backup-pool/shared       4.31T  1.74T  4.31T  /backup-pool/shared
backup-pool/una-semana   5.64T  1.74T  5.64T  /backup-pool/una-semana
[root@zfs ~]# zpool status -D backup-pool
  pool: backup-pool
 state: ONLINE
  scan: none requested
config:
    NAME                                        STATE     READ WRITE CKSUM
    backup-pool                                 ONLINE       0     0     0
      mirror-0                                  ONLINE       0     0     0
        wwn-0x61866da060a4140024ffab24dcf460a0  ONLINE       0     0     0
        wwn-0x61866da060a4140024ffac17eb788c94  ONLINE       0     0     0
      mirror-1                                  ONLINE       0     0     0
        wwn-0x61866da060a4140024ffacf4f8a09606  ONLINE       0     0     0
        wwn-0x61866da060a4140024ffadcd059719fd  ONLINE       0     0     0
    cache
      wwn-0x6002248024fe90ddf48ef8ab67378f5d    ONLINE       0     0     0
errors: No known data errors
 dedup: DDT entries 131831224, size 709B on disk, 229B in core
bucket              allocated                       referenced          
______   ______________________________   ______________________________
refcnt   blocks   LSIZE   PSIZE   DSIZE   blocks   LSIZE   PSIZE   DSIZE
------   ------   -----   -----   -----   ------   -----   -----   -----
     1     126M   15.7T   15.7T   15.7T     126M   15.7T   15.7T   15.7T
     2    26.5K   3.31G   3.31G   3.31G    54.4K   6.80G   6.80G   6.80G
     4        2    256K    256K    256K        8      1M      1M      1M
   512        1    512B    512B      4K      536    268K    268K   2.09M
 Total     126M   15.7T   15.7T   15.7T     126M   15.7T   15.7T   15.7T
[root@zfs ~]# free -m
              total        used        free      shared  buff/cache   available
Mem:          19880        1087       18603           9         189       18516
Swap:             0           0           0
[root@zfs ~]# zfs get dedup
NAME                     PROPERTY  VALUE          SOURCE
backup-pool              dedup     on             local
backup-pool/dos-semanas  dedup     on             inherited from backup-pool
backup-pool/shared       dedup     on             inherited from backup-pool
backup-pool/una-semana   dedup     on             inherited from backup-pool
[root@zfs ~]# zfs get compression
NAME                     PROPERTY     VALUE     SOURCE
backup-pool              compression  off       local
backup-pool/dos-semanas  compression  off       inherited from backup-pool
backup-pool/shared       compression  off       inherited from backup-pool
backup-pool/una-semana   compression  off       inherited from backup-pool
[root@zfs ~]# zfs get sharenfs
NAME                     PROPERTY  VALUE               SOURCE
backup-pool              sharenfs  rw=@172.16.16.0/24  local
backup-pool/dos-semanas  sharenfs  rw=@172.16.16.0/24  inherited from backup-pool
backup-pool/shared       sharenfs  rw=@172.16.16.0/24  inherited from backup-pool
backup-pool/una-semana   sharenfs  rw=@172.16.16.0/24  inherited from backup-pool
	As far as I know, ZFS dedup works on block write level, so the fact that the backups are made over LAN instead of locally shouldnt be an issue, neither the fact that LZO is enabled for vzdump. This is why I really cant see the cause of this lack of deduplication. Any idea or comment is welcome!
Thank you very much!
Juan