Input/output error when mounting ReadWriteMany (RWX) volumes from vSAN File Services file shares to pods within a VMware Kubernetes Service (VKS) cluster on VCF 9.1.1
search cancel

Input/output error when mounting ReadWriteMany (RWX) volumes from vSAN File Services file shares to pods within a VMware Kubernetes Service (VKS) cluster on VCF 9.1.1

book

Article ID: 463002

calendar_today

Updated On:

Products

VMware vSAN

Issue/Introduction

Pods within a VMware Kubernetes Service (VKS) cluster fail to mount ReadWriteMany (RWX) persistent volumes backed by VMware vSAN File Services file shares. While the Kubernetes worker node resolves and reaches the vSAN File Services file server and a manual mount of the NFS file share export onto the worker node succeeds attempting to list the contents of the /vsanfs directory fails with an Input/output error.

Environment

VMware vSAN 9.1

Cause

This issue occurs because the vSAN cluster is configured using unsupported storage hardware, specifically external 3PAR Fibre Channel (FC) disks. Using FC SAN disks as vSAN backing storage is untested and unsupported, leading to storage-layer instability, I/O errors across both vSAN and non-vSAN entities, and failed block writes at the HBA level.
 
/var/run/log/osfsd.log indicates failing mounts for vSAN namespaces objects 
 
YYYY-MM-DDTHH:MM:SSZ -INFO osfsd 11546030 [esx@4413] [] VmklinkMPI-LIB : Received request ID 0x59169ab1 size 181 rx 197
YYYY-MM-DDTHH:MM:SSZ -INFO osfsd 11546030 [esx@4413] [ sub=Vmklink opID=59169ab1] BEGIN vmklink 0x59169ab1, type:LOOKUP, pid:[    vdfs], cid:0000000000000000-0000000000000000, aid:0000000000000000-0000000000000000, bufLen:0, fileName:vmkdump
YYYY-MM-DDTHH:MM:SSZ -ERROR osfsd 34964099 [esx@4413] [ sub=Vdfs opID=59169ab1] dir name [vmkdump] is not in a valid vSAN UUID format <<<<<<<<
YYYY-MM-DDTHH:MM:SSZ -ERROR osfsd 34964099 [esx@4413] [ sub=Vmklink] Failed lookup (ID 59169ab1)
YYYY-MM-DDTHH:MM:SSZ -INFO osfsd 11546030 [esx@4413] [ opID=fe125d21] Adding a thread to threadpool osfsd-nvsan
YYYY-MM-DDTHH:MM:SSZ -INFO osfsd 11546030 [esx@4413] [ opID=fe125d21] Added a new thread to threadpool (osfsd-nvsan), numThreadsInPool (1)
YYYY-MM-DDTHH:MM:SSZ -ERROR osfsd 34961267 [esx@4413] [ sub=Vsan opID=fe125d21] VsanMountInt: Failed to resolve .iSCSI-CONFIG: Not found
YYYY-MM-DDTHH:MM:SSZ -INFO osfsd 34963602 [esx@4413] [] Starting main loop for the worker thread osfsd-nvdfs
YYYY-MM-DDTHH:MM:SSZ -ERROR osfsd 34963602 [esx@4413] [ sub=Vdfs opID=59169aad] dir name [.vsan.stats] is not in a valid vSAN UUID format
YYYY-MM-DDTHH:MM:SSZ -ERROR osfsd 34963602 [esx@4413] [ sub=Vmklink] Failed lookup (ID 59169aad)
There's even failing mounts of likely namespaces/objects for vSAN which is not good:
YYYY-MM-DDTHH:MM:SSZ -INFO osfsd 34948825 [esx@4413] [ sub=Autounmount] [    vsan] Prepared to auto unmount directories
YYYY-MM-DDTHH:MM:SSZ -INFO osfsd 34948825 [esx@4413] [ sub=Autounmount] [    vsan] Autounmount processing container vsan:f8d7##########-#############
YYYY-MM-DDTHH:MM:SSZ -INFO osfsd 34948825 [esx@4413] [ sub=Autounmount] Trying to auto unmount children in container: vsan:f8d7##########-#############
YYYY-MM-DDTHH:MM:SSZ -INFO osfsd 34948825 [esx@4413] [ sub=Autounmount] Autounmounted children in container 'vsan:f8d7##########-#############'
YYYY-MM-DDTHH:MM:SSZ -INFO osfsd 34948825 [esx@4413] [ sub=Autounmount] [    vsan] Completed auto unmount of inactive directories
YYYY-MM-DDTHH:MM:SSZ -INFO osfsd 11546030 [esx@4413] [ sub=Event] PumpEvents: Interrupted system call, continuing

Inspecting the ESXi host storage adapter statistics confirms a high number of failed commands and failed block writes on the FC adapters:
 
 adapter  driver    driver           firmware            underlying      comms           succ          failed         blk          failed blk         blk          failed blk            res       failed res      res
  ↓        ↓              version          version              transport        proto              cmds         cmds          read         read            write        write                    ops       ops              conflicts
  --------------        -----------       ----------              ----------------     ---------         ----------      ---------        ----------     --------------    ---------     ---------------     -----------   ------------     -----------
  vmhba0           lpfc            910.14.4.895.25  14.2.589.21      2 -> FC     1 -> SCSI  1258675748  12101   45732613052      0           21175544438   303104      3    0           0
  vmhba1           lpfc            910.14.4.895.25  14.2.589.21      2 -> FC     1 -> SCSI  1131292040   417      43234313666      0           20119022503   434176      0    0           0

Resolution

Deploy and operate VMware vSAN and vSAN File Services exclusively on certified hardware.

  1. Verify that all ESXi hosts, storage controllers, and backing drives (certified local SSDs or NVMe drives) are listed on the Broadcom Compatibility Guide for your specific VCF and vSAN release.

  2. Migrate workloads off the unsupported 3PAR FC-backed vSAN configuration onto a certified vSAN ReadyNode or certified hardware configuration.

Additional Information

https://techdocs.broadcom.com/us/en/vmware-cis/vsan/vsan/8-0/planning-and-deployment/requirements-for-creating-a-virtual-san-cluster/hardware-requirements-for-virtual-san.html

Broadcom Compatibility Guide (vSAN ReadyNodes and Hardware)