Hello Dennis,

You can create CRUSH rule to select one of osd as primary as:

 rule ssd-primary {
              ruleset 5
              type replicated
              min_size 5
              max_size 10
              step take ssd
              step chooseleaf firstn 1 type host
              step emit
              step take platter
              step chooseleaf firstn -1 type host
              step emit
      }

Above will select a OSD from ssd bucket as Primary and all secondary OSD
from bucket platter.

You can find more details about CRUSH map at
http://ceph.com/docs/master/rados/operations/crush-map/ .


Regards,
Sudarshan

On Mon, Feb 2, 2015 at 12:12 PM, Dennis Chen <kernel.org....@gmail.com>
wrote:

> Hi Sudarshan,
>
> Some hints for doing that ?
>
> On Mon, Feb 2, 2015 at 1:03 PM, Sudarshan Pathak <sushan....@gmail.com>
> wrote:
> > BTW, you can make crush to always choose the same OSD as primary.
> >
> > Regards,
> > Sudarshan
> >
> > On Mon, Feb 2, 2015 at 9:26 AM, Dennis Chen <kernel.org....@gmail.com>
> > wrote:
> >>
> >> Thanks, I've have the answer with the 'ceph osd map ...' command
> >>
> >> On Mon, Feb 2, 2015 at 12:50 AM, Jean-Charles Lopez <jelo...@redhat.com
> >
> >> wrote:
> >> > Hi
> >> >
> >> > You can verify the exact mapping using the following command: ceph osd
> >> > map {poolname} {objectname}
> >> >
> >> > Check page http://docs.ceph.com/docs/master/man/8/ceph for the ceph
> >> > command.
> >> >
> >> > Cheers
> >> >
> >> > JC
> >> >
> >> > While moving. Excuse unintended typos.
> >> >
> >> >> On Feb 1, 2015, at 08:04, Loic Dachary <l...@dachary.org> wrote:
> >> >>
> >> >>
> >> >>
> >> >>> On 01/02/2015 14:47, Dennis Chen wrote:
> >> >>> Hello,
> >> >>>
> >> >>> If I write 2 different objects, eg, "john" and "paul" respectively
> to
> >> >>> a same pool like "testpool" in the cluster, is the primary OSD
> >> >>> calculated by CRUSH for the 2 objects the same?
> >> >>
> >> >> Hi,
> >> >>
> >> >> CRUSH is likely to place john on an OSD and paul on another OSD.
> >> >>
> >> >> Cheers
> >> >>
> >> >> --
> >> >> Loïc Dachary, Artisan Logiciel Libre
> >> >>
> >> >> _______________________________________________
> >> >> 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
> >>
> >>
> >>
> >> --
> >> Den
> >> _______________________________________________
> >> ceph-users mailing list
> >> ceph-users@lists.ceph.com
> >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> >
> >
>
>
>
> --
> Den
>
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to