On 08/15/2013 05:18 PM, 不坏阿峰 wrote:
mount cephfs to /mnt/mycehfs on debian 7, kernel3.10 eg: have one file root@test-debian:/mnt/mycephfs# ls -i test.txt 1099511627776 test.txt root@test-debian:/mnt/mycephfs# ceph osd map volumes test.txt
So you used the pool volumes here when mounting instead of the pool "data" ?
osdmap e351 pool 'volumes' (3) object 'test.txt' -> pg 3.8b0b6108 (3.8) -> up [5,3] acting [5,3]
I don't think it's that easy since you also have to calculate in the path name of the file. I haven't done this myself, but your method would imply there can only be one "test.txt" in that whole pool.
The acting OSDs however are the OSD numbers. So for this PG 5 is primary and 3 secondary.
root@test-debian:/mnt/mycephfs# ceph osd pool get volumes size size: 2 root@test-debian:/mnt/mycephfs# ceph osd stat e351: 7 osds: 7 up, 7 in root@test-debian:/mnt/mycephfs# ceph osd dump epoch 351 fsid db32486a-7ad3-4afe-8b67-49ee2a6dcecf created 2013-08-08 13:45:52.579015 modified 2013-08-15 02:39:45.473969 flags pool 0 'data' rep size 2 min_size 1 crush_ruleset 0 object_hash rjenkins pg_num 192 pgp_num 192 last_change 1 owner 0 crash_replay_interval 45 pool 1 'metadata' rep size 2 min_size 1 crush_ruleset 1 object_hash rjenkins pg_num 192 pgp_num 192 last_change 1 owner 0 pool 2 'rbd' rep size 2 min_size 1 crush_ruleset 2 object_hash rjenkins pg_num 192 pgp_num 192 last_change 1 owner 0 pool 3 'volumes' rep size 2 min_size 1 crush_ruleset 0 object_hash rjenkins pg_num 256 pgp_num 256 last_change 220 owner 18446744073709551615 how to know where is store in ceph,which object, which pg? i want understand how ceph work.
In your example the data is on osd.3 and osd.5 Wido
pls give your guide. best wish. _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
-- Wido den Hollander 42on B.V. Phone: +31 (0)20 700 9902 Skype: contact42on _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com