Re: Question about primary OSD of a pool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Sudarshan,

Thanks, it should be useful when I want to appoint the specific OSD as
primary ;-)

On Mon, Feb 2, 2015 at 3:50 PM, Sudarshan Pathak <sushan.pth@xxxxxxxxx> wrote:
> 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.gnu@xxxxxxxxx>
> wrote:
>>
>> Hi Sudarshan,
>>
>> Some hints for doing that ?
>>
>> On Mon, Feb 2, 2015 at 1:03 PM, Sudarshan Pathak <sushan.pth@xxxxxxxxx>
>> 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.gnu@xxxxxxxxx>
>> > 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
>> >> <jelopez@xxxxxxxxxx>
>> >> 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 <loic@xxxxxxxxxxx> 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@xxxxxxxxxxxxxx
>> >> >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>> >> > _______________________________________________
>> >> > ceph-users mailing list
>> >> > ceph-users@xxxxxxxxxxxxxx
>> >> > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>> >>
>> >>
>> >>
>> >> --
>> >> Den
>> >> _______________________________________________
>> >> ceph-users mailing list
>> >> ceph-users@xxxxxxxxxxxxxx
>> >> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>> >
>> >
>>
>>
>>
>> --
>> Den
>
>



-- 
Den
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com





[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux