查看osd下面的文件查看看文件存在哪里了
#rbd info rbd/image1
rbd image 'image1':
size 200GiB in 51200 objects
order 22 (4MiB objects)
block_name_prefix: rbd_data.d89b9770aa0bc
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:
create_timestamp: Fri Jan 4 10:09:38 2019
rbd\udata.d89b9770aa0bc.0000000000001768head_12C4BE0F1
rbd\udata.d89b9770aa0bc.000000000000457fhead_F45E2E0F1
rbd\udata.d89b9770aa0bc.00000000000069a2head_55485E0F1
rbd\udata.d89b9770aa0bc.000000000000916bhead_378F3E0F1
rbd\udata.d89b9770aa0bc.0000000000000f9fhead_B81CBF0F1
rbd\udata.d89b9770aa0bc.0000000000000fb6head_DF670F0F1
rbd\udata.d89b9770aa0bc.0000000000001a5fhead_C7619F0F1
rbd\udata.d89b9770aa0bc.0000000000003379head_86835F0F1
rbd\udata.d89b9770aa0bc.000000000000342bhead_EED71F0F1
rbd\udata.d89b9770aa0bc.00000000000036c9head_EF8D9F0F1
rbd\udata.d89b9770aa0bc.00000000000068edhead_0C669F0F1
rbd\udata.d89b9770aa0bc.0000000000006a78head_C94DEF0F1
rbd\udata.d89b9770aa0bc.0000000000007d5e__head_5D406F0F__1
#find . -name *udata.d89b9770aa0bc.000000000000287ehead_91DD70111
./current/1.11_head/DIR_1/DIR_1/DIR_0/rbd\udata.d89b9770aa0bc.000000000000287ehead_91DD70111
文件的位置:
pool,pgid=1.11
rbd\udata.d89b9770aa0bc.000000000000287e__head_91DD7011__1
数据文件五个部分的构成:
- rbd
- 偏移
- head
- hash
- pool id
转载于:https://blog.51cto.com/hotcache/2338990