Hi Massimiliano,

You’ll need to update the rule with something like that:

rule rep6 {
        ruleset 1
        type replicated
        min_size 6
        max_size 6
        step take root
        step choose firstn 3 type host
        step choose firstn 2 type osd
        step emit
}

Testing it with crushtool and assuming a crush map with osd0-3 are in host1, 
osd4-7 in host2 and osd8-12 in host3 I get the following results
crushtool -i map.bin --test --rule 1 --show-mappings --x 1 --num-rep 6
CRUSH rule 1 x 1 [3,0,9,11,5,7]

Cheers,
Maxime

On 27/02/17 13:22, "ceph-users on behalf of Massimiliano Cuttini" 
<ceph-users-boun...@lists.ceph.com on behalf of m...@phoenixweb.it> wrote:

    Dear all,
    
    i have 3 nodes with 4 OSD each.
    And I would like to have 6 replicas.
    So 2 replicas for nodes.
    
    Does anybody know how to allow CRUSH to use twice the same node but 
    different OSD?
    
    Thanks,
    Max
    
    
    _______________________________________________
    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

Reply via email to