|
2 | 2 | [id="using-the-must-gather-tool"] |
3 | 3 | = Using the must-gather tool |
4 | 4 | include::_attributes/common-attributes.adoc[] |
5 | | -include::_attributes/attributes-openshift-dedicated.adoc[] |
6 | 5 | :context: using-the-must-gather-tool |
7 | | -:namespace: openshift-adp |
8 | | -:local-product: OADP |
9 | | -:must-gather-v1-3: registry.redhat.io/oadp/oadp-mustgather-rhel9:v1.3 |
10 | | -:must-gather-v1-4: registry.redhat.io/oadp/oadp-mustgather-rhel9:v1.4 |
| 6 | +:must-gather-v1-5: registry.redhat.io/oadp/oadp-mustgather-rhel9:v1.5 |
11 | 7 |
|
12 | 8 | toc::[] |
13 | 9 |
|
14 | | -You can collect logs, metrics, and information about {local-product} custom resources by using the `must-gather` tool. The `must-gather` data must be attached to all customer cases. |
| 10 | +You can collect logs and information about {oadp-short} custom resources by using the `must-gather` tool. The `must-gather` data must be attached to all customer cases. |
15 | 11 |
|
16 | | -You can run the `must-gather` tool with the following data collection options: |
17 | | - |
18 | | -* Full `must-gather` data collection collects Prometheus metrics, pod logs, and Velero CR information for all namespaces where the OADP Operator is installed. |
19 | | -* Essential `must-gather` data collection collects pod logs and Velero CR information for a specific duration of time, for example, one hour or 24 hours. Prometheus metrics and duplicate logs are not included. |
20 | | -* `must-gather` data collection with timeout. Data collection can take a long time if there are many failed `Backup` CRs. You can improve performance by setting a timeout value. |
21 | | -* Prometheus metrics data dump downloads an archive file containing the metrics data collected by Prometheus. |
22 | | -
|
23 | | -
|
24 | | -.Prerequisites |
25 | | - |
26 | | -* You have logged in to the {product-title} cluster as a user with the `cluster-admin` role. |
27 | | -* You have installed the OpenShift CLI (`oc`). |
28 | | -* You must use {op-system-base-full} {op-system-version-9} with {oadp-short} 1.4. |
29 | | -
|
30 | | -.Procedure |
31 | | - |
32 | | -. Navigate to the directory where you want to store the `must-gather` data. |
33 | | -. Run the `oc adm must-gather` command for one of the following data collection options: |
34 | | - |
35 | | -* For full `must-gather` data collection, including Prometheus metrics, run the following command: |
36 | | -+ |
37 | | -[source,terminal,subs="attributes+"] |
38 | | ----- |
39 | | -$ oc adm must-gather --image={must-gather-v1-4} |
40 | | ----- |
41 | | -+ |
42 | | -The data is saved as `must-gather/must-gather.tar.gz`. You can upload this file to a support case on the link:https://access.redhat.com/[Red{nbsp}Hat Customer Portal]. |
43 | | -+ |
44 | | -For essential `must-gather` data collection, without Prometheus metrics, for a specific time duration, run the following command: |
45 | | -+ |
46 | | -[source,terminal,subs="attributes+"] |
47 | | ----- |
48 | | -$ oc adm must-gather --image={must-gather-v1-4} \ |
49 | | - -- /usr/bin/gather_<time>_essential <1> |
50 | | ----- |
51 | | -<1> Specify the time in hours. Allowed values are `1h`, `6h`, `24h`, `72h`, or `all`, for example, `gather_1h_essential` or `gather_all_essential`. |
52 | | -
|
53 | | -* For `must-gather` data collection with timeout, run the following command: |
54 | | -+ |
55 | | -[source,terminal,subs="attributes+"] |
56 | | ----- |
57 | | -$ oc adm must-gather --image={must-gather-v1-4} \ |
58 | | - -- /usr/bin/gather_with_timeout <timeout> <1> |
59 | | ----- |
60 | | -<1> Specify a timeout value in seconds. |
61 | | -
|
62 | | -* For a Prometheus metrics data dump, run the following command: |
63 | | -+ |
64 | | -[source,terminal,subs="attributes+"] |
65 | | ----- |
66 | | -$ oc adm must-gather --image={must-gather-v1-4} -- /usr/bin/gather_metrics_dump |
67 | | ----- |
68 | | -This operation can take a long time. The data is saved as `must-gather/metrics/prom_data.tar.gz`. |
| 12 | +The `must-gather` tool is a container and does not run all the time. The tool runs for a few minutes only after you invoke the tool by running the `must-gather` command. |
69 | 13 |
|
| 14 | +include::modules/using-must-gather.adoc[leveloffset=+1] |
70 | 15 |
|
71 | 16 | [role="_additional-resources"] |
72 | 17 | .Additional resources |
73 | 18 | * xref:../../../support/gathering-cluster-data.adoc#gathering-cluster-data[Gathering cluster data] |
74 | | -
|
75 | | -include::modules/support-insecure-tls-connections.adoc[leveloffset=+1] |
76 | | -include::modules/migration-combining-must-gather.adoc[leveloffset=+1] |
0 commit comments