Project

General

Profile

Actions

Support #58958

open

RBD unable to delete image from trash

Added by Jozef Maticky about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Tags:
Reviewed:
Affected Versions:
Pull request ID:

Description

Hello,

Some time ago I was live migrating some images from replicated to EC pool.
The migration of one of the images got stuck and after couple of days I CTRL+C'd it.
The image was actually migrated to EC pool and I was using it, there however is a trash entry in the previous replicated pool, while there no longer is this RBD image in this replicated pool:

# rbd trash ls besteffort --all
81cb67ba7aaa59 storj-rrrr-data

# rbd ls besteffort | grep rrrr


I tried to delete it but I'm getting:
# rbd trash rm besteffort/81cb67ba7aaa59
librbd::image::RefreshRequest: image being migrated
librbd::image::OpenRequest: failed to refresh image: (30) Read-only file system
librbd::ImageState: 0x7fce50046cb0 failed to open image: (30) Read-only file system
librbd::image::RemoveRequest: 0x7fce50000b80 handle_open_image: error opening image: (30) Read-only file system

Then I moved contents of the EC migrated image to a separate drive and deleted the EC image hoping it will cleanup the trash as well, but that wasn't the case.
Now I have this trash entry I can't get rid of and being afraid it will cause some problems down the road, especially when upgrading the cluster.
This is currently running 16.2.7.
I found some articles on how to edit omapval to change the trash entry from migrated to user trashed, but the structure might have been changed meanwhile as changing those values and loading it back didn't help in my case.

The current state is:

# rados -p besteffort getomapval rbd_trash id_81cb67ba7aaa59          
value (43 bytes) :
00000000  02 01 25 00 00 00 02 0f  00 00 00 73 74 6f 72 6a  |..%........storj|
00000010  2d 72 72 72 72 2d 64 61  74 61 d2 ab 78 63 49 1c  |-rrrr-data..xcI.|
00000020  1e 22 d2 ab 78 63 49 1c  1e 22 00                 |."..xcI..".|
0000002b

Would someone be able to advise how to get rid of this trashed image?
Thank you.

No data to display

Actions

Also available in: Atom PDF