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 Backup or Restore CR by using the following oc describe command:

    $ oc describe <velero_cr> <cr_name>
  • Retrieve the Velero pod logs by using the following oc logs command:

    $ oc logs pod/<velero>
  • Specify the Velero log level in the DataProtectionApplication resource 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: warning

    The following logLevel values are available:

    • trace
    • debug
    • info
    • warning
    • error
    • fatal
    • panic

      Use the info logLevel value for most logs.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部