Skip to content

[JP]"ERROR: XFS filesystem at /var has ftype=0, cannot use overlay backend" error messages logged by the Docker daemon upon daemon startup

Article Number: 000020068

Environment

Situation

Dockerデーモンの起動時に、以下のようなエラーメッセージがシステムログに出力される:

Jun  13 13:55:47 hostname container-storage-setup: ERROR: XFS filesystem  at /var has ftype=0, cannot use overlay backend; consider different  driver or separate volume or OS reprovision
 

Cause

Docker documentationより
"Running on XFS without d_type support now causes Docker to skip the attempt to use the overlay or overlay2driver. Existing installs will continue to run, but produce an error. This is to allow users to migrate their data. In a future version, this will be a fatal error, which will prevent Docker from starting."

Resolution

xfsのファイルシステムは、d_typeがtrueに設定した状態でフォーマットされている場合に限り、overlayまたはoverlay2 のDockerストレージドライバーのBackendとして利用することができます。
xfsファイルシステムのd_type設定値はxfs_infoコマンドで確認することができます。出力の例はxfs_infoman pagesから参考できます。ftype=1の場合、ファイルシステムはd_type trueでフォーマットされており、ファイルシステムはoverlayまたはoverlay2storageドライバーのバックエンドとして使用するのに適しています。この値が0に設定されている場合、ファイルシステムはoverlayまたはoverlay2ストレージドライバーでの使用には適しておらず、-n ftype=1のフラグで再構築する必要があります。