Hi Mika,

The below command will set ruleset to the pool:

ceph osd pool set <poolname> crush_ruleset 1

For more info : http://ceph.com/docs/master/rados/operations/crush-map/

Thanks
Sahana

From: ceph-users [mailto:ceph-users-boun...@lists.ceph.com] On Behalf Of Vickie 
ch
Sent: Tuesday, February 03, 2015 11:30 AM
To: ceph-users
Subject: [ceph-users] Question about CRUSH rule set parameter "min_size" 
"max_size"

Hi ,
      CRUSH map have two parameter are "min_size" and "max_size".
Explanation about min_size is "If a pool makes fewer replicas than this number, 
CRUSH will NOT select this rule".
The max_size is "If a pool makes more replicas than this number, CRUSH will NOT 
select this rule"
Default setting of pool replicate size is 1.
Created 2 rules that ruleset0 「min_size = 3」, ruleset1 「min_size = 1」and 
applied.
Then created a new pool named "test" and assume pool "test" will apply ruleset1.
But found pool "test" apply ruleset0.
Which part I missing?

Thanks a lot for any advice!
Best wishes,
​Mika

________________________________

PLEASE NOTE: The information contained in this electronic mail message is 
intended only for the use of the designated recipient(s) named above. If the 
reader of this message is not the intended recipient, you are hereby notified 
that you have received this message in error and that any review, 
dissemination, distribution, or copying of this message is strictly prohibited. 
If you have received this communication in error, please notify the sender by 
telephone or e-mail (as shown above) immediately and destroy any and all copies 
of this message in your possession (whether hard copies or electronically 
stored copies).

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to