12.4.3.5. Velero pod 日志中的 Pod 卷备份超时错误


如果因为 Restic 超时造成迁移失败,Velero pod 日志会显示以下错误:

level=error msg="Error backing up item" backup=velero/monitoring error="timed out
waiting for all PodVolumeBackups to complete" error.file="/go/src/github.com/
heptio/velero/pkg/restic/backupper.go:165" error.function="github.com/heptio/
velero/pkg/restic.(*backupper).BackupPodVolumes" group=v1

restic_timeout 的默认值为一小时。您可以为大型迁移增加这个参数值,请注意,高的值可能会延迟返回出错信息。

流程

  1. 在 OpenShift Container Platform web 控制台中导航至 Operators Installed Operators。
  2. 点 Migration Toolkit for Containers Operator。
  3. 在 MigrationController 标签页中点 migration-controller。
  4. 在 YAML 标签页中,更新以下参数值:

    spec:
      restic_timeout: 1h 
    1
    1
    有效单元是 h (小时)、m (分钟)和 s (秒),例如 3h30m15s。
  5. 点击 Save。
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

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

让开源更具包容性

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

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部