Snap zfs Delete

yena

Renowned Member
Nov 18, 2011
379
5
83
Hello!
can i delete a snap like:
STORAGE/VM/KVM/vm-122-disk-0
STORAGE/VM/KVM/vm-122-state-prenelarge
simply:
zfs destroy STORAGE/VM/KVM/vm-122-state-prenelarge ?

Thanks
 
Hi,
no, please always use the Proxmox VE UI or CLI, qm delsnapshot 122 prenelarge to delete snapshots. The snapshot is not only this volume, but there are snapshots on the VM's disks and in the configuration too, which would then be left over
 
  • Like
Reactions: Kingneutron
Snapshots have '@'

zfs list -t snapshot

This would delete the dataset:
zfs destroy STORAGE/VM/KVM/vm-122-state-prenelarge

So you probably want this:
zfs destroy STORAGE/VM/KVM/vm-122-state-prenelarge@snapshotname
 
Hi,
Snapshots have '@'

zfs list -t snapshot

This would delete the dataset:
zfs destroy STORAGE/VM/KVM/vm-122-state-prenelarge
This is the VM state that contains the live RAM/device state of the guest when the snapshot was taken.
So you probably want this:
zfs destroy STORAGE/VM/KVM/vm-122-state-prenelarge@snapshotname
So that one does not exist. The snapshot name is prenelarge

But please also see my answer, manually removing things via ZFS is usually not what you want.
 
  • Like
Reactions: mr44er
Fast overflying the thread and just reading the last words ... ZFS is usually not what you want - hui buh :cool:
 

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!