[SOLVED] How much size are my snapshots taking up? Inconsistent outputs from zfs list

jsalas424

Active Member
Jul 5, 2020
142
3
38
34
Hi, can someone please explain why the output of these two commands suggests that my snapshots are different sizes? My "VM State Storage" is set to a different disk than where my VMs are running from. For example, the snapshot for disk 201 shows up at 2.57G in one output but 5.87M in another. Which one is correct?

Code:
root@TracheServ:~# zfs list -r
NAME                                                    USED  AVAIL     REFER  MOUNTPOINT
Nextcloud.Storage                                       284G  2.36T      126G  /Nextcloud.Storage
Nextcloud.Storage/NC.VM.Backups                        24.7G  2.36T       96K  /Nextcloud.Storage/NC.VM.Backups
Nextcloud.Storage/NC.VM.Backups/vm-201-state-baseline  2.57G  2.36T      697M  -
Nextcloud.Storage/NC.VM.Backups/vm-300-state-baseline  4.63G  2.36T      814M  -
Nextcloud.Storage/NC.VM.Backups/vm-800-state-baseline  6.69G  2.36T     1.41G  -
Nextcloud.Storage/NC.VM.Backups/vm-900-state-baseline  10.8G  2.36T     3.49G  -
new_ssd/new_ssd.VMs                                     293G   356G       96K  /new_ssd/new_ssd.VMs
new_ssd/new_ssd.VMs/vm-201-disk-0                      31.0G   377G     10.4G  -
new_ssd/new_ssd.VMs/vm-300-disk-0                      34.8G   389G     1.78G  -
new_ssd/new_ssd.VMs/vm-400-disk-0                      66.8G   408G     15.3G  -
new_ssd/new_ssd.VMs/vm-400-disk-1                      21.2G   377G      604M  -
new_ssd/new_ssd.VMs/vm-800-disk-0                      54.3G   387G     23.4G  -

Code:
root@TracheServ:~# zfs list -t snapshot
NAME                                          USED  AVAIL     REFER  MOUNTPOINT
new_ssd/new_ssd.VMs/vm-201-disk-0@baseline   5.87M      -     10.4G  -
new_ssd/new_ssd.VMs/vm-300-disk-0@baseline   6.30M      -     1.78G  -
new_ssd/new_ssd.VMs/vm-400-disk-0@baseline   10.8M      -     15.3G  -
new_ssd/new_ssd.VMs/vm-400-disk-1@baseline    512K      -      604M  -
new_ssd/new_ssd.VMs/vm-800-disk-0@baseline   89.4M      -     23.4G  -
 
Last edited:
Did you create the snapshots with RAM? Usually vm-<VMID>-state-<name> is a pattern used for statefiles which contain the RAM.
 
Did you create the snapshots with RAM? Usually vm-<VMID>-state-<name> is a pattern used for statefiles which contain the RAM.
Yes I did include RAM. That was also my suspicion, thanks for confirming!
 

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!