Normal 警告:這些是非阻斷警告,您可以自行決定是否要解決。雖然 Normal 類型的警告不會阻止產生構件,但可能會導致遷移程序失敗,或導致遷移的工作負載在執行時失敗。
如何解讀警告
如果有警告,會顯示在 analyze 指令輸出目錄中的 warnings.yaml 檔案中。
每則警告訊息都包含下列欄位:
type:警告類型,可為 MigrationBlocker 或 Normal。
reason:警告的原因。
緩解措施:說明警告內容和可能的解決方法。
舉例來說,以下是 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"]],["上次更新時間: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"]]