Error creating snapshot: rbd image already exists

Oct 7, 2019
793
325
108
Spain
I'm getting an error creating a snapshot named snp01 of VMID 500:

Code:
rbd: create error: 2021-10-19 14:10:50.941 7fd6304630c0 -1 librbd: rbd image vm-500-state-snp01 already exists

I know that "*-state-*" images contain the memory of the VM at the moment of the backup. This VM is stored in Ceph and has no previous snapshot, so no image nor snapshot for that VM should exist.

I can see that image in the storage:

Code:
~# rbd list cephVM | grep 500
vm-500-disk-0
vm-500-state-snp01

There is no snapshot neither for the VM nor for the image vm-500-disk-0 (rbd snap ls cephVM/vm-500-disk-0 shows nothing).

This seems to be some kind of leftover from a previous snapshot:

Code:
~# rbd info cephVM/vm-500-state-snp01
rbd image 'vm-500-state-snp01':
    size 6.5 GiB in 1661 objects
    order 22 (4 MiB objects)
    snapshot_count: 0
    id: 8268eeed033f30
    block_name_prefix: rbd_data.8268eeed033f30
    format: 2
    features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
    op_features:
    flags:
    create_timestamp: Thu Sep 30 16:18:00 2021
    access_timestamp: Thu Sep 30 16:18:00 2021
    modify_timestamp: Thu Sep 30 16:18:00 2021

Can I safely delete the Ceph rbd image "vm-500-state-snp01"?

Thanks in advance
 
Any idea on how that "*-state-*" image may have been left there?
I have none -- would only be conjecture without more information. The image was created at Thu Sep 30 16:18:00 2021 so does that coincide with creating a VM snapshot from GUI? CLI? What do the task logs show? Then, what was done to remove the VM snapshot? GUI? CLI? Task log? You might be able to figure it out from tracing your steps.

Good luck!
 

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!