I understood your explaination. The result of 'ceph osd map <poolname> <filename> ' command always gives only 2 OSDs(1 primary, 1 secondary). But it is not mandatory the objects are stored only in 2 OSDs it should be spreaded many OSDs.
So my doubt is why the command gives this result Regards Surya Balan On Thu, Aug 2, 2018 at 1:30 PM, 赵贺东 <zhaohed...@gmail.com> wrote: > Hello, > > file -> many objects-> many PG(each pg has two copies, because your > replication count is two)-> many OSD > pgs can be distributed in OSDs, no limitation for only 2, replication > count 2only determine pg copies is 2. > > Hope this will help. > > > 在 2018年8月2日,下午3:43,Surya Bala <sooriya.ba...@gmail.com> 写道: > > > > Hi folks, > > > > From the ceph documents i understood about PG and why should PG number > should be optimal. But i dont find any info about the below point > > > > I am using cephfs client in my ceph cluster. When we store a > file(consider replication count is 2) , it will be splitted into objects > and each object will be stored in different PG and each PG will be mapped > to a OSD. It means there can be many OSD for a single file . But why are we > getting only 2 OSDs by the command 'ceph OSD map' > > > > file -> many objects-> many PG-> many OSD > > > > Is that all objects of a file will be stored in only 2 OSD(in case of > replication count is 2)? > > > > Regards > > Surya Balan > > _______________________________________________ > > ceph-users mailing list > > ceph-users@lists.ceph.com > > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > >
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com