Anything in the trash? "rbd trash ls images" Respectfully, *Wes Dillingham* wes@xxxxxxxxxxxxxxxxx LinkedIn <http://www.linkedin.com/in/wesleydillingham> On Thu, Oct 6, 2022 at 3:29 PM Niklas Jakobsson < Niklas.Jakobsson@xxxxxxxxxxxxxxxx> wrote: > A yes, sorry about that. I actually have the issue on two images and I > seem to have mixed them up when I was putting together the example, here is > a correct one: > > # rbd info images/f3f4c73f-2eec-4af1-9bdf-4974a747607b > rbd image 'f3f4c73f-2eec-4af1-9bdf-4974a747607b': > size 8 GiB in 1024 objects > order 23 (8 MiB objects) > snapshot_count: 1 > id: 1ae08970c6321e > block_name_prefix: rbd_data.1ae08970c6321e > format: 2 > features: layering, exclusive-lock, object-map, fast-diff, > deep-flatten > op_features: > flags: > create_timestamp: Mon Apr 1 14:01:57 2019 > access_timestamp: Thu Jun 23 11:23:11 2022 > # rbd snap ls images/f3f4c73f-2eec-4af1-9bdf-4974a747607b > SNAPID NAME SIZE PROTECTED TIMESTAMP > 40 snap 8 GiB yes Mon Apr 1 14:03:55 2019 > # rbd snap rm images/f3f4c73f-2eec-4af1-9bdf-4974a747607b@snap > Removing snap: 0% complete...failed. > rbd: snapshot 'snap' is protected from removal. > # rbd snap unprotect images/f3f4c73f-2eec-4af1-9bdf-4974a747607b@snap > rbd: unprotecting snap failed: (16) Device or resource busy > # rbd children images/f3f4c73f-2eec-4af1-9bdf-4974a747607b@snap > rbd: listing children failed: (2) No such file or directory > > /Niklas > > ________________________________ > From: Wesley Dillingham <wes@xxxxxxxxxxxxxxxxx> > Sent: Thursday, October 6, 2022 20:11 > To: Niklas Jakobsson <Niklas.Jakobsson@xxxxxxxxxxxxxxxx> > Cc: ceph-users@xxxxxxx <ceph-users@xxxxxxx> > Subject: Re: Can't delete or unprotect snapshot with rbd > > > [EXTERNAL] > > You are demo'ing two RBDs here: > images/f3f4c73f-2eec-4af1-9bdf-4974a747607b seems to have 1 snapshot yet > later when you try to interact with the snapshot you are doing so with a > different rbd/image altogether: images/1fcfaa6b-eba0-4c75-b77d-d5b3ab4538a9 > > > Respectfully, > > Wes Dillingham > wes@xxxxxxxxxxxxxxxxx<mailto:wes@xxxxxxxxxxxxxxxxx> > LinkedIn< > https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.linkedin.com%2Fin%2Fwesleydillingham&data=05%7C01%7CNiklas.Jakobsson%40kindredgroup.com%7C81206dd028554c3579cb08daa7c64921%7C82ff090d4ac0439f834a0c3f3d5f33ce%7C1%7C1%7C638006767323871099%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=rw0%2BWJSIXMJw9HH85L0X9OcrUxARmWiWZvUrnIzLy24%3D&reserved=0 > > > > > On Thu, Oct 6, 2022 at 9:13 AM Niklas Jakobsson < > Niklas.Jakobsson@xxxxxxxxxxxxxxxx<mailto:Niklas.Jakobsson@xxxxxxxxxxxxxxxx>> > wrote: > Hi, > > I have an issue with a rbd image that I can't delete. > > I have tried this: > # rbd info images/f3f4c73f-2eec-4af1-9bdf-4974a747607b@snap > rbd image 'f3f4c73f-2eec-4af1-9bdf-4974a747607b': > size 8 GiB in 1024 objects > order 23 (8 MiB objects) > snapshot_count: 1 > id: 1ae08970c6321e > block_name_prefix: rbd_data.1ae08970c6321e > format: 2 > features: layering, exclusive-lock, object-map, fast-diff, > deep-flatten > op_features: > flags: > create_timestamp: Mon Apr 1 14:01:57 2019 > access_timestamp: Thu Jun 23 11:23:11 2022 > protected: True > # rbd snap ls images/f3f4c73f-2eec-4af1-9bdf-4974a747607b > SNAPID NAME SIZE PROTECTED TIMESTAMP > 40 snap 8 GiB yes Mon Apr 1 14:03:55 2019 > # rbd children images/1fcfaa6b-eba0-4c75-b77d-d5b3ab4538a9@snap > rbd: listing children failed: (2) No such file or directory > # rbd snap unprotect images/1fcfaa6b-eba0-4c75-b77d-d5b3ab4538a9@snap > rbd: unprotecting snap failed: (16) Device or resource busy > --- > > So, it looks like something is still referencing that snapshot but the > reference seems broken. > > Any advice here would be helpful, Thanks! > > /Niklas > > > The content of this email is confidential and intended for the recipient > specified in message only. If you have received it in error, please notify > us immediately by replying to this e-mail and then follow with its > deletion. Please do not copy it or use it or disclose its contents to any > third parties. Thank you for your cooperation. > > > Classified as General > _______________________________________________ > ceph-users mailing list -- ceph-users@xxxxxxx<mailto:ceph-users@xxxxxxx> > To unsubscribe send an email to ceph-users-leave@xxxxxxx<mailto: > ceph-users-leave@xxxxxxx> > > > Classified as General > _______________________________________________ > ceph-users mailing list -- ceph-users@xxxxxxx > To unsubscribe send an email to ceph-users-leave@xxxxxxx > _______________________________________________ ceph-users mailing list -- ceph-users@xxxxxxx To unsubscribe send an email to ceph-users-leave@xxxxxxx