Skip to content

Commit 6f2ca68

Browse files
authored
Merge pull request #70703 from cbippley/OSDOCS-8970
OSDOCS-8970 Adding max storage value to must-gather
2 parents c25f9ed + b68b424 commit 6f2ca68

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * support/gathering-cluster-data.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="must-gather-storage-limit_{context}"]
7+
= Changing the must-gather storage limit
8+
9+
When using the `oc adm must-gather` command to collect data the default maximum storage for the information is 30% of the storage capacity of the container. After the 30% limit is reached the container is killed and the gathering process stops. Information already gathered is downloaded to your local storage. To run the must-gather command again, you need either a container with more storage capacity or to adjust the maximum volume percentage.
10+
11+
If the container reaches the storage limit, an error message similar to the following example is generated.
12+
13+
.Example output
14+
[source,terminal]
15+
----
16+
Disk usage exceeds the volume percentage of 30% for mounted directory. Exiting...
17+
----
18+
19+
.Prerequisites
20+
21+
* You have access to the cluster as a user with the `cluster-admin` role.
22+
* The OpenShift CLI (`oc`) is installed.
23+
24+
.Procedure
25+
26+
* Run the `oc adm must-gather` command with the `volume-percentage` flag. The new value cannot exceed 100.
27+
+
28+
[source,terminal]
29+
----
30+
$ oc adm must-gather --volume-percentage <storage_percentage>
31+
----

support/gathering-cluster-data.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ endif::openshift-rosa,openshift-dedicated[]
5050
// Gathering network logs
5151
include::modules/gathering-data-network-logs.adoc[leveloffset=+2]
5252

53+
//Changing the must-gather storage limit
54+
include::modules/must-gather-storage-limit.adoc[leveloffset=+2]
55+
5356
ifndef::openshift-origin[]
5457
// Obtain your cluster identifier
5558
include::modules/support-get-cluster-id.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)