vSAN Datastore shows as disconnected and vSAN disks report as Absent
search cancel

vSAN Datastore shows as disconnected and vSAN disks report as Absent

book

Article ID: 434803

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware Cloud Foundation

Issue/Introduction

 

  • On the vCenter UI > Cluster > Monitor > Skyline Health, an Operation Health warning will be observed, where all disks is reported as Absent, and the StoragePool status will be marked as unhealthy

  • On the vCenter UI > Cluster > Monitor > vSAN > disk management, the host reports more disks compared to disks present in the environment. 

  • On the vCenter UI > Cluster > Monitor > vSAN > disk management, multiple hosts reports capacity as "0.00 B" though the disk group shows as healthy.

 

  • Validation using vdq -iH shows that vSAN is unable to read disk metadata from multiple NVMe devices. Some vsish commands may report the same error message:

[root@esxihost:/] vdq -iH
VsanUtil::ReadFromDevice: Failed to open /vmfs/devices/disks/t10.NVMe____Dell_DC_NVMe_#####_##________###########, errno (19)
VsanUtil::GetVsanDisks: Error occurred 'Failed to open device /vmfs/devices/disks/t10.NVMe____Dell_DC_NVMe_#####_##________###########', create disk with null id

  • /var/log/hostd.log on ESX host will display the following snippet for failure of property collection tasks :

    YYYY-MM-DDTHH:MM:SS.###Z In(166) Hostd[#######]: [Originator@#### sub=Vimsvc.TaskManager opID=########-#### sid=######## user=dcui:vsanmgmtd] Task Created : vmodlTask-ha-host-########
    YYYY-MM-DDTHH:MM:SS.###Z In(166) Hostd[#######]: [Originator@#### sub=Http2ServerSession-6120] Starting Http2Session (server): <io_obj t:N7Vmacore6System19TCPSocketObjectAsioE, h:103, <TCP '127.0.0.1 : 8307'>, <TCP '127.0.0.1 : 60883'>>
    YYYY-MM-DDTHH:MM:SS.###Z In(166) Hostd[#######]: [Originator@#### sub=Solo.Vmomi opID=######## sid=########] Activation finished; <<########-####-####-####-############, <TCP '127.0.0.1 : 8307'>, <TCP '127.0.0.1 : 60883'>>, ha-property-collector, vmodl.query.PropertyCollector.createPropertyCollector, <vim.version.v9_0_0_0, internal, 9.0.0.0>, [N11HostdCommon18VmomiAdapterServer19ActivationResponderE]>
    YYYY-MM-DDTHH:MM:SS.###Z In(166) Hostd[#######]: [Originator@#### sub=Solo.Vmomi opID=######## sid=########] Throw vim.fault.NotAuthenticated
    YYYY-MM-DDTHH:MM:SS.###Z In(166) Hostd[#######]: [Originator@#### sub=Solo.Vmomi opID=######## sid=########] Result:
    YYYY-MM-DDTHH:MM:SS.###Z In(166) Hostd[#######]: --> (vim.fault.NotAuthenticated) {
    YYYY-MM-DDTHH:MM:SS.###Z In(166) Hostd[#######]: -->    object = 'vmodl.query.PropertyCollector:ha-property-collector',
    YYYY-MM-DDTHH:MM:SS.###Z In(166) Hostd[#######]: -->    privilegeId = "System.View",
    YYYY-MM-DDTHH:MM:SS.###Z In(166) Hostd[#######]: -->    msg = "",
    YYYY-MM-DDTHH:MM:SS.###Z In(166) Hostd[#######]: --> }

  • The corresponding property collection tasks will have the below errors in /var/log/vmkernel.log:

YYYY-MM-DDTHH:MM:SS.###Z In(182) vmkernel: cpu115:####### opID=########)World: 12868: VC opID 867d34eb maps to vmkernel opID ########
YYYY-MM-DDTHH:MM:SS.###Z In(182) vmkernel: cpu115:####### opID=########)Device: 435: Unable to allocate device ID memory on heap ##############
YYYY-MM-DDTHH:MM:SS.###Z In(182) vmkernel: cpu115:####### opID=########)Device: 435: Unable to allocate device ID memory on heap ##############

  • Scheduler queue allocation for NVMe FDs will fail.
  • /var/log/vmkernel.log on ESX host will report:

YYYY-MM-DDTHH:MM:SS.###Z In(182) vmkernel: cpu85:####### opID=########)World: 12868: VC opID e09e1465-3492 maps to vmkernel opID ########
YYYY-MM-DDTHH:MM:SS.###Z Wa(180) vmkwarning: cpu85:####### opID=########)WARNING: StorageSched: 1739: StorSchedQAllocByType: could not allocate scheduler queue for world 0
YYYY-MM-DDTHH:MM:SS.###Z In(182) vmkernel: cpu85:####### opID=########)StorageSched: 2250: SchedQ creation failed for worldID 0 for t10.NVMe____Dell_BOSS2DN1____________________________#########
YYYY-MM-DDTHH:MM:SS.###Z Wa(180) vmkwarning: cpu85:####### opID=########)WARNING: NvmeFds: 1327: Memory allocation failed

  • VSI Node for claim rules, unmap, partition table read will report "Out Of Memory" in /var/log/vmkernel.log:

YYYY-MM-DDTHH:MM:SS.###Z In(182) vmkernel: cpu115:########)ScsiPathClaimVsi: 1534: Out of memory.
YYYY-MM-DDTHH:MM:SS.###Z In(182) vmkernel: cpu76:########)ScsiPathClaimVsi: 1534: Out of memory.
YYYY-MM-DDTHH:MM:SS.###Z Wa(180) vmkwarning: cpu7:2103333 opID=e7914a82)WARNING: Partition: 598: Out of memory for "eui.###"
YYYY-MM-DDTHH:MM:SS.###Z Wa(180) vmkwarning: cpu7:2103333 opID=e7914a82)WARNING: Partition: 1387: Partition table read from device eui.#### failed: Out of memory
YYYY-MM-DDTHH:MM:SS.###Z Wa(180) vmkwarning: cpu14:2102590)WARNING: NvmeVmas: 178: Out of memory Unmap done-data alloc failed
YYYY-MM-DDTHH:MM:SS.###Z In(182) vmkernel: cpu14:2102590)NvmeFds: 1369: Issue of delete blocks failed [sync:0] numDescs 53 Out of memory 0x45c0a2e02ac0

  • There will be no impact due to this on the VM or ESXi I/O path

Environment

  • VMware vSphere ESX

  • VMware vSAN ESA

  • NVMe disks

Cause

  • This issue occurs due to a memory leak in NVMe SMART statistics VSI node get calls.

  • Over time, this causes the storageHeap to run out of memory.

  • The property collector calls on all VSI nodes ultimately fail causing health service to report erratic behavior

  • /var/log/vsandevicemonitord.log  on ESX host show repeated errors while retrieving SMART health status for the vSAN disks:

YYYY-MM-DDTHH:MM:SS.###Z In(14) vsandevicemonitord[#######]: [#############]: Exception Out of memory getting SMART health status for vSAN disk t10.NVMe____Dell_DC_NVMe_##________#########.
YYYY-MM-DDTHH:MM:SS.###Z In(14) vsandevicemonitord[#######]: [#############]: Exception Out of memory getting SMART health status for vSAN disk t10.NVMe____Dell_DC_NVMe_##________#########.

YYYY-MM-DDTHH:MM:SS.###Z In(14) vsandevicemonitord[#######]: [#############]: Exception Out of memory retrieving SMART percentage used for vSAN disk t10.NVMe____Dell_DC_##________#########.
YYYY-MM-DDTHH:MM:SS.###Z In(14) vsandevicemonitord[#######]: [#############]: Exception Out of memory getting SMART health status for vSAN disk t10.NVMe____Dell_DC_NVMe_##________#########.

  • Validation of storageHeap points to maximum heap size equal to the current allocated and high number of failed allocations

vsish -e get /system/heaps/storageHeap-##############/stats
Heap stats {
   Name:storageHeap
   current heap size:430141864
   initial heap size:11534336
   current bytes allocated:430141768
   percent free of current size:0
   percent releasable of current size:0
   maximum heap size:430141864
   maximum bytes available:96
   
   # of failure messages:125282383
   number of succeeded allocations:482400875
   number of failed allocations:62610593
   number of freed allocations:481530200
   average size of an allocation:3221225472

  • Validation of NVMe SMART stats for the devices report "Out Of Memory".

# vsish -e get /storage/scsifw/devices/t10.NVMe____Dell_DC_NVMe_#####_##________###########/nvmesmartstats
VSISHCmdGetInt():Get failed: Out of memory
Error: Error in command cat: Out of memory

Resolution

  • This issue is fixed in VMware vSphere ESX 9.1.0 (Build 25370933) & VMware vSphere ESXi 8.0U3j (25429389) and higher 

  • For older ESXi versions affected by this issue, rebooting the host temporarily restores normal operation. Later on, upgrade to the version with the fix to prevent the issue from reoccurring.

    1. Place the impacted host into Maintenance Mode using the Ensure Accessibility or No Data Migration option.

    2. Reboot the ESXi host to clear the memory heap exhaustion.

    3. Once the host is back online, verify the /bootbank and vSAN disk status.

    4. Repeat for other hosts in the cluster sequentially. Do not reboot multiple hosts simultaneously to avoid vSAN quorum loss.

Additional Information

See Download Broadcom products, patches and software to download the ESX 9.1.0 (Build 25370933) or ESXi 8.0U3j (25429389) release.