Snapshot consolidation fails due to Medium errors
search cancel

Snapshot consolidation fails due to Medium errors

book

Article ID: 421770

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms

  • Virtual Machine snapshot consolidation fails.
  • The task may fail with an explicit "Error 5 (Input/output error)".
  • Medium errors are observed in the ESXi host logs (/var/run/log/vmkernel.log):
    • YYYY-MM-DDTHH:MM:SSZ cpu##:#######)ScsiDeviceIO: ####: Cmd(0x################) 0x28, CmdSN 0x# from world ####### to dev "naa.#######################" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0x3 0x11 0x0 Medium Error, LBA: #########
    • YYYY-MM-DDTHH:MM:SSZ cpu##:#######)smartpqi01: os_raid_response_error:####: err_info status=0x2 data_out=0x0

Environment

vSphere ESXi

Cause

The consolidation process for the virtual Machine disk fails because the physical media (LUN) where the VMDK resides has encountered underlying hardware failures (bad sectors). The ESXi host receives a SCSI Sense Code 0x3 0x11 0x0, indicating a "Medium Error" that prevents successful read/write operations during the consolidation process.

Resolution

  1. Verify the status and integrity of current virtual machine backups.
  2. Engage the storage array vendor to perform hardware diagnostics on the device identified in the logs (e.g., naa.#######################).
  3. Address the reported bad blocks at the reported LBA (Logical Block Address).
  4. Once the storage vendor confirms physical media integrity is restored, retry the snapshot consolidation.
  5. If the media is unrecoverable, restore the virtual machine from a healthy backup to a different datastore/LUN.