2.2. 在模块化模式下运行 must-gather
Red Hat OpenShift Data Foundation must-gather 在某些环境中运行需要很长时间。要避免这种情况,以模块化模式运行 must-gather,只收集您需要的资源:
oc adm must-gather --image=registry.redhat.io/odf4/odf-must-gather-rhel9:v4.15 -- /usr/bin/gather <-arg>
$ oc adm must-gather --image=registry.redhat.io/odf4/odf-must-gather-rhel9:v4.15 -- /usr/bin/gather <-arg>
将 < -arg > 替换为以下参数的一个或多个参数,以指定需要 must-gather 日志的资源。
-o,--odf- ODF 日志(包括 Ceph 资源、命名空间资源、集群范围的资源和 Ceph 日志)
-d,--dr- DR 日志
-n,--noobaa- NooBaa logs
-c,--ceph- Ceph 命令和 pod 日志
-cl,--ceph-logs- Ceph 守护进程、内核、日志和崩溃报告
-ns,--namespaced-
命名空间资源 -CS,--clusterscoped-
集群范围的资源 -h,--help- 打印帮助信息