Re: How to select particular OSD to act as primary OSD.

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

 



Thanks for the reply shylesh, but the procedure is not working. In ceph.com it is mentioned that we can make particular osd as a primary osd by setting primary affinity weightage between 0-1. But it is not working. 

On 14 Jun 2016 16:15, "shylesh kumar" <shylesh.mohan@xxxxxxxxx> wrote:
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 <kanchanareddyp@xxxxxxxxxx> 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@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




--
Thanks & Regards
Shylesh Kumar M
 
_______________________________________________
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