Re: Increase number of replicas per node

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

 



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-bounces@xxxxxxxxxxxxxx on behalf of max@xxxxxxxxxxxxx> 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@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




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


  Powered by Linux