Bug 2137791

Summary: [DDF] We have an error here as the rule cannot be created until the buckets in the CRUSH map are not properly defined.
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Direct Docs Feedback <ddf-bot>
Component: documentationAssignee: Olive Lakra <olakra>
Status: CLOSED DUPLICATE QA Contact: Neha Berry <nberry>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.11CC: ddomingu, ocs-bugs, odf-bz-bot, olakra
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-01 06:40:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Direct Docs Feedback 2022-10-26 08:13:17 UTC
We have an error here as the rule cannot be created until the buckets in the CRUSH map are not properly defined. So, before injecting the CRUSH map with the new stretch_rule, you have to create DC1 and DC2 buckets:

ceph osd crush add-bucket allDC root
ceph osd crush add-bucket DC1 datacenter
ceph osd crush add-bucket DC2 datacenter
ceph osd crush move DC1 root=allDC
ceph osd crush move DC2 root=allDC

Finally, you have to move your host  under the proper bucket in the CRUSH map:

ceph osd crush move ceph1 datacenter=DC1

Once everything is ready, you can inject the CRUSH map in the cluster with the new stretch_rule.

Thanks. Regards

Reported by: ddomingu

https://access.redhat.com/documentation/en-us/red_hat_openshift_data_foundation/4.11/html/configuring_openshift_data_foundation_disaster_recovery_for_openshift_workloads/metro-dr-solution#annotations:cf1e128a-e394-4e3e-8854-38323130eec9