5.26.2.3. Debugging Velero resources with the OpenShift CLI tool
Debug a failed backup or restore by checking Velero custom resources (CRs) and the Velero pod log with the OpenShift CLI tool.
Procedure
Retrieve a summary of warnings and errors associated with a
BackuporRestoreCR by using the followingoc describecommand:$ oc describe <velero_cr> <cr_name>Retrieve the
Veleropod logs by using the followingoc logscommand:$ oc logs pod/<velero>Specify the Velero log level in the
DataProtectionApplicationresource as shown in the following example.참고This option is available starting from OADP 1.0.3.
apiVersion: oadp.openshift.io/v1alpha1 kind: DataProtectionApplication metadata: name: velero-sample spec: configuration: velero: logLevel: warningThe following
logLevelvalues are available:-
trace -
debug -
info -
warning -
error -
fatal panicUse the
infologLevelvalue for most logs.
-