How To
Summary
Method to collect disk or PVC utilization data from cluster with problematic storage.
Environment
OCP Server = 4.16.47
OC Client = 4.16.47
CP4AIOps MustGather = 1.29.2
CP4AIOps = 4.11.0
OC Client = 4.16.47
CP4AIOps MustGather = 1.29.2
CP4AIOps = 4.11.0
Steps
(1) Download the latest CP4AIOps MustGather (link).
OR
Upgrade the current CP4AIOps MustGather to the latest version:
./waiops-mustgather.sh -UD
(2) If the CP4AIOps MustGather hung during disk or PVC utilization data collection (see example below):
Eg.
[Tue Aug 12 10:33:34 AM EDT 2025] [analyzeOcPvc] [7] PVC_DF_CMD = [oc exec -n cp4aiops common-service-db-1 -c postgres --request-timeout=15m -- timeout 15m bash -c 'echo; echo "(df -h)"; df -h /var/lib/postgresql/data; echo; echo "(du -sh)"; echo "Used Filesystem"; du -sh /var/lib/postgresql/data; echo; echo "(df -i)"; df -i /var/lib/postgresql/data']
you should cancel or exit from the command by pressing 'Ctrl-C'.
(3) You can repeat the MustGather command, but add a runtime variable setting to it:
-W 'GET_PVC_USAGE_IN_SUBSHELL=true'
The variable instructs the MustGather to execute the disk or PVC utilization data collection in a subshell with an assigned timeout watcher.
The default timeout is 8 seconds and can be changed with "-W 'GET_PVC_USAGE_EXEC_TIMEOUT=<positive number>".
Eg.
-W 'GET_PVC_USAGE_IN_SUBSHELL=true##GET_PVC_USAGE_EXEC_TIMEOUT=5'
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSE9G0Q","label":"IBM Cloud Pak for AIOps"},"ARM Category":[{"code":"a8m3p000000LRdhAAG","label":"Watson AIOps-\u003EAI Manager-\u003EScripts-\u003EMustgather"}],"ARM Case Number":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"4.10.0;4.10.1;4.11.0;4.11.1;4.2.0;4.2.1;4.3.0;4.4.0;4.4.1;4.5.0;4.5.1;4.6.0;4.6.1;4.7.0;4.7.1;4.8.0;4.8.1;4.9.0;4.9.1"}]
Was this topic helpful?
Document Information
Modified date:
09 October 2025
UID
ibm17247531