When one osd is set to weighatge 1 and rest all to zeros, then the osd
which is set to 1 is taken as a primary osd everytime. Can someone let me
know is this the correct way of setting primary afffinity.
1. Have a crush rule set to take osds 4,9,14,18
2. Changed primary affinity weightage of osd
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" wrote:
> Hi,
>
> I
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
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