Normal 警告:这些是非阻止性警告,您可以自行决定是否要解决。虽然 Normal 类型的警告不会阻止制品的生成,但可能会导致迁移过程失败,或者导致迁移的工作负载在运行时失败。
如何解读警告
如果有警告,它们会显示在 analyze 命令的输出目录中的 warnings.yaml 文件中。
每个警告消息都包含以下字段:
类型:警告类型(MigrationBlocker 或 Normal)。
原因::警告的原因。
缓解措施:警告的说明以及可能的解决措施。
例如,以下是适用于 Linux 的 FileTooBig 警告。
-message:The source VM file-system contains file(s) which are too big to be part of the generated container imagemitigation:Please edit the migration plan to either filter them out, or export them to a data volumereason:FileTooBigtype:MigrationBlocker
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],null,["# Migration warnings\n==================\n\nThis page describes the warnings that you might get after you run the\n`analyze` command.\n\nTypes of warnings\n-----------------\n\nAfter you run the `analyze` command, Migrate to Containers might provide warnings\nspecific to your migration type.\nThere are two possible types of warnings:\n\n- **`MigrationBlocker` warnings:** These warnings block your migration, and you must address them. You cannot generate the artifacts of a migration while there are active `MigrationBlocker` warnings.\n- **`Normal` warnings:** These are non-blocking warnings that you can decide to address. Even though warnings of type `Normal` don't block the generation of artifacts, they might cause the migration process to fail, or cause the migrated workload to fail when run.\n\nHow to read the warnings\n------------------------\n\nIf there are warnings, they appear in the `warnings.yaml` file in the output\ndirectory of the `analyze` command.\n\nEach warning message contains the following fields:\n\n- **type:** The type of warning, either `MigrationBlocker` or `Normal`.\n- **reason:** The cause of the warning.\n- **mitigation:** The description of the warning and possible actions to resolve it.\n\nFor example, the following is a `FileTooBig` warning for Linux. \n\n - message: The source VM file-system contains file(s) which are too big to be part of the generated container image\n mitigation: Please edit the migration plan to either filter them out, or export them to a data volume\n reason: FileTooBig\n type: MigrationBlocker"]]