2.2. Running must-gather in modular mode
Red Hat OpenShift Data Foundation must-gather can take a long time to run in some environments. To avoid this, run must-gather in modular mode and collect only the resources you require using the following command:
$ oc adm must-gather --image=registry.redhat.io/odf4/odf-must-gather-rhel9:v4.15 -- /usr/bin/gather < -arg>
Replace < -arg> with one or more of the following arguments to specify the resources for which the must-gather logs is required.
-o,--odf- ODF logs (includes Ceph resources, namespaced resources, clusterscoped resources and Ceph logs)
-d,--dr- DR logs
-n,--noobaa- Noobaa logs
-c,--ceph- Ceph commands and pod logs
-cl,--ceph-logs- Ceph daemon, kernel, journal logs, and crash reports
-ns,--namespaced-
namespacedresources -cs,--clusterscoped-
clusterscopedresources -h,--help- Print help message
注記
If no < -arg> is included, must-gather will collect all logs.