1. 程式人生 > >ceph的object檔案存放的位置的分析

ceph的object檔案存放的位置的分析

檢視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.000000000000457f

head_F45E2E0F1
rbd\udata.d89b9770aa0bc.00000000000069a2head_55485E0F1
rbd\udata.d89b9770aa0bc.000000000000916b
head_378F3E0F
1
rbd\udata.d89b9770aa0bc.0000000000000f9fhead_B81CBF0F1
rbd\udata.d89b9770aa0bc.0000000000000fb6
head_DF670F0F
1
rbd\udata.d89b9770aa0bc.0000000000001a5fhead_C7619F0F1
rbd\udata.d89b9770aa0bc.0000000000003379
head_86835F0F
1
rbd\udata.d89b9770aa0bc.000000000000342bhead_EED71F0F1
rbd\udata.d89b9770aa0bc.00000000000036c9
head_EF8D9F0F
1
rbd\udata.d89b9770aa0bc.00000000000068edhead_0C669F0F1
rbd\udata.d89b9770aa0bc.0000000000006a78
head_C94DEF0F
1
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.000000000000287e
head_91DD7011
1

檔案的位置:
pool,pgid=1.11

rbd\udata.d89b9770aa0bc.000000000000287e__head_91DD7011__1

資料檔案五個部分的構成:

  • rbd
  • 偏移
  • head
  • hash
  • pool id