A virtual machine fails to power on with the error: Failed to extend swap file from 0 KB to xxxx KB: Invalid metadata
search cancel

A virtual machine fails to power on with the error: Failed to extend swap file from 0 KB to xxxx KB: Invalid metadata

book

Article ID: 344373

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Powering on a virtual machine fails
  • You cannot power on a virtual machine
  • You see one of these error:
    • Error message: Failed to extend swap file (fileHandle xxxxx) from 0 KB to yyyyy KB: Invalid metadata.

      Could not power on VM : Invalid metadata. Failed to power on VM.
    • Could not power on VM : No space left on device
      Failed to power on VM.
      Failed to extend swap file from 0 KB to yyyyy KB.

  • You can power on the virtual machine if setting a memory reservation to the same size as the RAM assigned to the virtual machine
  • The VMkernel logs show messages similar to:

    Nov 15 11:46:18 esx02 vmkernel: 112:02:17:36.504 cpu0:108855)WARNING: VSCSI: 4129: Can't translate bad0099/Invalid metadata to SCSI: using MEDIUM ERROR
    Nov 15 11:46:45 esx02 vmkernel: 112:02:18:03.763 cpu2:108883)WARNING: FS3: 7552: Volume 4b0432c8-f4d6dae8-b086-002655826b48 ("Volume1") may be damaged on disk. Corrupt lock detected at offset c08b2d9e00050000: [type 12538 offset 13874233233673355264 v 13874233233703141290, hb o
    Nov 15 11:46:45 esx02 vmkernel: 112:02:18:03.763 cpu2:108883)WARNING: Swap: 2214: Failed to extend swap file: Invalid metadata, fileHandle 656212749, from 0KB to 4194304KB.



Environment

VMware ESXi 4.1.x Installable
VMware vSphere ESXi 5.5
VMware ESX 4.0.x
VMware ESX 4.1.x
VMware vSphere ESXi 5.0
VMware vSphere ESXi 6.0
VMware vSphere ESXi 5.1
VMware ESXi 4.1.x Embedded

Resolution

This issue occurs if the ESX/ESXi host is unable to create the swap file required to power on the virtual machine. This is most likely due to a storage problem on the datastore where the swap file is located.
To workaround this issue when you see the Invalid metadata error, perform one of these options:
Note: This workaround allows you to power on the virtual machine. You still need to investigate the underlying storage issue.

To workaround this issue when you see the error No space left on device, grow or add extents to the volume in question.


Additional Information

To be alerted when this document is updated, click the Subscribe to Article link in the Actions box
Storing a virtual machine swap file in a location other than the default in ESX/ESXi
仮想マシンが次のエラーでパワーオンに失敗する:スワップ ファイルを 0 KB から xxxx KB に拡張できませんでした:無効なメタデータ
虚拟机无法打开电源,并显示错误:无法将交换文件从 0 KB 扩展到 xxxx KB: 元数据无效