Clone rdb file exists maybe a zombie ?

Craig St George

Well-Known Member
Jul 31, 2018
114
14
58
63
My Ceph cluster was down and I went to clone a vm eg vm100 and was making vm105
now if i try I get

create full clone of drive scsi0 (teststore_vm:vm-100-disk-1)
rbd: create error: (17) File exists
clone failed: error with cfs lock 'storage-teststore_vm': rbd create vm-105-disk -1' error: rbd: create error: (17) File exists

If I tell it to create as say 106 it all works just this failed one is saying file exists
in ceph if i do
rbd ls teststore
I cant see a 105 there eg just
vm-100-cloudinit
vm-100-disk-1
vm-106-cloudinit
vm-106-disk-1
vm-106-state-snap1
vm-108-cloudinit
vm-108-disk-1
vm-111-cloudinit
vm-111-disk-1
vm-120-disk-1

if I do
qm clone 100 121
create full clone of drive scsi0 (teststore_vm:vm-100-disk-1)
all works fine

I have no idea what file its complaining about and how to find it and there is no VM called 105
 
Depending on your storage configuration, there might be a mapped rbd device with vmid 105 leftover. If you have activated the rbd trash, then the rbd image could be there too.
 
Thanks I manged to fix this seemed the header was there but not the data
I ran rdb rm on that it errored that it cant find it but then the problem went away