[SOLVED] Proxmox snapshot no datasets available

Jun 12, 2020
26
7
23
Hello,

currently I am already creating automatic snapshots, these are also displayed in Webitnerface (rollback works as well), but in the CLI only gets "no datasets available".

Example:

zfs list -t snapshot
no datasets available

I have tried to create manual snapshots via GUI but the even do not show up on the CLI. (not using ZFS-Filesystem, right now)

I am able to list the snaposhots via qm listsnapshot but is there a way to see the size of them?

FS/images/108(VM)# df -h

1.2T vm-108-disk-0.qcow2 (VM)
32G vm-108-state-deb10220820.raw (Snap)
33G vm-108-state-snap270820.raw (Snap)

Seems no other way to list them.
 
Last edited:
Hi,
if you don't use ZFS as a backing storage, of course the snapshots won't show up with zfs list. The state files contain a snapshot of the RAM and system state at the time of the snapshot. To see the snapshots of the qcow2 image, use qemu-img info vm-108-disk-0.qcow2
 
Thanks, but it does not show me the size of the snapshot.

ID TAG VM SIZE DATE VM CLOCK
1 deb10220820 0 B 2020-08-22 14:11:50 18:49:34.810
2 snap270820 0 B 2020-08-27 06:50:41 131:28:08.690
 
You're right. Because of the way qcow2 works internally, there is no easy way to determine the size of the snapshots. From the official documentation:
The size of a snapshot in a disk image is difficult to evaluate and is not shown by info snapshots because the associated disk sectors are shared among all the snapshots to save disk space (otherwise each snapshot would need a full copy of all the disk images).
 
Thanks for your help, it seems that this that proxmox always output the Size with 0, I found several posts in other forums.

Since I have automated the snaphsots I just want to make sure that the drive is not running out of space.
 
Do you mean the VM SIZE in the qemu-img output? This is the size of the VM state, not the whole snapshot. And if I'm not mistaken it's 0, because PVE saves the VM state differently (in the state file) than upstream QEMU.

You can monitor the effective size of the image and all its snapshots by looking at the disk size in the qemu-img info output.