@@ -737,6 +737,117 @@ Managing pools that are flagged with ``--bulk``
737737===============================================
738738See :ref: `managing_bulk_flagged_pools `.
739739
740+ Setting values for a stretch pool
741+ =================================
742+ To set values for a stretch pool, run a command of the following form:
743+
744+ .. prompt :: bash $
745+
746+ ceph osd pool stretch set {pool-name} {peering_crush_bucket_count} {peering_crush_bucket_target} {peering_crush_bucket_barrier} {crush_rule} {size} {min_size} [--yes-i-really-mean-it]
747+
748+ Here are the break downs of the arguments:
749+
750+ .. describe :: {pool-name}
751+
752+ The name of the pool. It must be an existing pool, this command doesn't create a new pool.
753+
754+ :Type: String
755+ :Required: Yes.
756+
757+ .. describe :: {peering_crush_bucket_count}
758+
759+ The value is used along with peering_crush_bucket_barrier to determined whether the set of
760+ OSDs in the chosen acting set can peer with each other, based on the number of distinct
761+ buckets there are in the acting set.
762+
763+ :Type: Integer
764+ :Required: Yes.
765+
766+ .. describe :: {peering_crush_bucket_target}
767+
768+ This value is used along with peering_crush_bucket_barrier and size to calculate
769+ the value bucket_max which limits the number of OSDs in the same bucket from getting chose to be in the acting set of a PG.
770+
771+ :Type: Integer
772+ :Required: Yes.
773+
774+ .. describe :: {peering_crush_bucket_barrier}
775+
776+ The type of bucket a pool is stretched across, e.g., rack, row, or datacenter.
777+
778+ :Type: String
779+ :Required: Yes.
780+
781+ .. describe :: {crush_rule}
782+
783+ The crush rule to use for the stretch pool. The type of pool must match the type of crush_rule
784+ (replicated or erasure).
785+
786+ :Type: String
787+ :Required: Yes.
788+
789+ .. describe :: {size}
790+
791+ The number of replicas for objects in the stretch pool.
792+
793+ :Type: Integer
794+ :Required: Yes.
795+
796+ .. describe :: {min_size}
797+
798+ The minimum number of replicas required for I/O in the stretch pool.
799+
800+ :Type: Integer
801+ :Required: Yes.
802+
803+ .. describe :: {--yes-i-really-mean-it}
804+
805+ This flag is required to confirm that you really want to by-pass
806+ the safety checks and set the values for a stretch pool, e.g,
807+ when you are trying to set ``peering_crush_bucket_count `` or
808+ ``peering_crush_bucket_target `` to be more than the number of buckets in the crush map.
809+
810+ :Type: Flag
811+ :Required: No.
812+
813+ .. _setting_values_for_a_stretch_pool :
814+
815+ Unsetting values for a stretch pool
816+ ===================================
817+ To move the pool back to non-stretch, run a command of the following form:
818+
819+ .. prompt :: bash $
820+
821+ ceph osd pool stretch unset {pool-name}
822+
823+ Here are the break downs of the argument:
824+
825+ .. describe :: {pool-name}
826+
827+ The name of the pool. It must be an existing pool that is stretched,
828+ i.e., it has already been set with the command `ceph osd pool stretch set `.
829+
830+ :Type: String
831+ :Required: Yes.
832+
833+ Showing values of a stretch pool
834+ ================================
835+ To show values for a stretch pool, run a command of the following form:
836+
837+ .. prompt :: bash $
838+
839+ ceph osd pool stretch show {pool-name}
840+
841+ Here are the break downs of the argument:
842+
843+ .. describe :: {pool-name}
844+
845+ The name of the pool. It must be an existing pool that is stretched,
846+ i.e., it has already been set with the command `ceph osd pool stretch set `.
847+
848+ :Type: String
849+ :Required: Yes.
850+
740851.. _Pool, PG and CRUSH Config Reference : ../../configuration/pool-pg-config-ref
741852.. _Bloom Filter : https://en.wikipedia.org/wiki/Bloom_filter
742853.. _setting the number of placement groups : ../placement-groups#set-the-number-of-placement-groups
0 commit comments