Chapter 29. Set the Number of Object Replicas
To set the number of object replicas on a replicated pool, execute the following:
ceph osd pool set <poolname> size <num-replicas>
The <num-replicas>
includes the object itself. If you want the object and two copies of the object for a total of three instances of the object, specify 3
.
For example:
ceph osd pool set data size 3
You may execute this command for each pool. Note: An object might accept I/Os in degraded mode with fewer than pool size
replicas. To set a minimum number of required replicas for I/O, you should use the min_size
setting. For example:
ceph osd pool set data min_size 2
This ensures that no object in the data pool will receive I/O with fewer than min_size
replicas.