Skip to navigation Skip to main content

Utilities

  • Subscriptions
  • Downloads
  • Containers
  • Support Cases
Red Hat Customer Portal
  • Subscriptions
  • Downloads
  • Containers
  • Support Cases
  • Products & Services

    Products

    Support

    • Production Support
    • Development Support
    • Product Life Cycles

    Services

    • Consulting
    • Technical Account Management
    • Training & Certifications

    Documentation

    • Red Hat Enterprise Linux
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenStack Platform
    • Red Hat OpenShift Container Platform
    All Documentation

    Ecosystem Catalog

    • Red Hat Partner Ecosystem
    • Partner Resources
  • Tools

    Tools

    • Troubleshoot a product issue
    • Packages
    • Errata

    Customer Portal Labs

    • Configuration
    • Deployment
    • Security
    • Troubleshoot
    All labs

    Red Hat Insights

    Increase visibility into IT operations to detect and resolve technical issues before they impact your business.

    Learn More
    Go to Insights
  • Security

    Red Hat Product Security Center

    Engage with our Red Hat Product Security team, access security updates, and ensure your environments are not exposed to any known security vulnerabilities.

    Product Security Center

    Security Updates

    • Security Advisories
    • Red Hat CVE Database
    • Security Labs

    Keep your systems secure with Red Hat's specialized responses to security vulnerabilities.

    View Responses

    Resources

    • Security Blog
    • Security Measurement
    • Severity Ratings
    • Backporting Policies
    • Product Signing (GPG) Keys
  • Community

    Customer Portal Community

    • Discussions
    • Private Groups
    Community Activity

    Customer Events

    • Red Hat Convergence
    • Red Hat Summit

    Stories

    • Red Hat Subscription Value
    • You Asked. We Acted.
    • Open Source Communities
Or troubleshoot an issue.

Select Your Language

  • English
  • 한국어
  • 日本語
  • 中文 (中国)

Infrastructure and Management

  • Red Hat Enterprise Linux
  • Red Hat Satellite
  • Red Hat Subscription Management
  • Red Hat Insights
  • Red Hat Ansible Automation Platform

Cloud Computing

  • Red Hat OpenShift
  • Red Hat OpenStack Platform
  • Red Hat OpenShift Container Platform
  • Red Hat OpenShift Data Science
  • Red Hat OpenShift Dedicated
  • Red Hat Advanced Cluster Security for Kubernetes
  • Red Hat Advanced Cluster Management for Kubernetes
  • Red Hat Quay
  • OpenShift Dev Spaces
  • Red Hat OpenShift Service on AWS

Storage

  • Red Hat Gluster Storage
  • Red Hat Hyperconverged Infrastructure
  • Red Hat Ceph Storage
  • Red Hat OpenShift Data Foundation

Runtimes

  • Red Hat Runtimes
  • Red Hat JBoss Enterprise Application Platform
  • Red Hat Data Grid
  • Red Hat JBoss Web Server
  • Red Hat Single Sign On
  • Red Hat support for Spring Boot
  • Red Hat build of Node.js
  • Red Hat build of Quarkus

Integration and Automation

  • Red Hat Application Foundations
  • Red Hat Fuse
  • Red Hat AMQ
  • Red Hat 3scale API Management
All Products

Table of contents

  1. 从版本 3 迁移到 4
  2. 1. 从 OpenShift Container Platform 3 迁移到 4 概述
    1. 1.1. OpenShift Container Platform 3 和 4 之间的区别
    2. 1.2. 规划网络注意事项
    3. 1.3. 安装 MTC
    4. 1.4. 升级 MTC
    5. 1.5. 查看预迁移清单
    6. 1.6. 迁移应用程序
    7. 1.7. 高级迁移选项
    8. 1.8. 迁移故障排除
    9. 1.9. 回滚一个迁移
    10. 1.10. 卸载 MTC 并删除资源
  3. 2. 关于从 OpenShift Container Platform 3 迁移到 4
  4. 3. OpenShift Container Platform 3 和 4 之间的区别
    1. 3.1. 架构
    2. 3.2. 安装和升级
    3. 3.3. 迁移考虑
      1. 3.3.1. 存储注意事项
      2. 3.3.2. 网络注意事项
      3. 3.3.3. 日志记录注意事项
      4. 3.3.4. 安全考虑
      5. 3.3.5. 监控注意事项
  5. 4. 网络注意事项
    1. 4.1. DNS 注意事项
      1. 4.1.1. 将目标集群的 DNS 域与客户端隔离
      2. 4.1.2. 设置目标集群以接受源 DNS 域
    2. 4.2. 网络流量重定向策略
  6. 5. 关于 Migration Toolkit for Containers(MTC)
    1. 5.1. 术语
    2. 5.2. MTC 工作流
    3. 5.3. 关于数据复制方法
      1. 5.3.1. 文件系统复制方法
      2. 5.3.2. 快照复制方法
    4. 5.4. 直接卷迁移和直接镜像迁移
  7. 6. 安装 MTC
    1. 6.1. 兼容性指南
    2. 6.2. 在 OpenShift Container Platform 3 上安装旧的 MTC Operator
    3. 6.3. 在 OpenShift Container Platform 4.11 上安装 MTC Operator
    4. 6.4. 代理配置
      1. 6.4.1. 直接卷迁移
        1. 6.4.1.1. DVM 的 TCP 代理设置
        2. 6.4.1.2. 为什么使用 TCP 代理而不是 HTTP/HTTPS 代理?
        3. 6.4.1.3. 已知问题
      2. 6.4.2. 为迁移调优网络策略
        1. 6.4.2.1. NetworkPolicy 配置
          1. 6.4.2.1.1. 来自 Rsync pod 的出口流量
          2. 6.4.2.1.2. 到 Rsync pod 的入口流量
        2. 6.4.2.2. EgressNetworkPolicy 配置
        3. 6.4.2.3. 为数据传输选择备用端点
        4. 6.4.2.4. 为 Rsync pod 配置补充组
      3. 6.4.3. 配置代理
    5. 6.5. 配置复制存储库
      1. 6.5.1. 先决条件
      2. 6.5.2. 检索多云对象网关凭证
      3. 6.5.3. 配置 Amazon Web Services
      4. 6.5.4. 配置 Google Cloud Platform
      5. 6.5.5. 配置 Microsoft Azure
      6. 6.5.6. 其他资源
    6. 6.6. 卸载 MTC 并删除资源
  8. 7. 在受限网络环境中安装 MTC
    1. 7.1. 兼容性指南
    2. 7.2. 在 OpenShift Container Platform 4.11 上安装 MTC Operator
    3. 7.3. 在 OpenShift Container Platform 3 上安装旧的 MTC Operator
    4. 7.4. 代理配置
      1. 7.4.1. 直接卷迁移
        1. 7.4.1.1. DVM 的 TCP 代理设置
        2. 7.4.1.2. 为什么使用 TCP 代理而不是 HTTP/HTTPS 代理?
        3. 7.4.1.3. 已知问题
      2. 7.4.2. 为迁移调优网络策略
        1. 7.4.2.1. NetworkPolicy 配置
          1. 7.4.2.1.1. 来自 Rsync pod 的出口流量
          2. 7.4.2.1.2. 到 Rsync pod 的入口流量
        2. 7.4.2.2. EgressNetworkPolicy 配置
        3. 7.4.2.3. 为数据传输选择备用端点
        4. 7.4.2.4. 为 Rsync pod 配置补充组
      3. 7.4.3. 配置代理
    5. 7.5. 配置复制存储库
      1. 7.5.1. 先决条件
      2. 7.5.2. 检索多云对象网关凭证
      3. 7.5.3. 其他资源
    6. 7.6. 卸载 MTC 并删除资源
  9. 8. 升级 MTC
    1. 8.1. 在 OpenShift Container Platform 4.11 中升级 MTC
    2. 8.2. 在 OpenShift Container Platform 3 上升级 MTC
    3. 8.3. 将 MTC 1.3 升级到 1.7
  10. 9. 预迁移检查列表
    1. 9.1. Resources
    2. 9.2. 源集群
    3. 9.3. 目标集群
    4. 9.4. 性能
  11. 10. 迁移应用程序
    1. 10.1. 迁移先决条件
    2. 10.2. 使用 MTC web 控制台迁移应用程序
      1. 10.2.1. 启动 MTC web 控制台
      2. 10.2.2. 在 MTC web 控制台中添加集群
      3. 10.2.3. 在 MTC web 控制台中添加复制存储库
      4. 10.2.4. 在 MTC web 控制台中创建迁移计划
      5. 10.2.5. 在 MTC web 控制台中运行迁移计划
  12. 11. 高级迁移选项
    1. 11.1. 术语
    2. 11.2. 将应用程序从内部迁移到基于云的集群
    3. 11.3. 使用命令行迁移应用程序
      1. 11.3.1. 迁移先决条件
      2. 11.3.2. 创建用于直接镜像迁移的 registry 路由
      3. 11.3.3. 代理配置
        1. 11.3.3.1. 直接卷迁移
          1. 11.3.3.1.1. DVM 的 TCP 代理设置
          2. 11.3.3.1.2. 为什么使用 TCP 代理而不是 HTTP/HTTPS 代理?
          3. 11.3.3.1.3. 已知问题
        2. 11.3.3.2. 为迁移调优网络策略
          1. 11.3.3.2.1. NetworkPolicy 配置
            1. 11.3.3.2.1.1. 来自 Rsync pod 的出口流量
            2. 11.3.3.2.1.2. 到 Rsync pod 的入口流量
          2. 11.3.3.2.2. EgressNetworkPolicy 配置
          3. 11.3.3.2.3. 为数据传输选择备用端点
          4. 11.3.3.2.4. 为 Rsync pod 配置补充组
        3. 11.3.3.3. 配置代理
      4. 11.3.4. 使用 MTC API 迁移应用程序
      5. 11.3.5. 状态迁移
    4. 11.4. 迁移 hook
      1. 11.4.1. 为迁移 hook 编写 Ansible playbook
        1. 11.4.1.1. Ansible 模块
        2. 11.4.1.2. 环境变量
    5. 11.5. 迁移计划选项
      1. 11.5.1. 排除资源
      2. 11.5.2. 映射命名空间
      3. 11.5.3. 持久性卷声明除外
      4. 11.5.4. 映射持久性卷声明
      5. 11.5.5. 编辑持久性卷属性
      6. 11.5.6. 使用 MTC API 执行 Kubernetes 对象的状态迁移
    6. 11.6. 迁移控制器选项
      1. 11.6.1. 为大型迁移增加限制
      2. 11.6.2. 为直接卷迁移启用持久性卷大小
      3. 11.6.3. 启用缓存的 Kubernetes 客户端
  13. 12. 故障排除
    1. 12.1. MTC 工作流
    2. 12.2. MTC 自定义资源清单
      1. 12.2.1. DirectImageMigration
      2. 12.2.2. DirectImageStreamMigration
      3. 12.2.3. DirectVolumeMigration
      4. 12.2.4. DirectVolumeMigrationProgress
      5. 12.2.5. MigAnalytic
      6. 12.2.6. MigCluster
      7. 12.2.7. MigHook
      8. 12.2.8. MigMigration
      9. 12.2.9. MigPlan
      10. 12.2.10. MigStorage
    3. 12.3. 日志和调试工具
      1. 12.3.1. 查看迁移计划资源
      2. 12.3.2. 查看迁移计划日志
      3. 12.3.3. 使用迁移日志读取器
      4. 12.3.4. 访问性能指标
        1. 12.3.4.1. 提供的指标
          1. 12.3.4.1.1. cam_app_workload_migrations
          2. 12.3.4.1.2. mtc_client_request_count
          3. 12.3.4.1.3. mtc_client_request_elapsed
          4. 12.3.4.1.4. 有用的查询
      5. 12.3.5. 使用 must-gather 工具
      6. 12.3.6. 使用 Velero CLI 工具调试 Velero 资源
      7. 12.3.7. 调试部分迁移失败
      8. 12.3.8. 使用 MTC 自定义资源进行故障排除
    4. 12.4. 常见问题和关注
      1. 12.4.1. 更新已弃用的内部镜像
      2. 12.4.2. 直接卷迁移未完成
      3. 12.4.3. 错误信息和解决方案
        1. 12.4.3.1. 首次访问 MTC 控制台时显示的 CA 证书错误
        2. 12.4.3.2. MTC 控制台中的 OAuth 超时错误
        3. 12.4.3.3. 由未知颁发机构签名的证书错误
        4. 12.4.3.4. 在 Velero pod 日志中有备份存储位置错误
        5. 12.4.3.5. Velero pod 日志中的 Pod 卷备份超时错误
        6. 12.4.3.6. MigMigration 自定义资源中的 Restic 验证错误
        7. 12.4.3.7. 从启用了 root_squash 的 NFS 存储中迁移时的 Restic 权限错误
      4. 12.4.4. 已知问题
    5. 12.5. 回滚一个迁移
      1. 12.5.1. 使用 MTC web 控制台回滚迁移
      2. 12.5.2. 使用命令行界面回滚迁移
      3. 12.5.3. 手动回滚迁移
  14. 法律通告

1.8. 迁移故障排除

您可以执行以下故障排除任务:

  • 使用 MTC web 控制台查看迁移计划资源
  • 查看迁移计划聚合日志文件
  • 使用迁移日志读取器
  • 访问性能指标
  • 使用 must-gather 工具
  • 使用 Velero CLI 调试 Backup 和 Restore CR
  • 使用 MTC 自定义资源进行故障排除
  • 检查常见问题
  1. Previous
  2. Next
Red Hat

Quick Links

  • Downloads
  • Subscriptions
  • Support Cases
  • Customer Service
  • Product Documentation

Help

  • Contact Us
  • Customer Portal FAQ
  • Log-in Assistance

Site Info

  • Trust Red Hat
  • Browser Support Policy
  • Accessibility
  • Awards and Recognition
  • Colophon

Related Sites

  • redhat.com
  • developers.redhat.com
  • connect.redhat.com
  • cloud.redhat.com

About

  • Red Hat Subscription Value
  • About Red Hat
  • Red Hat Jobs
Copyright © 2023 Red Hat, Inc.
  • Privacy Statement
  • Terms of Use
  • All Policies and Guidelines
Red Hat Summit Red Hat Summit
Twitter