Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

ESXi "Lost access to volume due to connectivity issues": read the logs to find which path failed

Technical article
VMware

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

The ESXi event Lost access to volume <uuid> (<datastore>) due to connectivity issues. Recovery attempt is in progress and outcome will be reported shortly. means a host has lost its connection to the storage behind a datastore and is trying to recover it. A later Successfully restored access to volume <uuid> following connectivity issues. means it came back. The message does not name the cause, so the logs around it decide it.

What the symptom means

Broadcom's KB 314371 shows the event pair in hostd.log as two entries: the Lost access to volume event and, when recovery works, Successfully restored access to volume. The number after Event is a counter in that host's log. KB 314371 shows Event 205 and Event 210, and KB 426222 shows Event 75764 for the same text, so do not search by number.

Four of these pages show what sits next to the event in the logs, and a fifth, KB 439920, covers a Fibre Channel fault without this event text:

  • KB 314371 (NetApp iSCSI, ESXi 7.0.x and 8.0.x): vobd.log lines vob.iscsi.target.async.event with a reason code, vob.iscsi.connection.stopped and vob.vmfs.heartbeat.timedout, and Connection reset by peer in vmkernel.log. The KB puts the cause at the network between host and array: the target sends a TCP reset, and the KB says this is often associated with outdated NIC drivers or firmware, or non-uniform MTU.
  • KB 395260 (iSCSI, ESXi 8.x): Nop-out timeout after 10 sec, connections marked OFFLINE and ONLINE, and the host status H:0x1 (NO_CONNECT) in vmkernel.log. The KB says NO_CONNECT is returned when the connection to the LUN is lost.
  • KB 439920 (Fibre Channel, ESXi 8.x) does not contain the Lost access to volume text. It describes datastores inaccessible and hosts unresponsive, with vob.scsi.scsipath.pathstate.deadver2, esx.problem.vmfs.heartbeat.timedout and repeated I/O aborts on an HBA, and says the aborts trigger VMFS heartbeat timeouts. Treating a Fibre Channel fault as a possible cause of this event is a practical reading, not a statement from Broadcom's pages.
  • KB 450696: write commands 0x2a and 0x8a cancelled from the device layer, a controller virtual reset in vmkernel.log and high DAVG in esxtop. The KB gives high workload towards the storage controller as the cause.
  • KB 426222 (ESXi 8.x): the same event in front of a Storage vMotion failure, with a PDL error in vmkernel.log.

The related event Lost connectivity to storage device naa.<id>. Path vmhba35:C1:T0:L7 is down. Affected datastores: "<name>" is explained in KB 328900: the path is the last one that went down, and vmhba35, C1, T0 and L7 are the HBA, channel, target and LUN. If the whole datastore is unreachable rather than flapping, "APD or PDL: classify an inaccessible ESXi datastore" covers that case.

Likely causes

Cause What you see How to confirm
iSCSI target drops connections vob.iscsi.target.async.event, vob.iscsi.connection.stopped, Target dropping connection in syslog.log, Connection reset by peer Matching lines at the time of the event, on every host that uses the target
iSCSI initiator gets no reply Nop-out timeout after 10 sec, connections marked OFFLINE then ONLINE, H:0x1 Same lines in syslog.log and vmkernel.log; vmkping to the array's portals loses packets
Fibre Channel aborts on one HBA (a practical reading of KB 439920, which does not show this event text) pathstate.deadver2, esx.problem.vmfs.heartbeat.timedout, aborts naming one vmhba The lines name one adapter; other HBAs on the host stay clean
Storage controller overloaded Cancelled 0x2a and 0x8a commands, controller resets, high DAVG esxtop disk view shows DAVG/cmd above the guideline for a sustained period
Device in PDL after an earlier disconnect Sense data 0x5 0x25 0x0, path failover loop, Storage vMotion timeouts vmkernel.log shows PDL error lines for the device

Prove the cause before changing anything

These checks only read.

1. Find the events and their pairs. The log paths are those the KBs use:

grep -E "Lost access to volume|Successfully restored access" /var/run/log/hostd.log
grep -E "heartbeat|pathstate|iscsi" /var/run/log/vobd.log

Note the time between a Lost access entry and its Successfully restored access entry. A pair a few seconds or minutes apart is a short loss that recovered. A Lost access entry with no restored entry is a datastore that is still down. This is a practical reading, not a statement from Broadcom's pages.

2. Decode the path. KB 328900 names esxcfg-mpath -l as the way to list the paths to the reported device:

esxcfg-mpath -l

Match the vmhba, channel, target and LUN from the event to the listing, and note which paths are dead.

3. Test the iSCSI network. KB 328900 says to test with vmkping to each network portal of the array. KB 344313 is Broadcom's vMotion procedure; the same method is applied here to the iSCSI portal. It takes the size from the MTU: subtract 28 from it. The portal must also use MTU 9000 for 8972 to pass. For MTU 9000 that is 9000 - 28 = 8972; for MTU 1500 it is 1500 - 28 = 1472.

vmkping -I vmk1 192.0.2.50 -s 8972 -d -c 3

Replace vmk1 with the VMkernel port used for iSCSI and the address with an array portal. A reply with 0% packet loss is a good result, and 100% packet loss is a bad one. If loss appears only with -d, the MTU may differ somewhere on the path. That is a practical reading, not a statement from KB 328900 or KB 344313.

4. Read latency in esxtop. Run esxtop, press d for the disk adapter view, or u for the device view. KB 344099 says "should not exceed more than 10 milliseconds (ms) for sustained periods of time" about DAVG/cmd, KAVG/cmd and GAVG/cmd, and that ESXi times out a command at 5000 ms. KB 344099 also says arrays differ, so treat 10 ms as a guideline.

5. Compare hosts. Check the same time window on every host that uses the datastore. Losses on one host point at that host's NIC, HBA, cable or switch port. Losses on all hosts at once point at the array or the fabric. This is a practical comparison, not a statement from Broadcom's pages.

Fix

No step is scripted here. Every cause lies in drivers, firmware, switches or the array, and each fix is a change to production storage.

Disruptive step: several of the actions below reboot a host, reset a Fibre Channel adapter or shut a switch port, and each of those interrupts storage for every VM on that host or path. None of them can be undone once started.

The Broadcom KBs prescribe these actions:

  • iSCSI target resets (KB 314371). Have the hardware vendor check and update the host NIC firmware and drivers against the Broadcom compatibility guide; send the storage vendor the exact timestamps of the disconnects from vobd.log and syslog.log; check the network path, including switches, routers and firewalls, for a device that tears down TCP sessions.
  • iSCSI no-reply flapping (KB 395260). Verify the array configuration and the host networking. With several VMkernel ports for software iSCSI, keep their number at or below the number of physical NICs, and make the MTU uniform across the environment. The KB says a reboot of the host restores dead paths.
  • Fibre Channel aborts (KB 439920, which does not contain this event text). The KB describes resetting the affected HBA with a localcli storage san fc reset command, asking the SAN team to shut unstable switch ports and verify zoning, and a hard reboot of the host if the management agents stay unresponsive.
  • Controller load (KB 450696). Check the status of the storage devices from the hardware console for a faulty drive, and check that driver and firmware match the compatibility guide.
  • PDL loop (KB 426222). The KB says to plan a maintenance window and reboot the affected host.

Plan each of them with the storage and network teams.

Confirm the fix

  1. No new Lost access to volume entry appears in hostd.log for a period you choose that includes the backup window. Broadcom's pages give no period.
  2. esxcfg-mpath -l shows no dead path for the device.
  3. esxtop DAVG/cmd stays under the 10 ms guideline during normal load.

What to watch afterwards

  • Count Lost access entries per datastore per day. A rising count shows a fault that is getting worse.
  • Watch for vob.vmfs.heartbeat.timedout in vobd.log, which KB 314371 shows next to the event and KB 439920 lists for Fibre Channel aborts.
  • After any switch or NIC change, repeat the vmkping test with the largest size the MTU allows.

Example (illustrative): On esx02, hostd.log shows Lost access to volume 5f3a0000-aaaa-bbbb-cccc-0123456789ab (ds-iscsi01) due to connectivity issues. at 02:14:10 and Successfully restored access at 02:14:50, a loss of 40 seconds. vobd.log shows vob.iscsi.connection.stopped at 02:14:08, and syslog.log shows Nop-out timeout after 10 sec. vmkping -I vmk1 192.0.2.50 -s 8972 -d -c 3 returns 100% packet loss, while the same test with -s 1472 succeeds. The engineer concludes that the MTU is not 9000 along the whole path and takes the finding to the network team.

Risks and limits

  • These commands have not been run or lab-tested.
  • Broadcom's pages tie this one event text to different causes. A cause not listed above is possible.
  • The log lines in the KBs come from NetApp and Pure Storage iSCSI targets and a local controller. The Fibre Channel lines come from a KB that does not carry the event text. Your array's log text will differ.
  • KB 450696 gives only the controller-load cause, with no version range and no numbers.
  • The 10 ms figure is a guideline in KB 344099 for sustained latency, not a limit for every array.
  • Rebooting a host, resetting an HBA and shutting a switch port are disruptive and cannot be undone.

Sources