Running must-gather in modular mode

This section provides information about how to run the must-gather in modular mode and the different arguments that available.

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:<odf-version> -- /usr/bin/gather <-arg> --dest-dir=<directory-name>

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
namespaced resources
-cs, --clusterscoped
clusterscoped resources
-pc , --provider
openshift-storage-client logs from a provider/consumer cluster (includes all the logs under operator namespace, pods, deployments, secrets, configmap, and other resources)
-h, --help
Print help message