查看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.0000000000001768__head_12C4BE0F__1 rbd\udata.d89b9770aa0bc.000000000000457f__head_F45E2E0F__1 rbd\udata.d89b9770aa0bc.00000000000069a2__head_55485E0F__1 rbd\udata.d89b9770aa0bc.000000000000916b__head_378F3E0F__1 rbd\udata.d89b9770aa0bc.0000000000000f9f__head_B81CBF0F__1 rbd\udata.d89b9770aa0bc.0000000000000fb6__head_DF670F0F__1 rbd\udata.d89b9770aa0bc.0000000000001a5f__head_C7619F0F__1 rbd\udata.d89b9770aa0bc.0000000000003379__head_86835F0F__1 rbd\udata.d89b9770aa0bc.000000000000342b__head_EED71F0F__1 rbd\udata.d89b9770aa0bc.00000000000036c9__head_EF8D9F0F__1 rbd\udata.d89b9770aa0bc.00000000000068ed__head_0C669F0F__1 rbd\udata.d89b9770aa0bc.0000000000006a78__head_C94DEF0F__1 rbd\udata.d89b9770aa0bc.0000000000007d5e__head_5D406F0F__1
#find . -name *udata.d89b9770aa0bc.000000000000287e__head_91DD7011__1 ./current/1.11_head/DIR_1/DIR_1/DIR_0/rbd\udata.d89b9770aa0bc.000000000000287e__head_91DD7011__1
文件的位置: pool,pgid=1.11
rbd\udata.d89b9770aa0bc.000000000000287e__head_91DD7011__1
数据文件五个部分的构成:
- rbd
- 偏移
- head
- hash
- pool id