Can i Remove Backup Snapshot

yena

Renowned Member
Nov 18, 2011
373
4
83
Hello,
after a Kill -15 of the Backup process ( hang ) of an LXC vps,
now i have a snapshot:

pct listsnapshot 100
vzdump no-parent vzdump backup snapshot
current no-parent no-description

On web interface i see an icon with a "clock" vzdump no prepare vzdump backup snapshot.
Can i remove this from Web interface without lost current data ?
Can i remove it from command line ?


Thanks
 
On web interface i see an icon with a "clock" vzdump no prepare vzdump backup snapshot.
Can i remove this from Web interface without lost current data ?

yes

Can i remove it from command line ?

yes

# pct delsnapshot <VMID> vzdump
 
I have tried both, first time i have the error about vm locked,
than i have done:

# pct unlock 100

than i have done

# pct delsnapshot 100 vzdump

without error but the command haven't removed the snapshot:

# pct listsnapshot 100
vzdump no-parent vzdump backup snapshot
current no-parent no-description

Now my ZFS fs is:

# zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
rpool 210G 1.55T 96K /rpool
rpool/ROOT 1.32G 1.55T 96K /rpool/ROOT
rpool/ROOT/pve-1 1.32G 1.55T 1.32G /
rpool/VPS 184G 1.55T 96K /rpool/VPS
rpool/VPS/subvol-100-disk-1 15.8G 84.2G 15.8G /rpool/VPS/subvol-100-disk-1
rpool/VPS/subvol-101-disk-1 3.26G 86.7G 3.26G /rpool/VPS/subvol-101-disk-1
rpool/swap 24.4G 1.57T 3.88G -

How can i dlelete this dump snapshot ?

pveversion:

proxmox-ve: 4.1-28 (running kernel: 4.2.6-1-pve)
pve-manager: 4.1-2 (running version: 4.1-2/78c5f4a2)
pve-kernel-4.2.6-1-pve: 4.2.6-28
pve-kernel-4.2.2-1-pve: 4.2.2-16
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 0.17.2-1
pve-cluster: 4.0-29
qemu-server: 4.0-42
pve-firmware: 1.1-7
libpve-common-perl: 4.0-42
libpve-access-control: 4.0-10
libpve-storage-perl: 4.0-38
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.4-18
pve-container: 1.0-35
pve-firewall: 2.0-14
pve-ha-manager: 1.0-16
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u1
lxc-pve: 1.1.5-5
lxcfs: 0.13-pve2
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5-pve6~jessie

Thanks
 
Can you post the content of /etc/pve/local/lxc/100.conf ? You can also try "pct delsnapshot 100 vzdump -force", which will not abort the deletion if the snapshot does not exist on your storage.
 
cat 100.conf
#Debian 8 Andrea
arch: amd64
cpulimit: 2
cpuunits: 1024
hostname: mail.xxx.it
memory: 4096
net0: bridge=vmbr0,gw=83.103.59.1,hwaddr=66:34:33:66:61:30,ip=83.103.59.55/24,name=eth0,type=veth
ostype: debian
rootfs: VPS:subvol-100-disk-1,size=100G
swap: 512

[vzdump]
#vzdump backup snapshot
arch: amd64
cpulimit: 2
cpuunits: 1024
hostname: mail.xxx.it
memory: 4096
net0: bridge=vmbr0,gw=83.103.59.1,hwaddr=66:34:33:66:61:30,ip=83.103.59.55/24,name=eth0,type=veth
ostype: debian
rootfs: VPS:subvol-100-disk-1,size=100G
snapstate: delete
snaptime: 1455577202
swap: 512
----------------------------------------------------------

#pct listsnapshot 100
vzdump no-parent vzdump backup snapshot
current no-parent no-description

# pct delsnapshot 100 vzdump -force
Use of uninitialized value in string eq at /usr/share/perl5/PVE/LXC.pm line 1844.
Can't delete snapshot: 100 vzdump zfs error: could not find any snapshots to destroy; check snapshot names.

# pct listsnapshot 100
current no-parent no-description

So now seem OK .. i do some test ..

Thanks
 
Last edited:

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!