Bug #45240
openNot able to export objects using ceph-objectstore-tool
0%
Description
I am trying to use the tool ceph-objectstore-tool to extract objects from offline OSD:
ceph-objectstore-tool --data-path /var/lib/rook/osd5 --file /mnt/exported/pgid_1.1 --op export --pgid 1.1
But get the following error:
ead #1:86ee9bce:::500.00000001:head#
getattr failure object_info -61
export_files error -61
Below is the results of running list:
ceph-objectstore-tool --data-path /mnt/rook/osd5/ --journal /mnt/rook/osd5/journal --op list --pgid 1.1
Error getting attr on : 1.1_head,#1:86ee9bce:::500.00000001:head#, (61) No data available
Error getting attr on : 1.1_head,#1:9efb6791:csi::csi.volume.72d523c6-fa6e-11e9-be63-4e8177a5e33c:head#, (61) No data available
["1.1",{"oid":"500.00000001","key":"","snapid":-2,"hash":1943631713,"max":0,"pool":1,"namespace":"","max":0}]
["1.1",{"oid":"csi.volume.72d523c6-fa6e-11e9-be63-4e8177a5e33c","key":"","snapid":-2,"hash":2313609081,"max":0,"pool":1,"namespace":"csi","max":0}]
Are there any way to work around it?
/Edmund
Updated by Neha Ojha almost 4 years ago
I don't think this is a bug in the ceph-objectstore-tool but more a case of export failing when it encounters corrupted objects. Perhaps, you'll need to get rid of those corrupted objects and then try exporting the PG. The ceph-users list is a good forum to seek ideas on such issues.