Changing stretch mode
Change the stretch mode state by entering or exiting stretch mode as needed to support your cluster’s availability and data‑placement requirements.
Entering stretch mode
Stretch mode is designed to handle two sites. There is a lesser risk of component availability outages with 2-site clusters.
Before you begin
- Root-level access to the nodes.
- The CRUSH location is set to the hosts.
- The CRUSH map configured to include stretch rule.
- No erasure coded pools in the cluster.
- Weights of the two sites are the same.
Procedure
What to do next
Exiting stretch mode
Disable stretch mode by moving pools to a specified CRUSH rule or to the default replicated rule.
Procedure
Disable stretch mode.
You can specify a CRUSH rule to move all pools to. If you do not specify a rule, Ceph moves the pools to the default replicated CRUSH rule.
ceph mon disable_stretch_mode CRUSH_RULE --yes-i-really-mean-it