6.9. 验证和调试 Multus 配置
OpenShift Data Foundation 具有在 OpenShift Data Foundation StorageCluster 部署前执行基本连接测试的工具。这个 Multus 验证工具旨在是一个自助服务工具,它根据通过或失败的验证步骤返回可能不正确的详情列表。
此工具执行基本连接和 IP 可用性检查。它无法检测到每个可能的错误配置,并且无法检测到网络性能问题。确保每个集群部署的尽职。
使用工具遇到问题时,检查工具输出是否有建议。使用与 Pod 关联的事件(例如,使用 oc -n openshift-storage describe pods)进一步调试。尽管调试仍存在问题,收集 OpenShift Data Foundation must-gather,并创建一个包括完整工具输出和 must-gather tarball 的 OpenShift Data Foundation 帮助票据。如需更多信息,请参阅链接: 使用 must-gather 下载日志文件和诊断信息。
阅读有关从知识库链接下载 ODF Multus 验证工具的更多信息: OpenShift Data Foundation - Multus 先决条件验证工具。
为获得最佳结果,请使用带 Multus 验证工具的配置文件。建议进行以下配置,可以根据需要按照注释进行更新。
publicNetwork: "public-net" # comment out if public network is unused
# clusterNetwork: "cluster-net" # uncomment if used
# for airgapped environments, mirror this image, then update this config to reference the mirror
nginxImage: "quay.io/nginx/nginx-unprivileged:stable-alpine"
namespace: "openshift-storage"
serviceAccountName: "rook-ceph-system"
nodeTypes:
storage-nodes:
osdsPerNode: 12 # set to the max number of OSDs per storage node
otherDaemonsPerNode: 16
placement:
nodeSelector:
cluster.ocs.openshift.io/openshift-storage: ""
tolerations:
- {"key":"node.ocs.openshift.io/storage","value":"true"}
worker-nodes:
osdsPerNode: 0
otherDaemonsPerNode: 6
placement:
nodeSelector:
tolerations:
如果此建议被证明为不足或过期,请使用 工具使用 ./rook multus 验证配置 dedicated-storage-nodes 生成新配置。