Hi,

I think you can edit the crush rule something like below

rule another_replicated_ruleset {
        ruleset 1
        type replicated
        min_size 1
        max_size 10
        step take default
        step take osd1
        step choose firstn 1 type osd
        step emit
        step take osd2
        step choose firstn 1 type osd
        step emit
        step take osd5
        step choose firstn 1 type osd
        step emit
        step take osd4
        step choose firstn 1 type osd
        step emit
}

and create pool using this rule.

It might work , though I am not 100% sure.

Thanks,
Shylesh

On Tue, Jun 14, 2016 at 4:05 PM, Kanchana. P <kanchanared...@vedams.com>
wrote:

> Hi,
>
> How to select particular OSD to act as primary OSD.
> I modified the ceph.conf file and added
> [mon]
> ...
> mon osd allow primary affinity = true
> Restarted ceph target, now primary affinity is set to true in all monitor
> nodes.
> Using the below commands set some weights to the osds.
>
> $ ceph osd primary-affinity osd.1 0.25
> $ ceph osd primary-affinity osd.6 0.50
> $ ceph osd primary-affinity osd.11 0.75
> $ ceph osd primary-affinity osd.16 1
>
> Created a pool "poolA" and set a crush_ruleset so that it takes OSDs in
> order 16,11,6,1
> Even after setting the primary affinity weight, it took osds in different
> order.
> Can we select the primary OSD, if so, how can we do that. Please let me
> know what I am missing here to set an OSD as a primary OSD.
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
>


-- 
Thanks & Regards
Shylesh Kumar M
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to