遷移警告

本頁面說明執行 analyze 指令後,可能會收到的警告。

警告類型

執行 analyze 指令後,「遷移至容器」可能會提供特定遷移類型的警告。警告有兩種類型:

  • MigrationBlocker警告:這些警告會阻止遷移作業,因此您必須解決這些警告。在有 MigrationBlocker 警告的情況下,您無法產生遷移作業的構件。
  • Normal 警告:這些是非阻斷警告,您可以自行決定是否要解決。雖然 Normal 類型的警告不會阻止產生構件,但可能會導致遷移程序失敗,或導致遷移的工作負載在執行時失敗。

如何解讀警告

如果有警告,會顯示在 analyze 指令輸出目錄中的 warnings.yaml 檔案中。

每則警告訊息都包含下列欄位:

  • type:警告類型,可為 MigrationBlockerNormal
  • reason:警告的原因。
  • 緩解措施:說明警告內容和可能的解決方法。

舉例來說,以下是 Linux 的 FileTooBig 警告。

- message: The source VM file-system contains file(s) which are too big to be part of the generated container image
  mitigation: Please edit the migration plan to either filter them out, or export them to a data volume
  reason: FileTooBig
  type: MigrationBlocker